API Reference
Snapchat API
Snapchat's Marketing API requires Business Manager approval, Public Profile setup, and separate media upload flows. Zernio gives you one endpoint for Stories, Spotlight, and Saved Stories.
Quick Start
- 1.Get API KeySign up for free and get your API key in seconds.
- 2.Connect AccountUse our OAuth flow to connect Snapchat accounts.
- 3.Start PostingMake API calls to post content to Snapchat.
const response = await fetch('https://zernio.com/api/v1/posts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: 'Check out this amazing view! ๐
',
mediaItems: [{ type: 'video', url: 'https://example.com/sunset.mp4' }],
platforms: [{
platform: 'snapchat',
accountId: 'acc_snap123',
options: {
contentType: 'spotlight' // 'story', 'spotlight', or 'saved_story'
}
}],
publishNow: true
})
});
const post = await response.json();
console.log(post.post._id); // '65f1c0a9e2b5af0012ab34cd'Snapchat Endpoints
Create or schedule a Snapchat post (Stories, Spotlight, or Saved Stories)
Get status and details of a Snapchat post
Cancel a scheduled Snapchat post or delete a published post
Get views, shares, screenshots, and unique viewers for a post
List all connected Snapchat Public Profiles
Generate OAuth URL to connect a Snapchat account
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Video | MP4, MOV | 32 MB | 3-60 seconds, 9:16 aspect ratio recommended |
| Image | JPEG, PNG | 5 MB | 1080x1920 (9:16) recommended |
| Spotlight Video | MP4, MOV | 32 MB | Up to 60 seconds, vertical format required |
| Story | Image or Video | 32 MB | Disappears after 24 hours |
Zernio automatically transcodes and optimizes media for Snapchat's requirements.
API Limits
Snapchat has strict rate limits on their Marketing API. Zernio handles these automatically with intelligent queuing and token refresh for reliable posting.
Zernio handles all rate limiting automatically. We queue and retry requests as needed.
Features
- โPost to Stories, Spotlight, and Saved Stories
- โSchedule posts for optimal engagement times
- โAutomatic media optimization for Snapchat
- โPublic Profile support for brands and creators
- โView count and engagement analytics
- โScreenshot and share tracking
- โAutomatic token refresh
- โWebhook notifications for post status
Response Example
{
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"status": "published",
"content": "Check out this amazing view! ๐
",
"platforms": [{
"platform": "snapchat",
"accountId": { "_id": "acc_snap123", "username": "MyBrand" },
"status": "published",
"platformPostId": "snap_media_123",
"options": { "contentType": "spotlight" }
}],
"publishedAt": "2025-01-10T10:30:00Z"
},
"message": "Post published successfully"
}Start building with Snapchat API
Free tier available ยท No credit card required ยท 99.97% uptime

