PeumeAPI

Social publishing & inbox · Instagram

Select the Page whose Instagram account to connect

Saves the selected Page as an Instagram account connected via Facebook Login. The Page access token becomes the account's access token, so every Instagram call for it runs against the Facebook Graph host.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/select-the-page-whose-instagram-account-to-connect \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "scopes": "analytics"
  }
}'

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-the-page-whose-instagram-account-to-connect.

Parameters

pageIdstring

The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.

pageIdsarray

Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. - Two or more distinct IDs: the response lists `accounts` and `failed` instead of `account`. Refused with 400 on a reconnect or an ads connect. - A single distinct ID behaves exactly like pageId.

tempTokenstring

Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.

connectFlowstring

Set by the -hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.

scopesstring

The `scopes` the callback redirect carried, passed back unchanged so the account records the areas it requested. Omit it when the redirect had none.

Example: analytics

redirect_urlstring

Optional custom redirect URL to return to after selection

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.