All error codes
missing_api_key
HTTP 401Not retryableNo API key was supplied. Send `Authorization: Bearer <key>` or `X-Integration-Key`.
How to resolve
- Include `Authorization: Bearer intx_public_live_...` in every request.
- Alternatively, pass the key via the `X-Integration-Key` header.
Example response
JSON
{
"object": "error",
"code": "missing_api_key",
"message": "No API key was supplied. Send `Authorization: Bearer <key>` or `X-Integration-Key`.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/missing_api_key"
}SDK handling
TypeScript
import { StatxtClient, StatxtApiError } from "@statxt/sdk"
const client = new StatxtClient({ apiKey: process.env.STATXT_API_KEY! })
try {
await client.messages.send({ ... })
} catch (err) {
if (err instanceof StatxtApiError && err.code === "missing_api_key") {
// No API key was supplied. Send `Authorization: Bearer <key>` or `X-Integration-Key`.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/missing_api_key