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:
- Sign in to TrueLoyal.
- Click on your name or email in the top right corner.
- Select Team Settings.
- Choose API.
- Click on the Add button.
- Create your OAuth 2.0 application.
Once done, you'll receive 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.