Skip to main content

Get application scopes

The endpoint provides functionality to get which scopes are assigned to an OAuth 2.0 / OIDC application.

HTTP request

GET https://$instanceId.id.nevis.cloud/nevis/api/v1/applications/$applicationId/scopes

Parameters

ParameterInTypeRequired / OptionalDescription
instanceIdpathstringrequiredThe ID of your Identity Cloud instance
applicationIdpathstringrequiredThe ID of the application

Example request

Set the ID of the application

applicationId=your-application-id-123
curl --request GET "https://$instanceId.id.nevis.cloud/nevis/api/v1/applications/$applicationId/scopes" \
--header "Authorization: Bearer $accessKey"

HTTP response

On success

HTTP/1.1 200 is returned if the application with scopes is found.

Response body

ParameterTypeDescription
profilebooleanTrue if the profile scope for openid is assigned to the application.
emailbooleanTrue if the email scope for openid is assigned to the application.
addressbooleanTrue if the address scope for openid is assigned to the application.
phonebooleanTrue if the phone scope for openid is assigned to the application.
openidbooleanTrue if the openid scope is assigned to the application.
offlineAccessbooleanTrue if offlineAccess scope is assigned to the application.
customScopesarray of custom scopesThe collection of custom scopes.

Example response

{
"offlineAccess": true,
"address": true,
"phone": true,
"openid": true,
"profile": true,
"email": true
"customScopes": [
{
"scopeId": "ecb557b9de1631201d66bccb",
"name": "read",
"assigned": true
},
{
"scopeId": "7a89b5db9b10bb3667b22181",
"name": "write",
"assigned": false
}
]
}

On failure

HTTP/1.1 401 is returned if the authorization failed due to an invalid access key.

HTTP/1.1 404 is returned if the OAuth 2.0 / OIDC application with given id is not found.

HTTP/1.1 500 is returned if an unexpected error occurred.