Create token

This endpoint is used to create a temporary, Agency-specific, access token to be used in the Authentication header of subsequent requests to the rest of the API. The bearer token used for this endpoint is an integration secret key, if you do not have this key, please contact your Root representative. All the parameters to this endpoint are optional, choose the combination that works best for your integration. Using agent info while creating a token will default subsequent quotes as attributed to that agent. If the parameters provided are not specific enough, you will receive the possible token references in the response and you should make a subsequent request with one of those tokenReferences to disambiguate what access is being granted. If the parameters do not find any valid reference to create a token for, then an error response will be given. The successful response will contain your temporary token and describe when it will expire in epoch time. Note: Once the token expires, you will need to generate a new token the same way. It is possible the token can be invalidated early if misuse is suspected.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Information used to create a JWT.

string | null

The email of the agent you would like to attribute to quotes made with this token.

string | null

The ID of the agent you would like to attribute to quotes made with this token.

string | null

The partner agency ID you want to authorize with this token.

string | null

The specific reference to a credential associated with a partner agency.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json