Error
AUTHENTICATION_REQUIRED
Authentication required
- HTTP status
- 401
- Retryable
- No — change the request
- Returned by
- 3 operations
What to do
Present a bearer token for the required scope.
What it looks like
{
"code": "AUTHENTICATION_REQUIRED",
"detail": "A sentence describing this particular failure.",
"field_errors": [],
"instance": "/api/public/v1/...",
"next_action": "Present a bearer token for the required scope.",
"request_id": "req_9f2c1b7ae4d84c6f9b2e10a3",
"retryable": false,
"status": 401,
"title": "Authentication required",
"type": "https://swisstouristy.com/developers/errors/authentication_required"
}code is the stable contract. detail is prose for a human reading a log and may be reworded at any time — do not parse it, and do not branch on status alone, since several codes share one.