Skip to main content

Rerun AI Triage

POST 

/api/support/agent/tickets/:ticket/ai/rerun

Re-runs the AI triage and drafted reply for a ticket from the current thread. Each call starts a new pass and does not overwrite earlier runs; the response is the latest completed run of each kind (triage, draft). A run can finish as done, skipped (a prompt-injection screen matched the ticket text and it was left for a human), failed — only done runs are returned. Nothing here reaches the customer; a drafted reply is only sent if an agent sends it.

Required scope: support:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Run fields: kind, status, model, output (triage: classification — one of NEEDS_INFO, BUG_SUSPECTED, HOW_TO, FEATURE_REQUEST, BILLING, SPAM_OR_NOISE — plus type, priority, area, summary, questions[], bug_confirmed and docs[] of {title, url, snippet, score}; draft: body, classification), accepted (null until an agent records feedback), created_at. When the ticket has no type yet, a completed triage sets it.

Authentication: Bearer token with the support:write scope, or an authenticated session, from a caller with an active support role that can work tickets.

Request​

Responses​

OK

Response Headers
    Content-Type