Authentication required

The request did not say who is making it, or we did not accept the credentials it sent.

Status
401
Type
https://docs.digitospace.com/problems/unauthenticated

What it means

Every request must carry a token in the Authorization header, and this one had none, or had one we do not accept.

How to fix it

  • Send the header as Authorization: Bearer <token>, with a single space after Bearer.
  • Check the token is complete, with nothing added or cut off when it was copied.
  • If the token has been revoked or replaced, use the current one.
  • For key_not_found, check the web key in your page. A revoked web key stays refused; make a new one in the console.
  • For session_expired, start a new visit. The web SDK does this for you.

Codes

CodeRetryableWhen
unauthenticatedNoThe bearer token is missing or not one we accept
key_not_foundNoAI: the web key does not exist or was revoked
session_expiredYesAI: the web page’s visit has expired; start a new one
ticket_invalidNoMessaging: the ticket is not one we signed
ticket_expiredYesMessaging: the ticket has expired; get a new one from the app

Last updated