Errors

Status codes and how to handle them.

StatusErrorWhat to do
400invalid_action_descriptor, validation_errorFix the request; issues lists each invalid field. A missing threadId or actionType returns a plain error message instead of a code
400invalid_runtimeThe runtimeId is unknown or belongs to another agent
400context_not_in_threadReferenced context does not belong to this thread
401unauthorized, invalid_bearerCheck the Authorization header and that the agent is enabled
404thread_not_foundThe thread does not exist for this agent’s tenant
409client_request_id_conflictThe same clientRequestId was sent with a different request; use a new ID
409previous_evaluation_failedAn earlier request with this ID failed; send a new ID
504evaluation_in_flight_timeoutAn earlier request with this ID is still running; retry shortly with the same ID
500evaluation_replay_unavailableThe original decision for this ID cannot be replayed; send a new ID
5xxOtherRetry with backoff; treat as a block until it succeeds

Error body

{
  "error": "thread_not_found",
  "message": "Thread not found for tenant"
}
Last reviewed October 2026Suggest a change