Login
TradingPartners AI uses a bearer token to authenticate requests.
A token has a validity period. Once it has expired, you will be asked to recreate one using this login API.
The Server-Sent Event endpoint won't ask you to renew your token once connected to it.
To get a token, you must first create an account. You can do so using the Registration page.
You can then send a POST
request to TradingPartners AI.
POST https://api.tradingpartners.ai/api/v1/users/login
Credentials object
Attributes
email - string min:1 max:255
Email address of the company contact
password - string min:1 max:30
Password of the company
Login response object
Attributes
accessToken - string max:4096
access-token to join for authenticated request
tokenType - string
access-token type
expiresIn - number fmt:float64
access-token duration in seconds
lastLogin - nullable string fmt:date-time
last login datetime