Call it
curl https://api.peume.com/v1/call/unified-teams-endpoint \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"select": "your select",
"limit": 10,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/unified-teams-endpoint", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"select": "your select",
"limit": 10,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/unified-teams-endpoint",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"select": "your select",
"limit": 10,
"offset": 0
}
},
)
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: unified-teams-endpoint.
Parameters
teamsarrayList of team ids to retrieve and enrich. One result row per entry, in input order. Mutually exclusive with `filter`.
filterobjectQuery selecting the teams to return. Mutually exclusive with `teams`.
selectRequiredobjectDictates exactly which attributes are returned.
limitintegerMaximum number of teams to return (filter mode only; ignored when `teams` is provided).
Example: 10
offsetintegerNumber of results to skip (filter mode only; ignored when `teams` is provided).
Example: 0
order_by_columnstringColumn to order by (filter mode only): `jobs_count`, `first_activity` or `last_activity`. Default: jobs_count.
order_by_directionstringSort direction; DESC when omitted.
