Skip to main content

Record AI Feedback

POST 

/api/support/agent/tickets/:ticket/ai/:run/feedback

Records whether an agent used an AI triage or drafted reply, for the AI draft acceptance rate shown on the dashboard (see Get Agent Dashboard Metrics).

Required scope: support:write

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

Sent with property, it records the decision on one suggested ticket property instead of the run as a whole — "the priority was right" is a different question from "the draft was sendable", so the two are recorded separately.

Path parameters

  • ticket (integer) — the ticket id.
  • run (integer) — the AI run id; take it from run_id, triage_run_id or draft_run_id on Get Ticket AI Insights. A run belonging to another ticket is reported as not found.

Request body:

  • accepted (boolean, optional) — defaults to true when omitted
  • property (string, optional) — record the decision on one suggestion instead of the whole run: type, priority, group, assignee or tenant. Anything else is rejected with 422
  • reason (string, optional, max 500) — why; kept with a per-property decision only

Response fields (data)

  • without property: id (the run id) and accepted
  • with property: id, property, accepted, and decisions — every per-property decision recorded on the run so far, keyed by property, each {accepted, by_user_id, at, reason}

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