GET
/api/user/organizationsAuthenticatedList my organizations
Lists the definitions of the organizations the caller is a member of (platform administrators also get the owner organization). Organizations that fail to load are skipped and recorded server-side. GET /api/me/organizations additionally reports the caller's role in each.
operationId
get_api_user_organizationsAccountAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
Responses
application/json
| Property | Type | Description |
|---|---|---|
| success* | true | |
| organizations* | object[] | |
| organization_id* | string | minLength: 4maxLength: 32pattern: ^[a-z][a-z0-9_-]+$ |
| name* | string | minLength: 1maxLength: 64pattern: ^[a-zA-Z0-9]([a-zA-Z0-9 _-]*[a-zA-Z0-9])?$ |
| created_at* | number | exclusiveMinimum: 0 |
| created_by | string (uuid) | null (uuid) | null |
JSONExample
"success"true
"organizations"
"organization_id""string"
"name""string"
"created_at"1.5
"created_by""123e4567-e89b-12d3-a456-426614174000"
Example request
bashcurl
curl -X GET 'https://auth.schemavaults.com/api/user/organizations' \
-b 'refresh_token_<auth_server_app_id>=<value>'