SupprtlyHelp centerSign in

Public API & webhooks

Connect Supprtly tickets to your own tools. The API lets your systems read, create and update tickets; webhooks tell your systems the moment a ticket is created, changes or gets a reply.

6 min read

Owners and Admins create API keys and webhooks in Settings → Developers. Available on every plan.

API keys

  1. Open Settings → Developers

    Go to Settings → Developers.

  2. Create a key

    Give it a name (for example “Zapier”) and choose Read-only (list and read tickets) or Read & write (also create and update tickets and add replies).

  3. Copy it right away

    The full key (it starts with spk_) is shown once. Supprtly only keeps a fingerprint of it, so it can't be shown again.

Keep keys on your server
A key can read every ticket in your workspace. Don't put it in a website, mobile app or anything people download. If a key leaks, click Revoke: it stops working immediately. Last used shows when each key was last used.

Making requests

The base URL is https://app.supprtly.com/api/v1. Send your key in the Authorization header and JSON in request bodies. Check a key with GET /me:

curl https://app.supprtly.com/api/v1/me \
  -H "Authorization: Bearer spk_your_key"

Endpoints

RequestWhat it does
GET /ticketsList tickets, most recently updated first. Filters: type (customer or internal), status, priority, tag, updated_since. Paging: limit (up to 100) and cursor.
POST /ticketsCreate a ticket: type, subject (required), description, priority, category, tags, requester { name, email }. Your routing rules assign it (channel: Public API).
GET /tickets/:idOne ticket with its conversation, including internal notes. Use the id or the code (for example cp-482913).
PATCH /tickets/:idChange status, priority, tags, subject, category or assignee_id (a team member's id, or null to unassign).
POST /tickets/:id/messagesAdd a message: body, from (agent or customer, default agent), internal (true for an agent note), author_name.
GET /meYour workspace and the key's name and access.

Statuses are new, open, in_progress, waiting, resolved and closed; priorities are low, medium, high and urgent. Messages added through the API aren't emailed; customers see agent replies under My tickets in the support widget, when the button has it turned on.

Examples

Create a ticket
curl -X POST https://app.supprtly.com/api/v1/tickets \
  -H "Authorization: Bearer spk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"subject":"Can\'t export to CSV","description":"The button does nothing.","priority":"high","requester":{"name":"Ana","email":"ana@example.com"}}'
Resolve it
curl -X PATCH https://app.supprtly.com/api/v1/tickets/cp-482913 \
  -H "Authorization: Bearer spk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"status":"resolved"}'
A ticket in the response
{
  "data": {
    "id": "5f0c…",
    "code": "cp-482913",
    "type": "customer",
    "subject": "Can't export to CSV",
    "status": "new",
    "priority": "high",
    "category": "OTHER",
    "tags": [],
    "requester": { "name": "Ana", "email": "ana@example.com" },
    "assignee": { "id": "9a1e…", "name": "Sam Lee" },
    "created_at": "2026-11-14T15:02:11.000Z",
    "updated_at": "2026-11-14T15:02:11.000Z",
    "closed_at": null,
    "url": "https://app.supprtly.com/tickets/customer/cp-482913"
  }
}

Errors, limits and paging

Errors return { "error": { "code": "…", "message": "…" } } with a status: 400 invalid request, 401 missing, invalid or revoked key, 403 read-only key used to make a change, 404 not found, 429 too many requests (up to 300 a minute per key; wait for Retry-After).

Lists return data, has_more and next_cursor. Pass next_cursor as cursor to get the next page. To sync changes, ask for updated_since the last time you checked.

Webhooks

  1. Add an endpoint

    In Settings → Developers → Webhooks, click Add endpoint, enter your HTTPS URL and pick the events. Copy the signing secret (whsec_…); you can show it again later with Signing secret.

  2. Send a test event

    Send test event posts a ping event and shows what your endpoint answered. Reply with any 2xx status within 10 seconds.

EventSent when
ticket.createdA ticket is created from any channel: widget, email, live chat, the dashboard or the API. Includes the first message.
ticket.updatedStatus, priority, assignee, tags, subject, description or category changed. changes lists which.
ticket.status_changedOnly status changes, with previous_status and status.
message.createdA reply the requester can see, from the customer or an agent. Internal notes are never sent.
What we send (POST, JSON)
{
  "id": "evt_3b9f0c…",
  "type": "ticket.status_changed",
  "created_at": "2026-11-14T15:10:00.000Z",
  "workspace_id": "…",
  "data": {
    "ticket": { "id": "…", "code": "cp-482913", "status": "resolved", … },
    "previous_status": "open",
    "status": "resolved"
  }
}

Headers: Supprtly-Event, Supprtly-Event-Id (the same on retries, so you can ignore duplicates), Supprtly-Delivery-Id and Supprtly-Signature. Redirects aren't followed, and only public HTTPS addresses can receive webhooks.

Check the signature

Supprtly-Signature looks like t=1763132400,v1=5f2b…. v1 is an HMAC-SHA256 of <t>.<raw body> with your signing secret. Compare it in constant time and reject timestamps older than 5 minutes:

Node.js
import crypto from "node:crypto";

function isFromSupprtly(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return v1?.length === expected.length && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
Use the raw body
Check the signature against the exact bytes you received, before parsing the JSON; re-encoding it changes the text and the signature won't match.

Retries and the delivery log

If your endpoint doesn't answer with a 2xx within 10 seconds, Supprtly tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours (6 tries in all), then marks the delivery Failed. Recent deliveries on each endpoint shows the status, the response code, the number of tries and the payload, and Redeliver sends one again. Untick Enabled to pause an endpoint without deleting it.

Ready to set up your help desk?

Create your workspace and follow the steps above.

Create your workspace