# List authorized restaurants

Source: https://docs.fiest.io/api/reference/list-restaurants
Canonical sandbox contract: https://docs.fiest.io/openapi.yaml

## GET /v1/restaurants

Returns one restaurant for a restaurant authorization or the reviewed restaurant snapshot for a Management organization authorization. Organization responses report whether newly added restaurants require reauthorization and organization-boundary tokens also require fiest.organization.read.

## Authentication

Send an OAuth access token in the `Authorization` header as
`Bearer $FIEST_ACCESS_TOKEN`.

Required scopes: `fiest.restaurant.read`, `fiest.accounting.read`

## Quick request

```bash
curl --request GET \
  --url 'https://api-sandbox.fiest.io/v1/restaurants' \
  --header 'Authorization: Bearer $FIEST_ACCESS_TOKEN'
```

## Parameters

This operation has no path or query parameters.

## Success response

### 200 — The restaurants currently covered by the authorization.

```json
{
  "data": [
    {
      "restaurantId": "11111111-1111-4111-8111-111111111111",
      "restaurantName": "Fiest Sandbox Helsinki",
      "role": "owner"
    }
  ],
  "meta": {
    "authorization_boundary": "restaurant"
  }
}
```

## Error responses

### 401 — The access token is missing, invalid, or expired.

```json
{
  "error": "invalid_token",
  "error_description": "The access token is invalid.",
  "request_id": "req_sandbox_invalid_token"
}
```

### 403 — The authorization has expired or does not include the required scope.

```json
{
  "error": "insufficient_scope",
  "error_description": "Restaurant and accounting read access are required.",
  "request_id": "req_sandbox_insufficient_scope"
}
```

### 429 — The partner request limit has been exceeded.

```json
{
  "error": "rate_limited",
  "request_id": "req_sandbox_rate_limited"
}
```

### 503 — The API or one of its required services is unavailable.

```json
{
  "error": "service_unavailable",
  "request_id": "req_sandbox_service_unavailable"
}
```

## Related

- [Quick start](https://docs.fiest.io/api/quickstart)
- [Stable API errors](https://docs.fiest.io/api/reference/errors)
- [Download the OpenAPI 3.1 YAML contract](https://docs.fiest.io/openapi.yaml)
- [Authorize a Partner API connection](https://docs.fiest.io/api/quickstart)