Skip to content

Requests and responses

https://api.supportaka.com/api/v1

Always use HTTPS. Requests over plain HTTP are refused.

Header When Notes
Authorization: Bearer spk_… Every request Your API key
Content-Type: application/json Requests with a body Bodies are JSON, UTF-8
Idempotency-Key: … Creating a ticket (optional) Makes retries safe. See safe retries
  • Creating is POST to a collection (…/customers), and answers 201 with what was made.
  • Changing is PATCH with only the fields you want to change; the rest keep their values. An empty string clears an optional text field.
  • Actions such as changing a ticket’s status or closing a chat are POST to a named path (…/tickets/{ticketID}/status, …/conversations/{conversationID}/close).
  • Unknown fields are rejected (400 VALIDATION_FAILED), so a typo never goes unnoticed.
  • JSON objects, with snake_case field names.
  • IDs are UUIDs (01a2f0c4-6b1e-7d2a-9c3b-5e8f1a2b3c4d). Treat them as opaque strings.
  • Times are ISO 8601 in UTC: 2026-11-26T09:00:00Z. Dates without a time are YYYY-MM-DD.
  • A field with no value is null, not missing.
  • Lists come as { "items": [...], "next_cursor": "…" }. See pagination.

Every response carries an X-Request-ID header, and every error body has the same value in request_id. Log it. When you contact support about a request, quoting it lets us find exactly what happened.

Tickets and conversations take files (JPEG, PNG or PDF, up to 10 MB) in three steps: ask for an upload (POST …/attachments with the file’s name, type and size), POST the file as multipart/form-data to the signed upload.url you get back (with every upload.fields entry), then confirm it (POST …/attachments/{attachmentID}/uploaded). Each file is checked for its real type and scanned for viruses, then you send it with a reply using its ID in attachment_ids. The API reference has the details under Tickets and Conversations.