Delegate a ticket to an agent
curl --request POST \ --url https://example.com/api/v1/delegations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "agentMemberId": "example", "projectId": "example", "taskId": "example" }'Hands a ticket to an AI agent; the caller becomes the accountable human and the project it is delegated from governs the repository, statuses and order. Refused with the web app’s reasons: no tasks.delegate permission, a ticket or project the caller does not reach, an archived or merged ticket, an agent that is inactive, has no endpoint or no access to the project, a ticket missing its repository or acceptance criteria, or one already delegated.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Agent member that receives the ticket
Project the ticket is delegated from; it governs the repository, the statuses and the order
Ticket to delegate
Example generated
{ "agentMemberId": "example", "projectId": "example", "taskId": "example"}Responses
Section titled “Responses”The new delegation.
object
A ticket handed to an AI agent, with the human accountable for it.
object
True when the agent delivers a pull request (a code agent), false when it delivers a report
Example
{ "data": { "state": "Delegated" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC