AUTH_INVALID_KEY

The API key is missing, unknown or revoked.

HTTP status: 401. Retrying the same request returns the same error.

What to do

Copy the key again from the dashboard (API keys) and send it as x-api-key: <key>, not as a bearer token.

Hint returned with the error: Send a valid key in the x-api-key header. You can manage your keys in the Pyas dashboard.

Why it happens

  • A missing x-api-key header
  • A typo in the key
  • The key was revoked or deleted

Endpoints that return it