Authorization management

Access token

Get an access token to start using the Shield API

Authorize channel to use API

GET https://app.insurehero.io/api/shield/v1/auth/authorize

You will need an authorization token to send requests to the integrations API.

Each token has a lifespan of 1 hour.

Headers

{
    data: string; // accessToken
}

Refresh access token

Each accessToken comes with a 1 hour lifespan. This means, you will need to check before each API call wether your accessToken is still valid.

  • If the token is still valid: We recommend at least 5 minutes remaining. If it is valid, continue making request.

  • If the token is expired or close to: We recommend if it has less than 5 minutes remaining or is already expired, then call the authorize endpoint to request a fresh accessToken.

Last updated