SupaKnock
Menu
Browse topics Responses, retries and limits
← Developer reference

API reference

Responses, retries and limits

Handle errors, version conflicts, pagination and request limits.

Pagination

Most lists accept limit (default 25, max 100) and offset (default 0, max 1,000,000). Responses contain items, has_more, limit and offset. Increase offset by the returned limit until no more remain. Popularity and active-chat ordering can move while you page.

Message history uses sequence cursors. Connected-app users/activity use an opaque continuation. Some small administrator collections return only items. Follow each operation's schema.

Useful errors

{
  "error": {
    "code": "invalid_input",
    "message": "Check the submitted fields",
    "fields": [{"field":"body.title","message":"Field required"}]
  }
}

fields appears on validation errors. Use the stable code for client behavior. 400 means correct input; 401 means authenticate again; 403 means check permissions, origin or CSRF; 404 can mean a concealed record. After 409, reload and review the current state before retrying. A newer version cannot bypass a locked or invalid action.

413 means the body is too large. On 429, wait and honor Retry-After when supplied. On a timeout or 5xx, retry only if that operation is safe to repeat. Feedback submission is not idempotent; vote writes, chat sends and form submissions with retained client IDs are.

Text and body sizes

Feedback titles allow 200 characters, descriptions 20,000 and chat messages 4,000. Default bodies are 96 KiB; ordinary chat bodies are 32 KiB. Defined Markdown, personality and report-edit routes allow 400 KiB of JSON while retaining their decoded-text limits. Unknown input fields are rejected. Check the operation before building an upload form.

Empty responses and timestamps

A successful delete or logout may return 204 with no body; don't parse it as JSON. Resource timestamps are UTC ISO-8601 strings. Webhook signature timestamps use Unix seconds.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.