v31

OpenAPI 3.0.1raw.githubusercontent.com2020-12-1300352.6 KB
Auth

Request a client-side token

If you need to perform client-side requests, you will have to request a client-side token from you backend, and get a JWT token from this API call in return. This token will be usable on the client side. This call need your secret access token, the url of the website the client side requests will come from and optionally the client IP address.

post/api/auth/claim

Request body

originstring required

The website url the API requests will come from

ipstring nullable

The client IP

Example request

{
  "origin": "https://example.com",
  "ip": "12.23.34.45"
}

Response

Success

expirationstring

The expiration time of the token. After this time, you'll have to request a token again

tokenstring

The client-side access token, that you'll use instead of your access token in the token parameter

Example response

{
  "expiration": "07-13-2020 13:41",
  "token": "eyJhbGciOiJIUzI1NaJ9.eyJ1c2VyX2lkIjoxMDYsIe9yaWdpbiI6Imh0dHA6Ly9wb2NhbGhvc3Q6MzIzMyIsImlwIjoiOjoxIiwiZXhwIjoxNTk0NjQwNTEzfQ.TyqKyKxwsnn7TZsLAfS8OTmTUPk87CSXlk6a2wQU9co"
}