---
title: "List vaults"
method: GET
path: "/vaults"
tags: ["Vaults"]
---

# List vaults

`GET /vaults`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/vaults`
- Auth: HTTP bearer

Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults).

## Query parameters

- `limit` integer
- `order` 'asc' | 'desc': The order in which paginated resources are returned.
- `after` string
- `metadata` object
- `status` union: One or more lifecycle statuses to include when listing vaults or credentials.
  - 'active' | 'archived': Whether a vault or credential is active or archived.
  - VaultStatusParam[]

## Response `200`

A page of vaults.

- VaultListResource: A page of Agents API resources, with IDs for retrieving additional pages.
  - `object` 'list', required: The object type, which is always `list`.
  - `data` VaultResource[], required: The resources returned in this page, in the requested sort order.
    - `id` string, required: The ID of the vault.
    - `object` 'vault', required: The object type. Always `vault`.
    - `name` string, nullable, required: The human-readable name of the vault, if set.
    - `metadata` object, required: Key-value pairs associated with the vault, such as an application or team identifier.
    - `created_at` integer, required: The Unix timestamp, in seconds, when the vault was created.
  - `first_id` string, nullable, required: The ID of the first resource in `data`, or `null` if the page is empty.
  - `last_id` string, nullable, required: The ID of the last resource in `data`, or `null` if the page is empty. Pass this as `after` with the same order and filters.
  - `has_more` boolean, required: Whether there are more resources to retrieve after this page.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication or project context was missing.
- `403`: The API key lacks the required management permission.
- `404`: The requested vault or credential was not found.
- `409`: The request conflicted with the current vault state.
- `500`: An internal error occurred.
- `503`: The service is temporarily unavailable.

## Changes

- **2026-10-08** `051b70dab8dd`: 2 breaking, 1 warning
  - for the `query` request parameter `limit`, default value `20` was added
  - for the `query` request parameter `limit`, the min was increased from `0.00` to `1.00`
  - for the `query` request parameter `limit`, the max was set to `100.00`
- **2026-10-06** `df811f5267b3`: 1 info
  - added the new optional `query` request parameter `metadata`
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/vaults/get.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
