You must be an authenticated user to use ProviderTrust's Public API. We will utilize the OAuth pattern for authentication and authorization.
To authenticate:
- Create an API Key inside the app under Profile->Account->API Keys.
- This API Key is a credential for logging in as the user who created it. For that reason, it is recommended that a Client Admin create a specific “machine user” account and create the API Key as that machine user.
{
"apikey": "{{your api key here}}"
}
- After authentication, you will receive a JWT token.
{
"token": "{{insert token}}",
"message": "Authentication Successful"
}
- You must use the associated JWT token in the authorization header on all subsequent API requests ("Authorization": "Bearer {{token}}").
- The JWT token is valid for 12 hours.
HTTPS OnlyOur APIs will reject calls made over HTTP to protect request and response information.