Authentication

All API requests are using the Bearer Token Authorization. A Bearer Token will last up to an hour from the time it is generated, allowing multiple API calls to be made securely without authorizing each time.

Authenticate

Use this endpoint if you want to authenticate and generate the token.

To be able to get your token access, open the Settings page in the Portal, then navigate to the section Webhook & API settings. You will need the username and password.

Method: POST

Endpoint: {{env}}/api/authorize

{
  "Username": "abc...123",
  "Password": "xyz...321"
}

Input parameters

Parameter
Type
Description

Username

string

Your API username

Password

string

Your API password

Responses

Parameter
Description

Role

The role this login belongs to

Token

The authorization token that needs to be used in any other API request

CustomerId

The customer id this login belongs to

CompanyName

The company name this login belongs to

CustomerType

Type for the customer account

Username

Username for the login

INFO

You have to inform the Token field received in this endpoint in any other request you want to execute. Once the token expires, you have to authenticate again to be able to retrieve a new token.

Cancel token

Use this endpoint to invalidate an active authorization token. Once canceled, the token can no longer be used for authentication or API access.

Method: PATCH

Endpoint: {{env}}/api/authorize/canceltoken

{
    "statusCode": 200,
    "message": "Token cancelled",
    "isError": false
}

Last updated

Was this helpful?