Skip to content
dimmiDocs

Reports and data

Report tickets by type

GET/api/v1/reports/tickets/by-type

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the tickets:read ability

Query parameters

fromstring

First day, 2006-01-02. Defaults to 30 days ago.

tostring

Last day included, 2006-01-02. Defaults to today.

Response 200

OK
dataobject[] | nullrequired

The items, as a list; empty when there are none.

Show child attributes
createdintegerrequired

How many tickets of this type were created in the reported range.

Format: int64

kindstringrequired

What tickets of this type are: customer, back_office or tracker.

namestringrequired

The ticket type's name.

openintegerrequired

How many tickets of this type are open now.

Format: int64

resolvedintegerrequired

How many tickets of this type were resolved in the reported range.

Format: int64

type_idstringrequired

Id of the ticket type, such as tktt_....

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.