Skip to main content

Login to API

This document explains how to authenticate with the API using an API token.

Login with API Token

To authenticate, you need to send your user token via a POST request. The API will return a bearer token upon successful login, which can be used for subsequent authenticated requests.

Endpoint

POST /login

{
"usertoken": "your_api_token_here"
}

Response

If the login is successful, the API will return a bearer token, which is required for accessing secured API endpoints.

Example Response:

POST /login

{
"token": "bearer your_bearer_token_here"
}

Notes

  • Ensure that the API token (usertoken) is valid and has the necessary permissions.
  • The bearer token included in the response is used for authenticating all subsequent requests by including it in the Authorization header