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"
}
}'const res = await fetch("https://api.peume.com/v1/call/select-linkedin-org", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"tempToken": "your tempToken",
"userProfile": "your userProfile"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/select-linkedin-org",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"tempToken": "your tempToken",
"userProfile": "your userProfile"
}
},
)
print(res.json()["output"])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
tempTokenRequiredstringuserProfileRequiredobjectaccountTypestringSend this (with selectedOrganization for an organization) or selections, not both.
personal · organization
selectionsarraySeveral 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.
selectedOrganizationobjectredirect_urlstring