Skip to content
dimmiDocs

Tickets

Get a ticket type

GET/api/v1/ticket-types/{type}

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the tickets:read ability

Path parameters

typestringrequired

Id of the ticket type, starting with tktt_, such as tktt_01jx2m8k4t. Find it with GET /ticket-types.

Response 200

OK
dataobjectrequired
Show child attributes
ai_auto_fillbooleanrequired

True when the AI fills in fields on this type's tickets.

archived_atstring | nullrequired

When the type was archived: no new tickets can use it, old ones keep it. Null while it is in use.

Format: date-time

auto_resolve_daysinteger | nullrequired

Days a ticket waits on the customer before it resolves itself, 1 to 90. Null when tickets never resolve themselves.

Format: int32

auto_resolve_messagestring | nullrequired

Message sent to the customer in the ticket's conversation when the ticket resolves itself, up to 2000 characters. Null when none is sent.

company_sharingbooleanrequired

True when everyone at the requester's company sees tickets of this type.

customer_visiblebooleanrequired

True when the messenger and customer portal show this type.

default_resolved_state_idstring | nullrequired

Id of the resolved state tickets of this type move to by default, such as tkts_.... Null when none is set.

default_state_idstring | nullrequired

Id of the state new tickets of this type start in, such as tkts_.... Null when none is set.

descriptionstringrequired

What this type is for, up to 500 characters. Empty when none is set.

fieldsobject[] | nullrequired

The type's fields, each with its key, data type and when it is required.

Show child attributes
ai_autobooleanrequired

True when the AI may fill this field in by itself.

ai_hintstring | nullrequired

Guidance telling the AI how to fill this field, up to 500 characters. Null when none is set.

archived_atstring | nullrequired

When the field was archived: hidden from new work but kept on old tickets. Null while it is in use.

Format: date-time

currencystring | nullrequired

Three-letter uppercase currency code for a currency field, such as USD. Null when none is set.

data_typestringrequired

The type of value the field holds: short_text, long_text, number, decimal, currency, boolean, date, single_choice, multiple_choice, file, member or company.

descriptionstringrequired

Help text explaining the field, up to 300 characters. Empty when none is set.

editable_customerbooleanrequired

True when the customer may change this field's value.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

keystringrequired

The field's key within its type, lowercase letters, digits and underscores, such as order_number. Use it as the key in a ticket's fields object.

labelstringrequired

The field's name as people see it, 1 to 80 characters.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

optionsstring[] | nullrequired

The choices of a single_choice or multiple_choice field, as a list of strings. Empty for fields without choices.

positionintegerrequired

The field's place in its type's field order, lower first.

Format: int32

required_createbooleanrequired

True when a teammate must give this field a value to create a ticket.

required_create_customerbooleanrequired

True when a customer must give this field a value to create a ticket.

required_resolvebooleanrequired

True when the field must have a value before the ticket can be resolved.

show_whenobjectrequired
Show child attributes
equalsstring[] | null

Values of the other field under which this one shows. Left out when any value is enough.

fieldstringrequired

Key of the other ticket field that must have a value for this one to show.

type_idstringrequired

Id of the ticket type the field belongs to, such as tktt_.... Send it wherever a ticket type is asked for.

visible_customerbooleanrequired

True when the customer sees this field on their ticket.

iconstringrequired

Name of the type's icon, lowercase with dashes, such as ticket.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

inbox_idstring | nullrequired

Id of the inbox tickets of this type go to by default, such as inbox_.... Null when none is set.

kindstringrequired

What tickets of this type are: customer (a customer's request), back_office (work for another team) or tracker (many reports of one problem).

namestringrequired

The type's name, 1 to 60 characters.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

open_ticketsintegerrequired

How many tickets of this type are open now.

Format: int64

positionintegerrequired

The type's place in the workspace's order of types, lower first.

Format: int32

reopen_daysintegerrequired

Days a resolved ticket can still be reopened, 0 to 90.

Format: int32

state_idsstring[] | nullrequired

Ids of the states this type may use, in its order, such as tkts_.... A ticket of this type can only move to one of these.

team_idstring | nullrequired

Id of the team tickets of this type go to by default, such as team_.... Null when none is set.

tickets_by_stateobjectrequired

Count of this type's tickets in each state, trashed ones included, keyed by state id, such as {"tkts_...": 12}.

total_ticketsintegerrequired

How many tickets of this type exist in all.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.