End an intent that has no live session (owner or lead)
POST
/v1/intents/{intent_id}/status
const url = 'http://127.0.0.1:8080/v1/intents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/status';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"done"}'};
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/intents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/status \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "done" }'An intent with a live session ends with its session, so this returns 409 session_live.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”intent_id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
status
required
string
Responses
Section titled “Responses”The intent after the change.
Media typeapplication/json
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
class
required
string
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
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
Example
{ "status": "active", "class": "new", "resolution": "merge", "extractor": "heuristic"}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" }}Headers
Section titled “Headers”Retry-After
integer