curl --request GET \
--url https://api.ctrl-hub.com/v3/users/{user_id}/grants \
--header 'X-Session-Token: <api-key>'{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"grants": [
"<string>"
]
}Returns the organisations and expanded grant strings that would be produced for the given user by the hydration pipeline. Intended for local/debugging use — lets you inspect what grants a user resolves to without signing in as them.
curl --request GET \
--url https://api.ctrl-hub.com/v3/users/{user_id}/grants \
--header 'X-Session-Token: <api-key>'{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"grants": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.ctrl-hub.com/llms.txt
Use this file to discover all available pages before exploring further.
Session token for authentication.
The unique identifier for the user.