---
title: "List stores"
method: GET
path: "/stores"
tags: ["Stores"]
---

# List stores

`GET /stores`

## Request

- Base URL: `https://api.metorial.com`
- URL: `https://api.metorial.com/stores`
- Auth: HTTP bearer

Returns a paginated list of stores owned by the instance.

## Query parameters

- `limit` number
- `after` string
- `before` string
- `cursor` string
- `order` 'asc' | 'desc'
- `id` union
  - string
  - string[]
- `created_at` object
  - `gt` string, date-time: Only include records after this timestamp for Filter by creation time
  - `lt` string, date-time: Only include records before this timestamp for Filter by creation time
- `updated_at` object
  - `gt` string, date-time: Only include records after this timestamp for Filter by update time
  - `lt` string, date-time: Only include records before this timestamp for Filter by update time

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- StoreList
  - `items` Store[], required
    - `object` 'store', required: String representing the object's type
    - `id` string, required
    - `name` string, required
    - `access` 'private' | 'public_read' | 'public_write', required
    - `item_count` number, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `pagination` object, required
    - `has_more_before` boolean, required
    - `has_more_after` boolean, required

## Other responses

- `400`: Invalid parameters or action
- `401`: Missing or invalid API key
- `403`: The key lacks permission for this resource
- `404`: No such resource
- `422`: Validation failed
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/metorial/apis/metorial-api.md) - [All operations](https://skmtc.dev/metorial/apis/metorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metorial/apis/metorial-api/revisions/10ccc89f3eac?raw)
