GET
/api/apis/{api_server_id}/connect_app/{client_app_id}/scopesAuthenticatedGet a connected app's API scope allowances
Which of the API server's scopes the connected client application may be granted: on behalf of users (all of them unless restricted) and for its own service account on the client_credentials grant (none unless listed).
operationId
get_api_apis_api_server_id_connect_app_client_app_id_scopesAPI serversAuthentication & 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
- Notes
- Organization owners/admins (or the owning user) of the API server or of the app, or platform administrators.
Path parameters
| Name | Type | Description |
|---|---|---|
| api_server_id* | string | API server id |
| client_app_id* | string | Client application id |
Responses
application/json
AppApiScopePolicyResponse
| Property | Type | Description |
|---|---|---|
| success* | true | |
| policy* | AppApiScopePolicy | Which of the API server's scopes the connected app may be granted. |
| restrict_user_scopes* | boolean | |
| user_scopes* | string[] | |
| service_account_scopes* | string[] |
JSONExample
"success"true
"policy"
"restrict_user_scopes"true
"user_scopes"
"string"
"service_account_scopes"
"string"
Example request
bashcurl
curl -X GET 'https://auth.schemavaults.com/api/apis/<api_server_id>/connect_app/<client_app_id>/scopes' \
-b 'refresh_token_<auth_server_app_id>=<value>'