Skip to content
Connect an agent

Organisations

Read today's calls against the daily limits

Each member's calls today through the agents they connected, each connection's and each key's, with its limit, and the ones at or past 80 percent.

GET/orgs/{org}/call-caps/today

TL;DR

QuestionAnswer
What does it do?Read today's calls against the daily limits.
What does it take?org in the path.
What does it return?Status 200 with a body of type CapsToday.
What can go wrong?401 not signed in; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Each member's calls today through the agents they connected, each connection's and each key's, with its limit, and the ones at or past 80 percent. Everyone for a caller who may read the call history; their own for anyone else.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200Today's calls against the limits.CapsToday
401Not signed in.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type CapsToday.

FieldTypeRequiredDescription
availablebooleanyes
daystringyesThe UTC day, YYYY-MM-DD. The counts start again at 00:00 UTC.
scope"organisation" | "own"yesorganisation for a caller who may read the call history; own for anyone else, who sees their own.
itemsCapUse[]yes
items[].scope"member" | "connection" | "key"yes
items[].idstringyesThe member's account id, or the key's id.
items[].labelstringyes
items[].memberstring | nullyesFor a connection: the address of the member who connected it.
items[].usedintegeryesCalls today, UTC.
items[].limitinteger | nullyesThe limit, or null when none holds it.
alertsCapUse[]yesThe ones at or past 80 percent of their limit, the fullest first.
alerts[].scope"member" | "connection" | "key"yes
alerts[].idstringyesThe member's account id, or the key's id.
alerts[].labelstringyes
alerts[].memberstring | nullyesFor a connection: the address of the member who connected it.
alerts[].usedintegeryesCalls today, UTC.
alerts[].limitinteger | nullyesThe limit, or null when none holds it.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools