Get Access Token
Use Access Tokens to access CRM resources on behalf of an authenticated location/company.
Request
Headers
API Version
v3v3Body
The ID provided by CRM for your integration
6578278e879ad2646715ba9cThe client secret provided by CRM for your integration
ab12dc0ae1234a7898f9ff06d4f69ghThe OAuth2 grant type — authorization_code, refresh_token, or client_credentials
authorization_coderefresh_tokenclient_credentialsauthorization_codeThe authorization code received from the authorization endpoint (required for authorization_code grant)
ab12dc0ae1234a7898f9ff06d4f69ghThe refresh token used to obtain a new access token (required for refresh_token grant)
xy34dc0ae1234a4858f9ff06d4f66baThe type of token to be requested
CompanyLocationLocationThe redirect URI for your application
https://myapp.com/oauth/callback/crmResponse
Successful response
The OAuth2 access token
ab12dc0ae1234a7898f9ff06d4f69ghThe token type (always Bearer)
BearerTime in seconds until the access token expires
86399The OAuth2 refresh token used to obtain a new access token
xy34dc0ae1234a4858f9ff06d4f66baSpace-separated list of scopes the access token has access to
conversations/message.readonly conversations/message.writeThe user type associated with the token (Location or Company)
LocationLocation ID - Present only for Sub-Account Access Token
l1C08ntBrFjLS0elLIYUCompany ID
l1C08ntBrFjLS0elLIYUApproved locations to generate location access token
["l1C08ntBrFjLS0elLIYU"]USER ID - Represent user id of person who performed installation
l1C08ntBrFjLS0elLIYUPlan Id of the subscribed plan in paid apps.
l1C08ntBrFjLS0elLIYUIndicates whether the installation was performed as a bulk installation
falseBoolean to control if user wants app to be automatically installed to future locations (only for company tokens)
trueBoolean indicating if user approved all locations during bulk installation (only for company tokens)
true