Lists all vaults in the current account. Supports pagination and filtering by status.
Request headers
|
Header |
Required |
Description |
|
|
Yes |
Bearer token used to authenticate the request. Format: |
Query parameters
|
Parameter |
Type |
Required |
Description |
|
|
integer |
No |
Maximum number of vaults to return per page. |
|
|
string |
No |
Pagination cursor. Returns records that come after this vault ID. |
|
|
string |
No |
Filters results by vault status. One of |
For the full pagination specification, see Pagination.
Example request
# List all vaults
curl -X GET "https://api.qoder.com.cn/api/v1/cloud/vaults" \
-H "Authorization: Bearer $QODER_PAT"
# Paginated request
curl -X GET "https://api.qoder.com.cn/api/v1/cloud/vaults?limit=2" \
-H "Authorization: Bearer $QODER_PAT"
# Filter by status
curl -X GET "https://api.qoder.com.cn/api/v1/cloud/vaults?status=archived" \
-H "Authorization: Bearer $QODER_PAT"
Example response
HTTP 200 OK
{
"data": [
{
"id": "vault_019e3bb940277f0db05ab74291acf6ef",
"type": "vault",
"display_name": "my-mcp-vault",
"status": "active",
"metadata": {},
"created_at": "2026-05-18T15:34:16.874877Z",
"updated_at": "2026-05-18T15:34:16.874877Z"
}
],
"first_id": "vault_019e3bb940277f0db05ab74291acf6ef",
"last_id": "vault_019e3bb940277f0db05ab74291acf6ef",
"has_more": false
}
Empty result:
{
"data": [],
"first_id": null,
"last_id": null,
"has_more": false
}
Response fields
|
Field |
Type |
Description |
|
|
array |
Array of vault objects on the current page. |
|
|
string | null |
ID of the first vault on the page, or |
|
|
string | null |
ID of the last vault on the page. Pass this value as |
|
|
boolean |
|
Errors
|
HTTP |
Type |
Trigger |
|
401 |
|
The authentication token is missing or invalid. |
For the full error envelope, see Errors.