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. 1.
    Get API Key
    Sign up for free and get your API key in seconds.
  2. 2.
    Connect Account
    Use our OAuth flow to connect Snapchat accounts.
  3. 3.
    Start Posting
    Make API calls to post content to Snapchat.
Post to Snapchat Spotlight
JavaScript
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

POST/v1/posts

Create or schedule a Snapchat post (Stories, Spotlight, or Saved Stories)

GET/v1/posts/{id}

Get status and details of a Snapchat post

DELETE/v1/posts/{id}

Cancel a scheduled Snapchat post or delete a published post

GET/v1/posts/{id}/analytics

Get views, shares, screenshots, and unique viewers for a post

GET/v1/profiles

List all connected Snapchat Public Profiles

GET/v1/connect/snapchat

Generate OAuth URL to connect a Snapchat account

Media Requirements

TypeFormatMax SizeNotes
VideoMP4, MOV32 MB3-60 seconds, 9:16 aspect ratio recommended
ImageJPEG, PNG5 MB1080x1920 (9:16) recommended
Spotlight VideoMP4, MOV32 MBUp to 60 seconds, vertical format required
StoryImage or Video32 MBDisappears 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

Response
JSON
{
  "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

SOC 2 CompliantGDPR Compliant