Skip to main content
POST
Create a ticket

Authorizations

Authorization
string
header
required

An API credential from Settings → API, sent as Authorization: Bearer mdsk_api_.... Issued per workspace and shown once.

Headers

Idempotency-Key
string

Any unique string. Replays within 24 hours return the first response.

Body

application/json
body
string
required
Required string length: 1 - 50000
requester
object
required
priority
enum<string>
Available options:
low,
normal,
high,
urgent
category
string
deprecated

Deprecated: topics are tags now. Applies the tag of that name to the conversation, creating it when missing.

Required string length: 1 - 60
language
string
Required string length: 2 - 35
Pattern: ^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$
first_message_from
enum<string>
default:customer
Available options:
customer,
team

Response

The ticket was created.

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
reference
string
required
status
enum<string>
required
Available options:
new,
open,
pending,
resolved,
closed
priority
enum<string>
required
Available options:
low,
normal,
high,
urgent
category
string | null
required
deprecated

Deprecated: topics are tags now. The first tag the AI added to the conversation, or its first tag when the AI added none; null when it has no tags.

source
enum<string>
required
Available options:
agent,
widget,
email,
api,
telegram,
instagram,
messenger,
whatsapp
language
string | null
required
requester
object | null
required
created_at
string
required
updated_at
string
required
delivery
enum<string>
Available options:
sent,
held