All error codes

not_found

HTTP 404Not retryable

Resource not found, or visible only to a different organization. Cross-tenant access never returns 200 or 403.

How to resolve

  • Confirm the resource ID belongs to your organization.
  • IDs from other organizations return 404 (not 403) by design — cross-tenant access is invisible.

Example response

JSON

{
  "object": "error",
  "code": "not_found",
  "message": "Resource not found, or visible only to a different organization. Cross-tenant access never returns 200 or 403.",
  "request_id": "req_example123",
  "docs_url": "https://docs.statxt.com/api/errors/not_found"
}

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 === "not_found") {
    // Resource not found, or visible only to a different organization. Cross-tenant access never returns 200 or 403.
    console.error(err.requestId) // include in support tickets
  }
}

Public reference: /docs/errors/not_found