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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Header Parameters
Short-lived connect token from the OAuth redirect (for API users)
Your Zernio profile ID
The selected Snapchat Public Profile
Temporary Snapchat access token from OAuth
User profile data from OAuth redirect
Snapchat refresh token (if available)
Token expiration time in seconds
Custom redirect URL after connection completes
uriResponse Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.snapchat.selectSnapchatProfile({ body: { profileId: 'profile_abc123', selectedPublicProfile: { id: 'abc123', display_name: 'Example', }, tempToken: 'tok_abc123', userProfile: {}, },});console.log(data);{
"message": "Snapchat connected successfully with public profile",
"redirect_url": "https://yourdomain.com/integrations/callback?connected=snapchat&profileId=507f1f77bcf86cd799439011&publicProfile=My+Brand",
"account": {
"accountId": "64e1f0a9e2b5af0012ab34cd",
"platform": "snapchat",
"username": "mybrand",
"displayName": "My Brand",
"profilePicture": "https://cf-st.sc-cdn.net/...",
"isActive": true,
"publicProfileName": "My Brand"
}
}{
"error": "Missing required fields"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}List Snapchat profiles GET
For headless flows. Returns Snapchat Public Profiles the user can post to. Use X-Connect-Token from the redirect URL.
Complete WhatsApp phone number selection POST
Bind a specific WhatsApp phone number to the Zernio profile after the user picks one from `listWhatsAppPhoneNumbers`. Exchanges the short-lived OAuth token for a long-lived token, subscribes the WABA to webhooks, and creates the SocialAccount.