GET
/api/me/organizations/{organization_id}/roleAuthenticatedGet my role in an organization
Returns the caller's membership role in one organization; 404 when the caller is not a member (platform administrators hold the virtual admin role in the owner organization).
operationId
get_api_me_organizations_organization_id_roleAccountAuthentication & 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
Path parameters
| Name | Type | Description |
|---|---|---|
| organization_id* | string | Organization id (URL-safe slug) |
Responses
application/json
| Property | Type | Description |
|---|---|---|
| success* | true | |
| message* | string | |
| data* | object | |
| organization_id* | string | minLength: 4maxLength: 32pattern: ^[a-z][a-z0-9_-]+$ |
| role* | string | Membership role in the organization: |
JSONExample
"success"true
"message""string"
"data"
"organization_id""string"
"role""member"
Example request
bashcurl
curl -X GET 'https://auth.schemavaults.com/api/me/organizations/<organization_id>/role' \
-b 'refresh_token_<auth_server_app_id>=<value>'