Skip to main content
Twenty endpoints. Create a ticket, list and read tickets, update one, mark as spam, request an AI draft, read or post messages, list members, create, update, find and list customers, add, update, delete and list reference documents, and manage webhooks.

Authentication

Every request needs Authorization: Bearer mdsk_api_..., from Settings → API.

Conventions

JSON in, JSON out. Send Content-Type: application/json on anything with a body. Timestamps are ISO 8601 in UTC, always. Ids are UUIDs. reference (ACME-1042) is the human-facing label, the one you show people. id is what you pass to the API. Every response carries X-Request-Id. Log it, and include it when you report a problem.

Versioning

The version lives in the path. Additive changes ship in place, so your integration should ignore fields it does not recognise rather than failing on them. A breaking change gets a new version.

The ticket lifecycle

resolved and closed can both go back to open. Anything else the state machine does not allow returns 422 invalid_transition. A requester replying to a resolved ticket reopens it. That is the one transition that happens without a person.

Public and internal messages

A message is public or internal, and the difference is who can see it. A public message reaches the requester on the channel the ticket arrived on. An internal note notifies nobody outside the workspace. Internal notes are never returned by this API, on any endpoint, with any parameter. If you need them, they are in the dashboard. A customer’s note is not one of them. It is the standing note on the customer, which PUT /v1/customers writes and the customer object returns, not a note on a conversation.

Changed

2026-10-18: Replies on conversations created through the API are now emailed to the customer when they have an email address.

Reference documents wait for an owner

A document you add through this API is saved switched off, with status: "proposed". The AI cannot read it until an owner switches it on in the dashboard. Updating it switches it off again. That is deliberate. The AI can send some replies without a person reading them first, and it trusts reference documents because only owners put them in front of it. A document from an integration goes through an owner to keep that true. You can update and delete only the text documents added through this API. A document an owner wrote, a FAQ, a file or a website answers 404.

What this API does not expose

The AI audit log, automation settings, and billing are all dashboard-only for now. Reading the audit log is the most likely early addition, since compliance teams tend to ask for it.

Before you build

Idempotency

Read this before putting ticket creation behind a retry.

Webhooks

Get notified when conversations arrive, status changes, or messages come in.

Pagination

Cursors, not page numbers, and why.

Errors

One envelope, a fixed set of codes, and which are worth retrying.

Rate limits

600 a minute per credential.

The dashboard’s own API is not this one

The dashboard talks to a different, unversioned surface using a signed-in agent’s session. It is internal and changes without notice. Everything documented here is the stable one. If you find an endpoint that is not in this reference, it is not a contract and it will move.