Home
Advocacy API

Authentication

Create an OAuth application and get an access token.

The vast majority of the Advocacy API endpoints require an OAuth 2.0 bearer token. In order to get one, you will first need to create an OAuth application:

  1. Sign in to TrueLoyal.
  2. Click on Global Settings in the left side navigation panel.
  3. Click on API and scroll down to OAuth Applications.
  4. Click on the + Add button next to the OAuth Applications header.
  5. In the pop-up, enter a display name and a redirect URI, then click Create.
  6. Your OAuth application will appear in the list. Click its dropdown arrow and enter your password to reveal the client secret.

Once done, you'll have the client ID and secret you need to initiate the authorization flow.

We currently only support the authorization code flow, so you will need to authenticate as a user. Our access tokens are short-lived, but you will be provided a refresh token you can use to get a new access token when your token has expired.