Current user, workspace and role
curl --request GET \
--url https://app.hookie.ai/admin/api/me \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/me"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>"
},
"tenantId": "<string>",
"role": "owner",
"plan": "free",
"workspaceSlug": "<string>",
"platform_admin": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Account
Current user, workspace and role
Read-only identity echo. No project scope. Any role can call it.
GET
/
admin
/
api
/
me
Current user, workspace and role
curl --request GET \
--url https://app.hookie.ai/admin/api/me \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/me"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>"
},
"tenantId": "<string>",
"role": "owner",
"plan": "free",
"workspaceSlug": "<string>",
"platform_admin": true
}{
"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
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Response
The signed-in user, the resolved workspace (tenant) and the caller effective role. workspaceSlug is the first path segment of a public webhook URL.
Show child attributes
Show child attributes
For an OAuth-connected agent this is the membership role already clipped to the granted scopes.
Available options:
owner, admin, developer, viewer, member Available options:
free, standard, team