PeumeAPI

Social publishing & inbox · Snapchat

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.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/select-snapchat-profile \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "selectedPublicProfile": "your selectedPublicProfile",
    "tempToken": "your tempToken",
    "userProfile": "your userProfile"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: select-snapchat-profile.

Parameters

selectedPublicProfileRequiredobject

The selected Snapchat Public Profile

tempTokenRequiredstring

Temporary Snapchat access token from OAuth

userProfileRequiredobject

User profile data from OAuth redirect

refreshTokenstring

Snapchat refresh token (if available)

expiresIninteger

Token expiration time in seconds

redirect_urlstring

Custom redirect URL after connection completes

oauthAppIdstring

The `oauthAppId` from the selection redirect, when the connect ran on one of your own OAuth apps. Pass it back so a retried selection stays on that app; a different app than the connect used returns 400.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.