API Endpoint
Endpoint:POST /api/v1/global/generate-token
Content-Type: application/json
Authentication: Required (Login token in token header)
Authentication
This endpoint requires a login token to authenticate your requests.Obtaining Your Login Token
You will receive a login token when you:- Log in to your account
- Create a new account
token request header. Request body or query parameters are not supported.
Request Headers
token header must contain your login token.
Request Body
No request body is required. You can send an empty body:cURL Example
Response
Success Response
Status Code:200 OK
Error Responses
Missing Login Token
Status Code:400 Bad Request
Invalid or Expired Login Token
Status Code:401 Unauthorized
Error Codes
| Status Code | Error Code | Description |
|---|---|---|
| 200 | - | Success |
| 400 | LOGIN_TOKEN_REQUIRED | Login token is missing in request header |
| 401 | INVALID_LOGIN_TOKEN | Invalid or expired login token |
| 401 | SESSIONEXPIRED | Login session has expired |
Important Notes
- Each call generates a new API token
- API tokens never expire (no expiry date)
- The token is tied to your user account, company, and workspace
- Store the returned token securely as it cannot be retrieved later (you can generate a new one)
- The token must be provided in the
tokenrequest header, not in the request body or query parameters
Workflow Example
Step 1: Login or Create Account to Get Login Token
token) of that API call. You can extract it from the request header to use with this token generation endpoint.

