PeumeAPI

Social publishing & inbox

Complete OAuth callback

Exchange the OAuth authorization code for tokens and connect the account to the specified profile.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/complete-oauth-callback \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "platform": "instagram",
    "code": "your code",
    "state": "your state"
  }
}'

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: complete-oauth-callback.

Parameters

platformRequiredstring

Social platform to complete the connect for. Discord, Slack and Telegram are absent because they are served by their own dedicated routes, documented separately.

instagram · twitter · threads · linkedin · youtube · tiktok · reddit · pinterest · google · microsoft

codeRequiredstring
stateRequiredstring

For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.

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.