Skip to content
Torii docs

List organizations the current user belongs to

GET
/_torii/organizations
curl --request GET \
--url https://your-app.torii.so/_torii/organizations

OK

Media type application/json
Array<object>
object
id
required
string format: uuid
name
required
string
role
required

Caller’s role key in this org (e.g. admin | member).

string
roleName

Human-readable display name of the caller’s role, from the org’s bound role set.

string | null
Example generated
[
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"role": "example",
"roleName": "example"
}
]