Lists vaults using ID-based pagination. See vaults.
Parameters
after: Optional[str]
Return resources after this resource ID in the selected order.
minLength0
maxLength1048576
limit: Optional[int]
The maximum number of resources to return, between 1 and 100. Defaults to 20.
formatint64
minimum1
maximum100
List vaults
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
)
page = client.beta.agents.vaults.list()
page = page.data[0]
print(page.id){
"data": [
{
"id": "id",
"created_at": 0,
"metadata": {
"foo": "string"
},
"name": "name",
"object": "vault"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "list"
}Returns Examples
{
"data": [
{
"id": "id",
"created_at": 0,
"metadata": {
"foo": "string"
},
"name": "name",
"object": "vault"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "list"
}