Register a task with a resolution, and start its session when it runs now
const url = 'http://127.0.0.1:8080/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/intents';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"prompt":"example","fork_of":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","resolution":"merge","accept_default":true,"route":{"agent":"claude","auth":"api_key"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8080/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/intents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "example", "fork_of": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "resolution": "merge", "accept_default": true, "route": { "agent": "claude", "auth": "api_key" } }'The match runs again under a per-project lock (ADR-0006). A new
task needs no resolution. Otherwise resolution must be one of the
choices the match allows, or accept_default picks the default.
When it does not, nothing is stored and the response is 409 with the
match in check. An active intent comes with its session and a
session token, shown only in this response. A requester’s intent is
stored as queued and gets no session.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Use the match’s default choice when resolution is empty, as zt start –yes does.
Asks the model router for a model. Only a registration that starts a session is routed.
object
How the user says the agent authenticates. Empty means subscription, which never gets a model. The coordinator reads no credential.
Responses
Section titled “Responses”Registered.
object
object
object
Null when the two intents have no vectors from the same model.
object
Heuristic+llm when the LLM extractor added a summary or areas.
object
The root of the fork family.
Null until the intent has a vector.
Heuristic+llm when the LLM extractor added a summary or areas.
The live session, if any.
Only on a full read, when the coordinator holds the data key.
object
Set from M2.
What the agent last said it is doing, set by a heartbeat. Null until one sets it.
The session token, zt_s_. Shown only once.
object
The first characters of the token, safe to show.
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
Example
{ "reason": "resolution_required", "check": { "classification": "new", "candidates": [ { "status": "active", "class": "new" } ], "choices": [ "merge" ], "default_choice": "merge", "degraded_steps": [ "extract" ], "extraction": { "extractor": "heuristic" } }, "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" }}The request is malformed.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}No valid bearer token.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The token may not do this.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}No such resource in the caller’s org.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}Not registered. reason says why and check holds the match.
object
object
object
Null when the two intents have no vectors from the same model.
object
Heuristic+llm when the LLM extractor added a summary or areas.
object
The root of the fork family.
Null until the intent has a vector.
Heuristic+llm when the LLM extractor added a summary or areas.
The live session, if any.
Only on a full read, when the coordinator holds the data key.
object
Set from M2.
What the agent last said it is doing, set by a heartbeat. Null until one sets it.
The session token, zt_s_. Shown only once.
object
The first characters of the token, safe to show.
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
Example
{ "reason": "resolution_required", "check": { "classification": "new", "candidates": [ { "status": "active", "class": "new" } ], "choices": [ "merge" ], "default_choice": "merge", "degraded_steps": [ "extract" ], "extraction": { "extractor": "heuristic" } }, "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" }}A rate limit or quota stopped the request. Retry-After gives seconds to wait.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}