---
title: "Retrieve a paginated list of accounts that have access to the restaurant"
method: GET
path: "/api/v1/restaurants/{restaurant_id}/accounts"
tags: ["Account"]
---

# Retrieve a paginated list of accounts that have access to the restaurant

`GET /api/v1/restaurants/{restaurant_id}/accounts`

## Request

- Base URL: `https://gotable.app`
- URL: `https://gotable.app/api/v1/restaurants/{restaurant_id}/accounts`
- Auth: HTTP bearer

## Path parameters

- `restaurant_id` integer, required

## Query parameters

- `page` integer
- `per_page` integer

## Response `200`

With a valid API token

- object
  - `accounts` Account[]
    - `id` integer: The unique ID of the account
    - `name` string: The name of the account
    - `email` string: The e-mail address of the account
  - `meta` Pagination
    - `current_page` integer
    - `per_page` integer
    - `total_pages` integer
    - `total_count` integer
    - `links` Link[]: An array of pagination links
      - `href` string: The URL to the related resource.
      - `method` 'GET' | 'POST' | 'PUT' | 'DELETE': The HTTP method that should be used to follow the link.
      - `rel` string: The relationship of this link to the current resource.

## Other responses

- `401`: With an invalid API token
- `403`: With an unauthorized API token
- `404`: With a non-existant Restaurant ID

---

[API](https://skmtc.dev/gotable/apis/gotable-api-v1.md) · [All operations](https://skmtc.dev/gotable/apis/gotable-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/gotable/apis/gotable-api-v1/revisions/abe658488f5b?raw)
