Create a SDK token for a user
User
Generate SDK Token
POST
Create a SDK token for a user
Create a SDK token for a user. This token is required for client-side operations and OAuth portal access.Documentation Index
Fetch the complete documentation index at: https://docs.tapti.dev/llms.txt
Use this file to discover all available pages before exploring further.
OAuth Portal Integration
The SDK token is essential for using Tapti’s OAuth Portal, where your users can securely connect their social media accounts:The OAuth Portal provides a secure, branded experience for connecting social media accounts without requiring you to
implement complex OAuth flows.
Security Considerations
Related Resources
OAuth Portal
Learn more about the OAuth Portal
SDK Tokens
Understanding SDK tokens
Authorizations
Path Parameters
Body
application/json
The SDK token to create
The platforms to create the SDK token for
Available options:
YOUTUBE, TIKTOK, INSTAGRAM, INSTAPRO, FACEBOOK, X, LINKEDIN Example:
["YOUTUBE", "TIKTOK"]The scopes to create the SDK token for
Available options:
PROFILE_READ, PROFILE_WRITE, CONTENT_READ, CONTENT_WRITE, ANALYTICS_READ, COMMENTS_READ, COMMENTS_WRITE Example:
["PROFILE_READ"]The callback URL to send the account connection response to
Example:
"https://your-app.com/api/oauth/callback"
The redirect URL to redirect the user after successful authentication
Example:
"https://your-app.com/dashboard/accounts"
Response
SDK token created successfully
The OAuth portal URL to redirect the user to
Example:
"https://oauth-portal.example.com?sdk_token=8pjBUEbqcA3bkKEBTmZ2WsduYwMH6UU23byRiU2rs.........&origin=https://your-app.com/dashboard/accounts"
