Classify a task against the project's work without storing it (requester or above)
POST
/v1/projects/{project_id}/intents/check
const url = 'http://127.0.0.1:8080/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/intents/check';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"prompt":"example","fork_of":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
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/check \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "example", "fork_of": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Extraction and embedding run first. When a model step fails, the
answer still comes back with degraded: true and the failed steps.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
prompt
required
The task as written. Untrusted text; it is never treated as instructions.
string
fork_of
Register a competing attempt at this intent. Matching skips its fork family.
string | null format: uuid
Example generated
{ "prompt": "example", "fork_of": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”The classification, ranked candidates, and allowed resolutions.
Media typeapplication/json
object
classification
required
string
candidates
required
Array<object>
object
intent_id
required
string format: uuid
status
required
string
user_handle
required
string
own
required
boolean
session_id
required
string | null format: uuid
ticket_ref
required
string | null
summary
required
string
class
required
string
score
required
number
cosine
required
Null when the two intents have no vectors from the same model.
number | null
same_ticket
required
boolean
area_overlap
required
Array<string>
reasons
required
Array<string>
created_at
required
string format: date-time
choices
required
Array<string>
default_choice
required
degraded
required
boolean
degraded_steps
required
Array<string>
extraction
required
object
normalized_text
required
string
summary
required
string | null
touched_areas
required
Array<string>
ticket_ref
required
string | null
extractor
required
Heuristic+llm when the LLM extractor added a summary or areas.
string
embedding_model
required
string
dedup_window_hit
required
boolean
Example
{ "classification": "new", "candidates": [ { "status": "active", "class": "new" } ], "choices": [ "merge" ], "default_choice": "merge", "degraded_steps": [ "extract" ], "extraction": { "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" }}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