oauth2-token-spec

POST https://www.arcgis.com/sharing/rest/oauth2/token

Using the oauth2/token REST API endpoint, you can get a short-lived access token that gives your application permission to access ready-to-use services, such as basemap layers, search, and routing, in ArcGIS. Application credentials use OAuth 2.0 client_id and client_secret parameters and the client_credentials grant type to secure client login.

πŸ“„ API reference: oauth2/token operation.
πŸ“™ Related guides: application credentials.

Request Body

[{"name"=>"client_id", "value"=>"{{client_id}}", "datatype"=>"string"}, {"name"=>"client_secret", "value"=>"{{client_secret}}", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"<enum>", "datatype"=>"string"}, {"name"=>"expiration", "value"=>"1800", "datatype"=>"number"}, {"name"=>"redirect_uri", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"code", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"refresh_token", "value"=>"<string>", "datatype"=>"string"}]