List API keys
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/api-keys \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"items": [
{
"id": "<string>",
"object": "collection.api_key",
"collection_id": "<string>",
"slug": "<string>",
"name": "<string>",
"scope": "ai-collection-v3:collections:3f2a9c1e-...",
"permissions": [
"<string>"
],
"expires_at": 123
}
],
"total": 123
}{
"error": "InvalidArguments",
"message": "<string>"
}API Keys
List API keys
Lists the API keys scoped to this collection. Raw keys are never returned.
GET
/
v1
/
collections
/
{collection_id}
/
api-keys
List API keys
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/api-keys \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-collection-v3/webhooks/v1/collections/{collection_id}/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"items": [
{
"id": "<string>",
"object": "collection.api_key",
"collection_id": "<string>",
"slug": "<string>",
"name": "<string>",
"scope": "ai-collection-v3:collections:3f2a9c1e-...",
"permissions": [
"<string>"
],
"expires_at": 123
}
],
"total": 123
}{
"error": "InvalidArguments",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuth
User session JWT. Send as Authorization: Bearer <token>.
Path Parameters
Collection identifier returned at creation.
Response
API keys.
Example:
"list"
Was this page helpful?
⌘I