Requests and responses
Base URL
Section titled “Base URL”https://api.supportaka.com/api/v1Always use HTTPS. Requests over plain HTTP are refused.
Headers
Section titled “Headers”| 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 |
Requests
Section titled “Requests”- Creating is
POSTto a collection (…/customers), and answers201with what was made. - Changing is
PATCHwith 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
POSTto a named path (…/tickets/{ticketID}/status,…/conversations/{conversationID}/close). - Unknown fields are rejected (
400 VALIDATION_FAILED), so a typo never goes unnoticed.
Responses
Section titled “Responses”- JSON objects, with
snake_casefield 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 areYYYY-MM-DD. - A field with no value is
null, not missing. - Lists come as
{ "items": [...], "next_cursor": "…" }. See pagination.
Request IDs
Section titled “Request IDs”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.