curl --request GET \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/api-keys \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"scopes": [
"<string>"
],
"ownerType": "<string>",
"ownerId": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"disabled": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"total": 123
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}List Org API Keys
List API keys for an organization. Does not expose raw keys or hashes.
curl --request GET \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/api-keys \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"scopes": [
"<string>"
],
"ownerType": "<string>",
"ownerId": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"disabled": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"total": 123
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Sort field and direction, e.g. -createdAt
Filter API keys by owner type (uses indexed lookup with ownerId).
Filter API keys by owner ID (uses indexed lookup with ownerType).
Response
Success
Hide child attributes
Hide child attributes
Internal role ID
Unique slug identifying the API key within the org
Array of permission strings. Convention: {product}:{resource}:{action} Wildcards: Use * at end only (e.g., orgs:* matches orgs:members:manage) Platform permissions: - orgs:* (full org access) - orgs:members:manage, orgs:roles:manage, orgs:manage - orgs:branding:manage, orgs:navigation:manage - orgs:subscriptions:view, orgs:subscriptions:manage - orgs:apikeys:manage, orgs:invites:manage, orgs:join-rules:manage - secure-chat:, store:, knowledge:, builder: - agent-builder:, analytics:view, platform-admin: Custom app permissions: {app-slug}:{resource}:{action} Example: my-crm:contacts:read, my-crm:deals:manage Super admin: ["*"] (matches everything)
Optional string array of resource patterns restricting where permissions apply. Format: resourceType:resourceId. Examples: agents:agent-abc-123, models:gpt-4o, orgs:acme, agents:, models:, *
Optional owner type identifier for this API key (e.g. agent, user, app). Indexed alongside ownerId for fast lookups.
Optional owner ID for this API key. Indexed alongside ownerType for fast lookups.
Was this page helpful?