Skip to content

Authorization

To use most of Licensing API endpoints your requests will require authentication.

The main way to authenticate is using a Bearer access token. To obtain this token your userToken is required, which can be obtained in the Account page on the Licensing portal. Access tokens expire after 24 hours.

Get an access token

Endpoint: POST https://api.verustrust-forms.com/v1/authorization

RequestBody

  • application/json
typescript
{
  userToken: string
}

Responses

  • 201 Returns created authorization entry.

application/json

typescript
{
  expirationDate: string
  accessToken: string
  refreshToken: string
}

Refresh an access token

Endpoint: POST https://api.verustrust-forms.com/v1/authorization/refresh

RequestBody

  • application/json
typescript
{
  refreshToken: string
}

Responses

  • 201 Returns created authorization entry.

application/json

typescript
{
  expirationDate: string
  accessToken: string
  refreshToken: string
}