Skip to main content

API_KEY_INVALID

The API key is unknown, revoked, or from another environment.

HTTP status401
GroupPlatform
RetryableNo — sending it again changes nothing

What happened​

Keys are environment-bound: a test key never works on mainnet and the reverse.

What to do​

Use a key issued for this host, or create a new one in the dashboard.

The problem document​

Every error is application/problem+json (RFC 9457) with the same shape:

{
"type": "https://docs.co-relayer.com/errors/api-key-invalid",
"title": "The API key is unknown, revoked, or from another environment.",
"status": 401,
"detail": "A sentence about this specific occurrence.",
"instance": "req_01JB…",
"code": "API_KEY_INVALID",
"retryable": false,
"hint": "Use a key issued for this host, or create a new one in the dashboard."
}

See the error model for what each member means and how to handle unknown codes.