Skip to content

Clearer permission errors in the HTTP API

Role refusals now return 403 permission_denied, and request bodies require the application/json media type.

Two HTTP API changes on October 19 and 20, 2026 affect callers that use the /v1 API directly. The CLI, SDK, MCP server, and dashboard need no update.

An authenticated account whose role doesn't permit an operation now receives 403 permission_denied. It previously received 401 access_denied, the same answer as a rejected key or session, which could lead a client to discard a working key. A 401 still means the key, session, or grant was not accepted. On a 403, keep the credential and ask a workplace owner or admin for the access you need.

Every /v1 operation that reads a request body now requires Content-Type: application/json. Parameters such as charset are accepted. A body sent with any other media type, such as text/plain or application/json-seq, or with no Content-Type header, receives 400.

The API errors reference lists every status and code.