Skip to main content
auth_not_configured means the service cannot check the kind of credential you sent. Read this page when every call answers with this code, and to rule out a wrong value in your Authorization header.

What happened

Routes: every protected /v1/* route. OpenType reads the credential in Authorization: Bearer <credential> by its prefix: This code means no verifier is configured for the credential you sent. That happens when:
  • the value does not start with otsk_, so it is treated as a console session token, and the service is not set up to check session tokens;
  • the service has neither of its verifiers configured, in which case every credential gets this code.
The request was refused before any work was done. Nothing was stored or charged.

How to fix

  1. Check the header. It must be Authorization: Bearer otsk_..., with the whole secret: otsk_ followed by 64 lowercase hex characters. A key id (key_...), a truncated secret or a stray quote is not a key.
  2. Check the environment variable. echo ${OPENTYPE_API_KEY:0:5} should print otsk_.
  3. If the credential is a valid otsk_ key, the problem is on the service side. Retry later and report the request_id if it persists.

Example

Checking the credential shape before the first call:
  • Authentication - how to send a credential and how it is checked.
  • API keys - create a key and copy its secret.
  • invalid_credential - the 401 for a key that is malformed, unknown or revoked.
  • Error handling - a status-to-action table and a retry helper for every error.
  • Problem codes - every code, its status, and whether a retry can help.