Get Access Token
Generate token to access CRM resources on behalf of an authenticated location/company.
Request
Body
The ID provided by CRM for your integration
The client secret provided by CRM for your integration
The OAuth2 grant type — authorization_code, refresh_token, or client_credentials
authorization_coderefresh_tokenclient_credentialsThe authorization code received from the authorization endpoint (required for authorization_code grant)
The refresh token used to obtain a new access token (required for refresh_token grant)
The type of token to be requested
CompanyLocationLocationThe redirect URI for your application
https://myapp.com/oauth/callback/testResponse
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