Assign a ticket to a teammate

POST https://api.tamio.com/v2/agency/tickets/assign/{uuid}

Assigns a support ticket to a specific teammate. Pass null for teammate_id to unassign the ticket.

Path Parameters

uuid string*

UUID of the ticket

Body Parameters

uuid string*

UUID of the ticket

teammate_id string

UUID of the teammate to assign, or null to unassign

Responses

200 Ticket assigned successfully

Ticket assigned successfully

status integer
ticket Ticket
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/agency/tickets/assign/{uuid}
1const response = await fetch("https://api.tamio.com/v2/agency/tickets/assign/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "ticket": {
    "id": "string",
    "object": "ticket",
    "title": "Payment processing issue",
    "description": "Client reports payment failures on checkout",
    "is_open": true,
    "subcategory": "Payment Failed",
    "teammate_id": 0,
    "language": "en",
    "created_at": 1700000000,
    "updated_at": 0,
    "replies": []
  }
}