Skip to main content
POST
Create a ticket

Authorizations

Authorization
string
header
required

API token with sk-de- prefix. Created in the Decimal dashboard under Settings → API Tokens.

Scopes

tickets:write

Headers

Idempotency-Key
string

Unique key for this request, such as a UUID. Retries with the same key within 24 hours return the original response.

Maximum string length: 255

Body

application/json
requester
object
required
title
string
required
Required string length: 1 - 200
body
string
required

Plain text. Line breaks are kept; HTML is shown as text.

Required string length: 1 - 16000
fields
object

Extra form answers, such as category or account ID. Shown on the ticket as label: value.

priority
enum<string>
Available options:
urgent,
high,
medium,
low
tags
string[]
Maximum array length: 20
Required string length: 1 - 100
mailbox_id
integer

Mailbox that sends replies. Required when the organization has more than one mailbox.

Required range: x <= 9007199254740991

Response

The new ticket.

id
integer
required

Decimal ticket ID.

external_id
string
required

Ticket ID in the source helpdesk.

source
string
required

Helpdesk the ticket was synced from.

number
integer | null
required
display_id
string | null
required
title
string
required
body_html
string
required

The original post.

state
string
required

Status as the helpdesk names it. Not normalized across helpdesks.

priority
string | null
required
type
string
required
url
string | null
required

Link to the ticket in the helpdesk.

decimal_url
string<uri>
required

Link to the ticket in Decimal.

tags
string[]
required
requester
object | null
required

Other fields are as returned by the helpdesk and vary by helpdesk.

account
object | null
required

Other fields are as returned by the helpdesk and vary by helpdesk.

assignee
object | null
required

Other fields are as returned by the helpdesk and vary by helpdesk.

team
object | null
required

Other fields are as returned by the helpdesk and vary by helpdesk.

custom_fields
object | null
required

As returned by the helpdesk. Shape varies by helpdesk.

created_at
string<date-time> | null
required

When the ticket entered Decimal. For older tickets, when it was created in the helpdesk.

external_created_at
string<date-time> | null
required

Created in the helpdesk.

external_updated_at
string<date-time> | null
required

Last updated in the helpdesk.