Skip to content

Open a support ticket

POST/tickets

Overview

Opens a support ticket and returns it with its conversation. Send department_id from the department list, message and priority (Low, Medium or High). subject is optional: without one, a short subject is written from the message. Use service_id to identify the related service. You can include up to 5 files in attachments[], limited to 4 MB each and 8 MB total. Ticket creation has a separate, stricter rate limit than ticket reads.

Permissions

Requires the account permission tickets.write (Write to support).

curl --request POST \
  --url 'https://console.advinservers.com/api/v1/client/tickets' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --form 'department_id=1' \
  --form 'subject=Packet loss on lambda-core' \
  --form 'message=Since about 08:30 UTC lambda-core has been dropping around 5% of packets from the Sector C labs. MTR output from 192.0.2.44 is attached. sector-c-db in the same location is not affected, so we have paused the anti-mass spectrometer test runs for now.' \
  --form 'priority=Medium' \
  --form 'service_id=7312' \
  --form 'attachments[]=@mtr-lambda-core.txt'
{
  "id": 5316,
  "number": "NQX-482913",
  "subject": "Packet loss on lambda-core",
  "status": "Open",
  "priority": "Medium",
  "department": "Technical Support",
  "opened_at": "2026-09-14T09:12:44+00:00",
  "last_replied_at": "2026-09-14T09:12:44+00:00",
  "awaiting_customer": false,
  "closed": false,
  "service": null,
  "server": {
    "id": "ecc6f4f1-c89b-4dce-a20b-a330641c5b0b",
    "uuid_short": "ecc6f4f1",
    "name": "lambda-core",
    "hostname": "lambda-core.blackmesa.example.com",
    "template_name": "Ubuntu 24.04",
    "template_icon_url": "/assets/icons/ubuntu.png",
    "windows": false
  },
  "messages": [
    {
      "id": 0,
      "author": "Gordon Freeman",
      "is_staff": false,
      "is_assistant": true,
      "posted_at": "2026-09-14T09:12:44+00:00",
      "body": "Since about 08:30 UTC lambda-core has been dropping around 5% of packets from the Sector C labs. MTR output from 192.0.2.44 is attached. sector-c-db in the same location is not affected, so we have paused the anti-mass spectrometer test runs for now.",
      "attachments": [
        {
          "index": 0,
          "filename": "mtr-lambda-core.txt",
          "url": "/api/v1/client/tickets/5316/messages/0/attachments/0"
        }
      ]
    }
  ]
}

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Body

multipart/form-data
department_idintegerrequired

The department id ID.

1 to 4294967295

subjectstring | null

The subject line for the message.

3 to 255 characters

Must match ^[^\p{C}]+$

messagestringrequired

The message text.

2 to 20000 characters

prioritystringrequired

The value of priority.

One of: Low, Medium, High

service_idinteger | null

The service id ID.

1 to 4294967295

attachmentsfile[]

The value of attachments.

At most 5 items

Response 201

application/json

The record, as a JSON object. There is no envelope.

idintegerrequired

The id ID.

numberstringrequired

The ticket reference sent by email, such as #ABC-123456. Use the numeric ticket ID for API requests.

subjectstringrequired

The subject line for the message.

statusstringrequired

The value of status.

prioritystring | nullrequired

The value of priority.

departmentstring | nullrequired

The value of department.

opened_atstring | nullrequired

The date and time for opened at, in UTC.

last_replied_atstring | nullrequired

The date and time for last replied at, in UTC.

awaiting_customerbooleanrequired

Whether the customer is the one being waited on.

closedbooleanrequired

The value of closed.

servicestring | nullrequired

The value of service.

serverobject | nullrequired

The machine it is about, where the service names one. Enough of it to draw the badge the customer recognises and to link to it.

Show child attributes
idstringrequired

The id ID.

uuid_shortstringrequired

The value of uuid_short.

namestringrequired

The name shown to customers.

hostnamestringrequired

The fully qualified hostname.

template_namestring | nullrequired

The value of template_name.

template_icon_urlstring | nullrequired

The value of template_icon_url.

windowsbooleanrequired

The value of windows.

messagesobject[] | null

The conversation, oldest first, and only where it was asked for.

Show child attributes
idintegerrequired

The id ID.

authorstring | nullrequired

Staff are shown by whatever name the installation puts on their replies, which is often a role rather than a person and is the name the customer already sees in the ticket emails.

is_staffbooleanrequired

Whether the resource is staff.

is_assistantbooleanrequired

A staff reply written by the AI assistant rather than a person.

posted_atstring | nullrequired

The date and time for posted at, in UTC.

bodystringrequired

The message body.

attachmentsobject[]required

The value of attachments.

Show child attributes
indexintegerrequired

The value of index.

filenamestringrequired

The value of filename.

urlstringrequired

The complete URL.

Errors

400
Support is unavailable or the selected department cannot accept this ticket.
401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
422
A field is missing or invalid, or the resource cannot accept this change in its current state. Check message for details. Field validation also includes an errors object keyed by field name.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.