---
title: "Triage Cs Ticket"
method: POST
path: "/api/rooster/cs/tickets/{ticket_id}/triage"
tags: ["rooster"]
---

# Triage Cs Ticket

`POST /api/rooster/cs/tickets/{ticket_id}/triage`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/rooster/cs/tickets/{ticket_id}/triage`
- Auth: none declared

Rooster's triage tool (see app/modules/rooster/triage.py): reaches
one of three conclusions on a ticket BEFORE ever drafting anything --
'reply' (proceed to draft exactly as before this route existed, no side
effect), 'suggest_spam' (unsolicited marketing/bulk mail -- do not
draft; a human confirms via the pre-existing `POST .../spam` button),
or 'unsure' (genuinely ambiguous -- leave it for a human rather than
guess either way). Records a 'declined' disposition for the latter two
-- docs/SUPERVISION_DESK.md's outcome taxonomy, a SUCCESS, never
'abandoned' -- and raises a human-visible ActionItem routed the same
way every other ticket-scoped card in this codebase already is.

Gated on the SAME `rooster:cs:draft` grant as every other CS-drafting
route -- deciding whether a ticket deserves a reply is part of the same
drafting capability, not a new one. Idempotent per ticket, exactly like
`POST .../escalate`: a repeat call while a triage card for this ticket
is still on file reuses that card and records no second disposition
(`created: false`).

## Path parameters

- `ticket_id` string, uuid, required

## Request body

- TriageTicketRequest
  - `outcome` string, required
  - `reason` string

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
