PeumeAPI

Social publishing & inbox · LinkedIn

Select LinkedIn org

Complete the LinkedIn connection flow. Set accountType to "personal" or "organization" to connect as a company page. 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-linkedin-org \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "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-linkedin-org.

Parameters

tempTokenRequiredstring
userProfileRequiredobject
accountTypestring

Send this (with selectedOrganization for an organization) or selections, not both.

personal · organization

selectionsarray

Several accounts to connect from one sign-in (yourself and/or organizations), each as its own account. With two or more entries the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect or an ads connect. A single entry behaves exactly like accountType.

selectedOrganizationobject
redirect_urlstring

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.