List the workspace's admin API keys
curl --request GET \
--url https://app.hookie.ai/admin/api/api-keys \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/api-keys"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "<string>",
"name": "<string>",
"role": "viewer",
"project_id": "<string>",
"project_name": "<string>",
"key_prefix": "<string>",
"ip_allowlist": "<string>",
"expires_at": "<string>",
"created_by": "<string>",
"created_by_email": "<string>",
"created_at": "<string>",
"last_used_at": "<string>",
"revoked_at": "<string>",
"status": "active"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}Workspace
List the workspace's admin API keys
GET
/
admin
/
api
/
api-keys
List the workspace's admin API keys
curl --request GET \
--url https://app.hookie.ai/admin/api/api-keys \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/api-keys"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "<string>",
"name": "<string>",
"role": "viewer",
"project_id": "<string>",
"project_name": "<string>",
"key_prefix": "<string>",
"ip_allowlist": "<string>",
"expires_at": "<string>",
"created_by": "<string>",
"created_by_email": "<string>",
"created_at": "<string>",
"last_used_at": "<string>",
"revoked_at": "<string>",
"status": "active"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}Authorizations
sessionbearerAuthapiKey
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Response
Every key in the workspace, newest first, revoked and expired ones included. Never the key or its hash.
Show child attributes
Show child attributes