PeumeAPI

Social publishing & inbox · WhatsApp

Connect WhatsApp via credentials

Connect a WhatsApp Business Account by providing Meta credentials directly. This is the headless alternative to the Embedded Signup browser flow.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/connect-whatsapp-via-credentials \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accessToken": "your accessToken",
    "wabaId": "your wabaId",
    "phoneNumberId": "your phoneNumberId"
  }
}'

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: connect-whatsapp-via-credentials.

Parameters

accessTokenRequiredstring

Permanent System User access token from Meta Business Suite

wabaIdRequiredstring

WhatsApp Business Account ID from Meta

phoneNumberIdRequiredstring

Phone Number ID from Meta WhatsApp Manager

pinstring

The 6-digit two-step verification PIN set on the number. Required if you enabled two-step verification for it, otherwise Meta rejects the Cloud API registration with error 133005 and the number cannot send messages.

oauthAppIdstring

Your own WhatsApp OAuth app (see /v1/connect/oauth-apps) holding the Meta app the access token belongs to. The WABA's webhooks then go to that app's own callback URL and every delivery is checked against its app secret. Without it, deliveries come to 's shared Meta webhook.

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.