Skip to content

Authorization

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

The main way to authenticate is using a Bearer access token. To obtain an access token a userToken is required, which can be created in the Users page on the Licensing portal. Access tokens expire after 24 hours. You can read more about User Tokens and best practices in the Security section.

Get an access token

Endpoint: POST https://api.software-licensing.io/v1/authorization

RequestBody

ts
{
  userToken: string
}

Responses

  • 201 Returns created authorization entry.

application/json

ts
{
  expirationDate: string
  accessToken: string
  refreshToken: string
}

Refresh an access token

Endpoint: POST https://api.software-licensing.io/v1/authorization/refresh

RequestBody

ts
{
  refreshToken: string
}

Responses

  • 201 Returns created authorization entry.

application/json

ts
{
  expirationDate: string
  accessToken: string
  refreshToken: string
}