Skip to content

Start a queued intent and its session (its owner at engineer or above, or a lead)

POST
/v1/intents/{intent_id}/start
curl --request POST \
--url http://127.0.0.1:8080/v1/intents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "route": { "agent": "claude", "auth": "api_key" } }'

In one transaction the intent becomes active, a session starts for it, and the start is audited. The response has the shape of an active registration with no check, and waited_on names the intent it queued behind, if any. The session token shows only in this response. An intent that is not queued is 409 intent_not_queued. A route asks the model router (ADR-0011) for a model, classified on the stored raw prompt.

intent_id
required
string format: uuid
Media typeapplication/json
object
route

Asks the model router for a model. Only a registration that starts a session is routed.

object
agent
required
string
Allowed values: claude codex opencode
auth

How the user says the agent authenticates. Empty means subscription, which never gets a model. The coordinator reads no credential.

string
Allowed values: api_key subscription ""

Started.

Media typeapplication/json
object
registered
required
boolean
intent
required
object
id
required
string format: uuid
project_id
required
string format: uuid
user_id
required
string format: uuid
user_handle
required
string
status
required
string
Allowed values: active queued done abandoned merged watching escalated
class
required
string
Allowed values: new partial_overlap already_done active_duplicate
resolution
required
Any of:
string
Allowed values: merge queue run_anyway fork join_as_watcher escalate
matched_intent_id
required
string | null format: uuid
fork_of
required

The root of the fork family.

string | null format: uuid
ticket_ref
required
string | null
touched_areas
required
Array<string>
normalized_text
required
string
summary
required
string | null
embedding_model
required

Null until the intent has a vector.

string | null
extractor
required

Heuristic+llm when the LLM extractor added a summary or areas.

string
Allowed values: heuristic heuristic+llm
degraded_steps
required
Array<string>
session_id
required

The live session, if any.

string | null format: uuid
created_at
required
string format: date-time
ended_at
required
string | null format: date-time
raw_prompt_stored
required
boolean
raw_prompt

Only on a full read, when the coordinator holds the data key.

string
session
required
object
id
required
string format: uuid
project_id
required
string format: uuid
user_id
required
string format: uuid
user_handle
required
string
intent_id
required

Set from M2.

string | null format: uuid
status
required
string
Allowed values: starting running waiting_human idle done failed abandoned
activity
required

What the agent last said it is doing, set by a heartbeat. Null until one sets it.

string | null
<= 120 characters
created_at
required
string format: date-time
last_heartbeat_at
required
string format: date-time
ended_at
required
string | null format: date-time
token
required

The session token, zt_s_. Shown only once.

string
token_info
required
object
id
required
string format: uuid
kind
required
string
Allowed values: user session admin integration
display_prefix
required

The first characters of the token, safe to show.

string
label
required
string
user_id
string format: uuid
session_id
string format: uuid
project_id
string format: uuid
scopes
required
Array<string>
created_at
required
string format: date-time
expires_at
string format: date-time
last_used_at
string format: date-time
revoked_at
string format: date-time
route

The router’s decision. model is set exactly when the route applies one, and the CLI passes it as the agent’s model flag. tier, rule, and classifier are absent when the router is off or no prompt was there to classify.

object
agent
required
string
Allowed values: claude codex opencode
auth
required
string
Allowed values: api_key subscription
tier
string
Allowed values: cheap frontier
model
string
rule
string
Allowed values: frontier_term long_prompt cheap_term short_prompt default
classifier
string
Allowed values: rules llm
skipped
string
Allowed values: disabled subscription no_model no_prompt
waited_on

The intent this one queued behind. Absent when it queued behind none.

object
intent_id
required
string format: uuid
status
required
string
Allowed values: active queued done abandoned merged watching escalated

Example

{
"registered": true,
"intent": {
"status": "active",
"class": "new",
"resolution": "merge",
"extractor": "heuristic"
},
"session": {
"status": "starting"
},
"token_info": {
"kind": "user"
},
"route": {
"agent": "claude",
"auth": "api_key",
"tier": "cheap",
"rule": "frontier_term",
"classifier": "rules",
"skipped": "disabled"
},
"waited_on": {
"status": "active"
}
}

The request is malformed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

No valid bearer token.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The token may not do this.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

No such resource in the caller’s org.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The request clashes with current state.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

A rate limit or quota stopped the request. Retry-After gives seconds to wait.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}
Retry-After
integer