curl --request GET \
--url https://api.portkey.ai/v1/collections \
--header 'x-portkey-api-key: <api-key>'{
"total": 123,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"parent_collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_default": true,
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"collection_details": {
"child_collections_count": 123,
"prompts_count": 123,
"child_collections_last_updated_at": "2023-11-07T05:31:56Z",
"prompts_last_updated_at": "2023-11-07T05:31:56Z"
}
}
]
}Lists all collections in the specified workspace
curl --request GET \
--url https://api.portkey.ai/v1/collections \
--header 'x-portkey-api-key: <api-key>'{
"total": 123,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"parent_collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_default": true,
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"collection_details": {
"child_collections_count": 123,
"prompts_count": 123,
"child_collections_last_updated_at": "2023-11-07T05:31:56Z",
"prompts_last_updated_at": "2023-11-07T05:31:56Z"
}
}
]
}ID or slug of the workspace
Page number for pagination (0-indexed)
x >= 0Number of items per page
x >= 1Search query to filter collections by name
List of collections
Total number of collections matching the criteria
Show child attributes
active, archived Was this page helpful?