Skip to Content
AffFast

authentication_required

The request has no valid credentials.

HTTP status: 401. Error type: authentication_error.

The request has no valid credentials.

Example

{
  "error": {
    "type": "authentication_error",
    "code": "authentication_required",
    "message": "The request has no valid credentials.",
    "doc_url": "https://docs.afffast.com/errors/authentication-required",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}

Causes

  • The request has no Authorization header.
  • The header is not in the form Bearer <key>.
  • The header has a token that is not an API key (sk_...).

How to fix

  • Send the header Authorization: Bearer sk_test_... with each request.

On this page