> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Unauthorized

> Authentication is required to access this resource

## Cause

The request has no usable bearer credentials, or the access token is invalid or
expired. Guile did not authorize the call and made no resource change.

## Fix

Send a valid `Authorization: Bearer` access token. If the access token expired,
[exchange the refresh token](/api-reference/token-management/exchange-an-offline-refresh-token).
If refresh fails with [Invalid Refresh Token](/problems/invalidRefreshToken),
sign the user in again.

## Retry safety

Not retryable

## Raised by

Many operations return this problem. Check the error responses on the operation
you called.

Examples:

* [Create an appointment](/api-reference/appointments/create-an-appointment)
* [Get an appointment](/api-reference/appointments/get-an-appointment)
* [Authorize an appointment payment](/api-reference/appointments/authorize-an-appointment-payment)

## Example

```json theme={null}
{
  "type": "https://docs.guile.app/problems/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "The request has no usable bearer credentials, or the access token is invalid or expired. Guile did not authorize the call and made no resource change."
}
```
