Generating OAuth access tokens
This section explains how to generate an OAuth access token by using the client credentials grant type to authenticate with the Beeline Professional API.
OAuth is used to securely authenticate integration clients. To generate a token, submit the client ID and client secret for a registered integration client.
| Access tokens are time-limited. If you update any security policies, generate a new token before retesting API access. For more information, see Importing security and permissions. |
For more information about authentication and filtering, see Beeline Professional Edition Connect V1.0 documenation.
Before you begin
-
Ensure the integration client has the required security policies and permissions. Otherwise, API access is denied.
Steps
Use the following request to generate an OAuth access token:
-
Set the HTTP method to
POST. -
Send the request to the following endpoint:
For example:
-
Include the required headers and body parameters:
Request headers
Content-Type: application/x-www-form-urlencodedRequest body
-
grant_type=client_credentials -
client_id=YOUR_CLIENT_ID -
client_secret=YOUR_CLIENT_SECRETReplace YOUR_CLIENT_IDandYOUR_CLIENT_SECRETwith the credentials for your integration client.
-
-
Include the returned access token in all subsequent API requests for authorization.