Skip to main content
Admin API failures carry a code in the AB series alongside the HTTP status. The code is the precise reason; the status is the class.

Error reference

The four you will actually hit

The request never got as far as being authorised. In order of likelihood:
  1. A gateway API key was sent instead of an access token. The Admin API does not accept the key your applications use for inference. Obtain a Strata Cloud Manager access token instead.
  2. The token expired. Access tokens last 15 minutes. Request a fresh one.
  3. The token is malformed, truncated in an environment variable or carrying a stray newline.
Paste the token into jwt.io to confirm what it actually contains.
The token is valid, but it does not reach this resource.
  • Wrong tenant. The token’s tsg_id names a different tenant from the one that owns the resource. A token cannot cross a TSG boundary unless an access policy grants it.
  • Insufficient role. The service account that obtained the token holds a role that does not cover this operation.
  • Wrong workspace. The resource belongs to a workspace, and the workspace_id you passed points somewhere else.
The body did not match what the endpoint expects. Usually one of:
  • a required parameter is missing
  • a value has the wrong type, a number where a string belongs
  • a value sits outside the allowed set for an enum
The endpoint’s reference page lists every field and its type.
The path is right and the resource is not there. Two causes dominate:
  • A slug was passed where an ID was expected, or the reverse. Configs, integrations and providers take slugs; guardrails, MCP servers, policies and API keys take IDs.
  • The resource belongs to a workspace you did not name. Pass workspace_id as a query parameter on GET, and in the body on POST and PUT.
AB07 on a create means the resource already exists. Most creates are not idempotent, so retrying a request that timed out can produce a 409 rather than a duplicate. Check before retrying blindly.

Authentication

Most Admin API errors are authentication errors. Start here.
Last modified on September 18, 2026