Skip to content

Authentication

Every request carries an API key in the Authorization header:

GET /api/v1/organizations/{orgID}/products HTTP/1.1
Host: api.supportaka.com
Authorization: Bearer spk_4f2a9c_Jt9w…

A key looks like spk_<public id>_<secret>. Supportaka keeps only a hash of it, so the full key is shown once, when you create or rotate it.

Keys are made by an owner of the organization, in the dashboard under Developers → API keys. For each key you choose:

  • A name, so you know later what uses it (CRM sync, Order bot).
  • Scopes: what the key may do (below). Give each key only what it needs.
  • A product (optional). A product key works only on that one product; any other product looks as if it doesn’t exist. Use one when a system only deals with one brand or app.

A key acts as the owner who made it, within its scopes. If that person leaves the organization or stops being an owner, the key stops working (401 API_KEY_INVALID). For long-lived integrations, have a long-standing owner make the key.

Scope Lets the key
products:read Read products, their departments, widget settings and service-level policy
customers:read Read customers, their follow-ups, deals, bookings and custom fields
customers:write Also create and update customers, deals, follow-ups and bookings
tickets:read Read tickets, their messages, history and files
tickets:write Also open tickets, reply, attach files and change status
conversations:read Read conversations, their messages and files
conversations:write Also reply, send templates, claim, transfer and close conversations
knowledge:read Read FAQs, articles and their categories, and search them
knowledge:write Also create and edit FAQs, articles and categories, as drafts
knowledge:publish Publish and unpublish FAQs and articles, and edit published ones (with knowledge:write)

The API reference shows the scope each endpoint needs at the top of its description.

Plans. Your plan decides whether API keys are allowed at all, whether scopes that change data are (some plans allow read-only keys; knowledge:publish needs full API access), how many keys can be active, and how many requests you can make. The Developers page shows your limits. Choosing a scope your plan doesn’t allow gives 403 API_SCOPE_UNAVAILABLE.

A key is for your systems talking to Supportaka, not for running the organization. It can’t manage the team, billing, security settings, API keys or webhooks, and it can’t do anything that would ask a person to confirm their password. Those answer 403.

Status and code Meaning What to do
401 API_KEY_INVALID The key is unknown, revoked or expired, the plan no longer allows keys, or the owner who made it has left Check the key; make a new one if needed
401 UNAUTHENTICATED No key was sent, or it was sent for another organization’s URL Send Authorization: Bearer … and check {orgID}
403 PERMISSION_DENIED The key’s scopes don’t allow this; details.permission names what was needed Add the scope, or use another key
404 PRODUCT_NOT_FOUND The product doesn’t exist, or the key is limited to another product Check {productID} and the key’s product
400 AMBIGUOUS_CREDENTIALS The request also carried a browser session cookie Call the API from your server, not a browser
429 RATE_LIMITED Too many requests See rate limits
  • Server-side only. Never put a key in front-end JavaScript, a mobile app, or anything a user can download. Requests from a browser that also carry a session are refused.
  • One key per system. If one leaks you revoke just that one, and the dashboard shows when each was last used. Keys can also be given an expiry date.
  • Store it as a secret. Use environment variables or your platform’s secret store, not source code.
  • Rotate from the Developers page when someone with access leaves, or on a schedule. Rotating gives a new key (shown once) with the same name, scopes and product. The old key keeps working for a grace period (24 hours unless you choose otherwise), so you can switch over without downtime.
  • Revoke a key you no longer use.