---
title: "Transfer Ticket Department"
method: POST
path: "/api/cs/tickets/{ticket_id}/transfer"
tags: ["customer_service"]
---

# Transfer Ticket Department

`POST /api/cs/tickets/{ticket_id}/transfer`

## 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/cs/tickets/{ticket_id}/transfer`
- Auth: none declared

Who may transfer: gated exactly like every other write on this
ticket (`_require_kind_grant_or_assignee`, checked against the
ticket's CURRENT kind, before anything moves) -- holding the current
kind's grant or being its assignee. Deliberately NOT gated on also
holding the DESTINATION kind's grant: a CS agent holding only
`tickets:b2c` who transfers a ticket to b2g is pushing work into a
queue they cannot see, and that is the intended shape of this feature
-- an attorney's mail landing on the consumer address, or (the
production shape this was built from, ticket G-59979) a government
ticket whose SUBSTANCE only the consumer desk can fix, must be
movable by whoever is looking at it, not gated on the mover already
having a foot in the other department.

Because of that, the mover can end this call holding a ticket they can
no longer open at all -- Cindy Palma, holding only `tickets:b2g`,
transferring a b2g ticket she is assigned to (and has already replied
on) over to b2c, loses `_require_kind_grant_or_assignee` access to it
the instant this commits: her kind grant does not cover b2c, and the
assignee bypass no longer applies because the transfer just cleared
the assignee. `still_accessible` says so explicitly in the response,
computed the same way that gate itself would evaluate a FRESH GET on
this ticket right now -- so the caller can render "moved to the
consumer queue; you no longer have access to it" instead of the ticket
just disappearing from their screen with no explanation, the exact
silent-disappearance pattern this build exists to avoid.

## Path parameters

- `ticket_id` string, uuid, required

## Request body

- TransferTicketRequest: The "move this to the other department" action (Frederick: "there are sometimes when a b2g ticket needs to be transferred over to a b2c, and times when a b2c has to be transferred over to b2g ... the user should make an internal note, and they should be allowed to reassign that ticket to the other queue"). `to_kind` is required and must name the ticket's OTHER kind -- explicit, not inferred, the same "the client confirms what it is asking for" discipline TransitionRequest's own `to_status` uses, so a stale client cannot silently transfer a ticket that already moved out from under it. `note` is required and refused empty (service.TicketTransferNoteRequired) -- Frederick named this first, and it is the receiving department's only record of why the ticket is suddenly in their pool.
  - `to_kind` string, required
  - `note` string, required

## 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)
