ORG_HEADER_REQUIRED
A person's token was sent without X-Organization-ID. Every call made with a user token names the organization it acts in; getCurrentUser without the header lists the ones to choose from.
Typical cause
A person's token (the CLI's, an MCP client's) was used in a script that does not send X-Organization-ID. The CLI sends it for you; a hand-written request has to.
Fix
- Send
X-Organization-ID: <organization id>. - Machine tokens never need it.
Where it comes from
Any operation can answer it (HTTP 400).
Related
{
"error": {
"code": "ORG_HEADER_REQUIRED",
"message": "…",
"request_id": "req_01JB4Z0K3Q7V8W9X0Y1Z2A3B4C",
"doc_url": "https://developers.tracken.ee/errors/ORG_HEADER_REQUIRED"
}
}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.tracken contacts list …
# exits 9 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, "ORG_HEADER_REQUIRED")) throw error;
// Send X-Organization-ID: <organization id>.
}