List tickets
GET /v0/tickets returns tickets newest first in data, with has_more indicating whether more pages exist. Page with limit and starting_after, and filter by helpdesk with the optional source parameter.
Search tickets
GET /v0/tickets/search returns the tickets that best match query, best match first, matching on meaning as well as keywords. Use the optional limit and source parameters to cap and filter results. Results don’t include messages or attachments.
Create a ticket
POST /v0/tickets creates a ticket from a contact form or any other source. Decimal answers it like an emailed ticket, sending replies to requester.email from your mailbox.
Creating tickets requires an email mailbox connected in Decimal. If more than one mailbox is connected, pass mailbox_id. The endpoint accepts an Idempotency-Key header.
Find a ticket
To look up a ticket by Decimal’s ID, useGET /v0/tickets/{id}. To download a file attached to a ticket, use GET /v0/tickets/{id}/files/{file_id}, which redirects to a short-lived download link.
The Get a ticket and Delete a ticket endpoints take two path parameters:
source: the helpdesk, lowercase, such aszendeskorplainexternal_id: the ticket’s ID in that helpdesk. For Plain, use the thread ID.
body_html, then every reply and internal note in messages, oldest first. is_private marks internal notes. requester, account, assignee, team, and custom_fields come straight from the helpdesk, so their shape depends on which one you use.
Delete a ticket
Deleting removes the ticket from Decimal only. If it still exists in your helpdesk, the next sync brings it back, so delete it there first. A500 on delete means the deletion didn’t finish. Send the same request again.
Deleting a ticket is permanent.