Tamio

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

teammate_id string

UUID of the teammate to assign, or null to unassign

Example
{
  "teammate_id": "770e8400-e29b-41d4-a716-446655440000"
}

Responses

200 Ticket assigned successfully

Ticket assigned successfully

status integer
ticket Ticket
400 Validation or business-logic error.
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 "teammate_id": "770e8400-e29b-41d4-a716-446655440000"
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "ticket": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "object": "ticket",
    "title": "Payment processing issue",
    "is_open": true,
    "category": "Billing Issues",
    "subcategory": "Payment Failed",
    "teammate_id": "770e8400-e29b-41d4-a716-446655440000",
    "client": {
      "id": "660e8400-e29b-41d4-a716-446655440000",
      "name": "John Doe",
      "email": "[email protected]"
    },
    "language": "en",
    "created_at": 1700000000,
    "updated_at": 1700086400,
    "replies": [
      {
        "id": "880e8400-e29b-41d4-a716-446655440000",
        "text": "We have resolved your issue.",
        "is_client_reply": false,
        "created_at": 1700000000,
        "assets": [
          {
            "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
            "object": "asset",
            "filename": "screenshot.png",
            "extension": "png",
            "filesize": 204800,
            "type": "image",
            "version": 1,
            "status": "ready",
            "alt_text": "Error screenshot",
            "width": 1920,
            "height": 1080,
            "public_url": "https://pub.ox31.com/assets/screenshot.png",
            "folder": null,
            "thumbnails": [],
            "created_at": 1700000000,
            "updated_at": 1700086400
          }
        ]
      }
    ]
  }
}