All error codes

invalid_token

HTTP 401 Token is invalid or revoked

What happened

An Authorization header was present, but the token in it is not one we accept: unknown, revoked, or past its expiry date. This is not a scope or a permission problem.

What to do

Issue a new token in the control panel and update the caller's configuration. Retrying with the same token will keep failing.

Retrying

Repeating this request will not help.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_token",
    "title": "Token is invalid or revoked",
    "status": 401,
    "code": "invalid_token",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.