Appearance
Select Snapchat profile
Complete the Snapchat connection flow by saving the selected Public Profile. Snapchat requires a Public Profile to publish content. Use X-Connect-Token if connecting via API key.
POST /v1/connect/snapchat/select-profile
Complete the Snapchat connection flow by saving the selected Public Profile. Snapchat requires a Public Profile to publish content. Use X-Connect-Token if connecting via API key.
Parameters
X-Connect-Token(header, string) — Short-lived connect token from the OAuth redirect (for API users)
Request body
Content-Type: application/json
profileId(string) required — Your Zernio profile IDselectedPublicProfile(object) required — The selected Snapchat Public ProfiletempToken(string) required — Temporary Snapchat access token from OAuthuserProfile(object) required — User profile data from OAuth redirectrefreshToken(string) — Snapchat refresh token (if available)expiresIn(integer) — Token expiration time in secondsredirect_url(string) — Custom redirect URL after connection completes
Example:
json
{
"profileId": "64f0a1b2c3d4e5f6a7b8c9d0",
"selectedPublicProfile": {
"id": "abc123-def456",
"display_name": "My Brand",
"username": "mybrand",
"profile_image_url": "https://cf-st.sc-cdn.net/...",
"subscriber_count": 15000
},
"tempToken": "eyJ...",
"userProfile": {
"id": "user123",
"username": "mybrand",
"displayName": "My Brand",
"profilePicture": "https://cf-st.sc-cdn.net/..."
},
"redirect_url": "https://yourapp.com/callback"
}Responses
200 — Snapchat Public Profile connected successfully
message(string)redirect_url(string) — Redirect URL with connection params (if provided in request)account(object)
400 — Missing required fields
401
403 — No access to profile or profile limit exceeded
500 — Failed to connect Snapchat account