ErrorsSpecific
HTTP 403Specific
OPERATION_NOT_PUBLIC
The operation is not part of the public API: the Tracken Accounts app may call it, API keys and scope-narrowed tokens may not.
Typical cause
The client calls an endpoint it saw the Tracken Accounts app use. Only the operations in this reference are public.
Fix
Use the documented operations only; this one is done in the app.
Where it comes from
This operation names it:
Related
403The envelope
{
"error": {
"code": "OPERATION_NOT_PUBLIC",
"message": "…",
"request_id": "req_01JB4Z0K3Q7V8W9X0Y1Z2A3B4C",
"doc_url": "https://developers.tracken.ee/errors/OPERATION_NOT_PUBLIC"
}
}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 billing-runs create …
# exits 5 and prints the code, the message, each field problem and the request idimport { isApiError } from "@tracken/sdk";
try {
await tracken.billingRuns.create(…);
} catch (error) {
if (!isApiError(error, "OPERATION_NOT_PUBLIC")) throw error;
// Use the documented operations only; this one is done in the app.
}Install the SDK with npm i @tracken/sdk (0.2.0, MIT, beta), Node.js 22 or later.