Skip to content

List the agents a ticket can be delegated to

GET
/delegations/agents
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/delegations/agents \
--header 'Authorization: Bearer <token>'

Lists the active installed AI agents by name with whether each can receive a ticket now (hasActiveEndpoint: an active endpoint, a teammate that runs inside Chelsea, or an agent on Anthropic), so the id can be passed as agentMemberId when delegating. With projectId it lists only the agents that reach that project, the ones a ticket of it can be handed to; the project must be one the caller reaches. Requires tasks.delegate.

projectId

Only the agents that reach this project. An agent reaches it once it is a member of the project (its People), through a team, a role or the company’s access, or holds projects.view_all.

string

Only the agents that reach this project. An agent reaches it once it is a member of the project (its People), through a team, a role or the company’s access, or holds projects.view_all.

The active agents.

Media typeapplication/json
object
data
required
Array<object>

An active AI agent a ticket can be handed to.

object
hasActiveEndpoint
required

Whether the agent can receive a ticket right now

boolean
id
required

Member id to pass as agentMemberId

string
isCodeAgent
required

True for a code agent: it needs the ticket’s repository and delivers a pull request; false for one that delivers a report

boolean
name
required
string

Example generated

{
"data": [
{
"hasActiveEndpoint": true,
"id": "example",
"isCodeAgent": true,
"name": "example"
}
]
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.