ErrorsGeneral
HTTP 403General
PERMISSION_DENIED
The person's role in the organization does not allow the operation. For a person, the rights are their role and the token's scopes together.
Typical cause
A person with a read-only or limited role runs a write through the CLI or an assistant.
Fix
An administrator of the organization can change the person's role.
Where it comes from
Any operation can answer it (HTTP 403).
Related
403The envelope
{
"error": {
"code": "PERMISSION_DENIED",
"message": "…",
"request_id": "req_01JB4Z0K3Q7V8W9X0Y1Z2A3B4C",
"doc_url": "https://developers.tracken.ee/errors/PERMISSION_DENIED"
}
}Switch on
code, never on message, which is developer-facing English and may change. Field problems are in details, each with a JSON Pointer; the figures for your own text are in context. Quote request_id when you contact support.Handle it
tracken contacts list …
# exits 5 and prints the code, the message, each field problem and the request idimport { isApiError } from "@tracken/sdk";
try {
await tracken.contacts.list(…);
} catch (error) {
if (!isApiError(error, "PERMISSION_DENIED")) throw error;
// An administrator of the organization can change the person's role.
}Install the SDK with npm i @tracken/sdk (0.2.0, MIT, beta), Node.js 22 or later.