# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand. overlay: 1.0.0 info: title: API Evangelist conversational phrasing for Esri ArcGIS Location Services Auth API version: 1.0.0 extends: openapi/esri-auth-api-openapi.yml actions: - target: $.info update: x-apievangelist-phrasing: method: generated generated: '2026-09-26' generator: build-phrasing.py label: Generated by API Evangelist operations: 1 - target: $.paths['/sharing/rest/oauth2/token'].post update: x-apievangelist-phrasing: intent: Get an ArcGIS access token via OAuth effect: write questions: - How do I get an ArcGIS access token for my app using its client ID and secret? - Can I exchange an authorization code or refresh token for a new access token? - Is it possible to set how long an OAuth access token stays valid? instructions: - text: Get an access token for client {client_id} with secret {client_secret} using grant type {grant_type}. slots: client_id: requestBody.client_id client_secret: requestBody.client_secret grant_type: requestBody.grant_type - text: Exchange authorization code {code} for client {client_id} with redirect URI {redirect_uri}, grant type {grant_type}. slots: code: requestBody.code client_id: requestBody.client_id redirect_uri: requestBody.redirect_uri grant_type: requestBody.grant_type - text: Refresh the token {refresh_token} for client {client_id} with grant type {grant_type} and expiration {expiration}. slots: refresh_token: requestBody.refresh_token client_id: requestBody.client_id grant_type: requestBody.grant_type expiration: requestBody.expiration method: generated generated: '2026-09-26'