Create a ticket

POST https://api.tamio.com/v2/agency/tickets/create

Creates a new support ticket on behalf of a client. The client must exist and belong to the agency.

Body Parameters

client_id string*

UUID of the client creating the ticket

title string*

Ticket subject/title

description string*

Detailed description of the issue

category string*

UUID of the ticket category

subcategory string

Subcategory for further classification

assets array of string

Asset UUIDs to attach to the ticket

Responses

200 Ticket created successfully

Ticket created successfully

status integer
ticket Ticket
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/agency/tickets/create
1const response = await fetch("https://api.tamio.com/v2/agency/tickets/create", {
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": []
  }
}