Appearance
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.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
}