List the signed-in user's OAuth-connected coding agents
curl --request GET \
--url https://app.hookie.ai/admin/api/agents \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/agents"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"agents": [
{
"id": "<string>",
"client_id": "<string>",
"name": "<string>",
"scopes": [
"hookie:read"
],
"connected_at": "<string>",
"last_used_at": "<string>",
"revoked_at": "<string>"
}
],
"available_scopes": [
"hookie:read",
"hookie:write",
"hookie:manage"
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Connected agents
List the signed-in user's OAuth-connected coding agents
GET
/
admin
/
api
/
agents
List the signed-in user's OAuth-connected coding agents
curl --request GET \
--url https://app.hookie.ai/admin/api/agents \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/agents"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"agents": [
{
"id": "<string>",
"client_id": "<string>",
"name": "<string>",
"scopes": [
"hookie:read"
],
"connected_at": "<string>",
"last_used_at": "<string>",
"revoked_at": "<string>"
}
],
"available_scopes": [
"hookie:read",
"hookie:write",
"hookie:manage"
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Response
Grants for the CURRENT USER, across every workspace they belong to — this resource is scoped by user_id, never by tenant_id. Revoked grants are included (revoked_at set).