Skip to content

Retrieve a custom token scope

Request

OAuth 2.0 scope:
  • okta.authorizationServers.read

Retrieves a custom token scope

Path
authServerIdstringrequired

id of the Authorization Server

Example:GeGRTEr7f3yu2n7grw22
scopeIdstringrequired

id of Scope

Example:0TMRpCWXRKFjP7HiPFNM
curl -i -X GET \
  https://subdomain.okta.com/api/v1/authorizationServers/GeGRTEr7f3yu2n7grw22/scopes/0TMRpCWXRKFjP7HiPFNM

Responses

Success

Bodyapplication/json
consentstring(OAuth2ScopeConsentType)

Indicates whether a consent dialog is needed for the Scope

Default:"IMPLICIT"
Enum:"FLEXIBLE""IMPLICIT""REQUIRED"
defaultboolean

Indicates if this Scope is a default scope

Default:false
descriptionstring

Description of the Scope

displayNamestring

Name of the end user displayed in a consent dialog

idstringread-only

Scope object ID

metadataPublishstring(OAuth2ScopeMetadataPublish)

Indicates whether the Scope is included in the metadata

Default:"NO_CLIENTS"
Enum:"ALL_CLIENTS""NO_CLIENTS"
namestringrequired

Scope name

optionalboolean

Indicates whether the Scope is optional. When set to true, the user can skip consent for the scope.

Default:false
systemboolean

Indicates if Okta created the Scope

Default:false
Response
{ "id": "scp5yu8kLOnDzo7lh0g4", "name": "car:drive", "description": "Drive car", "system": false, "default": false, "displayName": "Saml Jackson", "consent": "REQUIRED", "optional": false, "metadataPublish": "NO_CLIENTS", "_links": { "self": { … } } }