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
curl -X POST "https://zernio.com/api/v1/connect/snapchat/select-profile" \ -H "Content-Type: application/json" \ -d '{ "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" }'{
"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.
Connect WhatsApp via credentials POST
Connect a WhatsApp Business Account by providing Meta credentials directly. This is the headless alternative to the Embedded Signup browser flow. To get the required credentials: 1. Go to Meta Business Suite (business.facebook.com) 2. Create or select a WhatsApp Business Account 3. In Business Settings > System Users, create a System User 4. Assign it the `whatsapp_business_management` and `whatsapp_business_messaging` permissions 5. Generate a permanent access token 6. Get the WABA ID from WhatsApp Manager > Account Tools > Phone Numbers 7. Get the Phone Number ID from the same page (click on the number)