All error codes

unauthorized

HTTP 401 Authentication required

What happened

The request carried no usable credentials: the Authorization header was missing, or it did not use the Bearer scheme.

What to do

Send the header as Authorization: Bearer fbx_... with a token issued in the control panel. If the header is present and the token is simply not accepted, you get invalid_token instead.

Retrying

Repeating this request will not help.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/unauthorized",
    "title": "Authentication required",
    "status": 401,
    "code": "unauthorized",
    "request_id": "a277dcd1ca652c65"
}

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