Authenticate Using Applications

To make test calls to our endpoints via the API Reference page, you must first create an application to get an access token.

Create an Application

Applications are used to manage client IDs and client secrets, which can be used to return the access tokens used to authenticate your API calls.

To create an application, go to your Applications page and click Create Application. Follow the prompts, and your application will appear on the list.

Get An Access Token

After setting up an application, click on it to access the Quickstart tab. You'll be presented with an auto-generated curl command that can be used to return your access token. It will look something like this:

curl --request POST \
	--url https://auth.trillianthealth.com/oauth/token \
	--header 'content-type: application/json' \
	--data '{"client_id":"<your client_id>","client_secret":"<your client_secret>","audience":"https://api.trillianthealth.com","grant_type":"client_credentials"}'

Make your curl call and copy the access_token, which you will paste into the Bearer field in the next step. It is important to note that access tokens expire after an hour.

{
	"access_token": "<save this token>",
	...
}

What’s Next