Skip to content
Connect an agent

Organisations

Read an organisation's daily limits inside its allowance

The most calls a day one member (every agent they connected together), one agent connection and one organisation key may make, each null for off, the overrides, the allowance every number is held to, and the members and live keys an override can be set for.

GET/orgs/{org}/call-caps

TL;DR

QuestionAnswer
What does it do?Read an organisation's daily limits inside its allowance.
What does it take?org in the path.
What does it return?Status 200 with a body of type CallCaps.
What can go wrong?401 not signed in; 403 only the owner or an admin may read them; 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

The most calls a day one member (every agent they connected together), one agent connection and one organisation key may make, each null for off, the overrides, the allowance every number is held to, and the members and live keys an override can be set for. The owner or an admin.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The limits.CallCaps
401Not signed in.ErrorResponse
403Only the owner or an admin may read them.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 CallCaps.

FieldTypeRequiredDescription
memberinteger | nullyesThe most calls a day one member makes through every agent they connected to the organisation, or null for off. minimum 1; maximum 100000000.
connectioninteger | nullyesThe most calls a day one agent connection makes, or null for off. minimum 1; maximum 100000000.
keyinteger | nullyesThe most calls a day one organisation key from the Keys tab makes, or null for off. minimum 1; maximum 100000000.
overridesCallCapOverride[]yesUp to 200, one a member or key.
overrides[].kind"member" | "key"yesmember: a member, every agent they connected to the organisation together. key: one organisation key or one agent connection.
overrides[].idstringyesThe member's account id, or the key's id. at least 1 character; at most 64 characters.
overrides[].dailyCallsintegeryesThe calls a day, at most the organisation allowance. minimum 1; maximum 100000000.
availablebooleanyesFalse on a plan without the limits (anything but Enterprise): they are not applied, and only turning them off is allowed.
planstringyes
allowanceintegeryesThe most calls a day an account in the organisation may make. Every limit is held to it.
choicesCallCapChoice[]yesThe members who can connect agents and the live keys, for an override.
choices[].kind"member" | "key"yes
choices[].idstringyes
choices[].labelstringyesThe member's address, the key's name, or the name the agent gave itself.
choices[].via"connection" | "key"noFor a key: an agent connection, or a key from the Keys tab.
choices[].memberstring | nullnoFor an agent connection: the address of the member who connected it.

See also

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