GET
/api/me/organizationsAuthenticatedList my organization memberships
Lists the organizations the caller belongs to with their role in each (platform administrators also see their virtual admin membership of the owner organization). Answers with CORS headers so client applications may call it cross-origin with a bearer access token.
operationId
get_api_me_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 | |
| message* | string | |
| data* | object | |
| memberships* | OrganizationMembershipRoleDetails[] | |
| organization_id* | string | minLength: 4maxLength: 32pattern: ^[a-z][a-z0-9_-]+$ |
| organization_name* | string | minLength: 1maxLength: 64pattern: ^[a-zA-Z0-9]([a-zA-Z0-9 _-]*[a-zA-Z0-9])?$ |
| role* | string | |
| created_at* | integer | minimum: 0 |
| joined_at* | integer | minimum: 0 |
JSONExample
"success"true
"message""string"
"data"
"memberships"
Example request
bashcurl
curl -X GET 'https://auth.schemavaults.com/api/me/organizations' \
-b 'refresh_token_<auth_server_app_id>=<value>'