Get token by customer ID
Users
Get Token by Customer ID
Generate an API token for an onboarded customer using their customer_salt (Customer ID).
POST
Get token by customer ID
Use this endpoint to generate an API token for an onboarded customer using their
customer_salt (Customer ID).
Endpoint
POST/users/gettokenbycustomerid
Content-Type: application/json
Authentication: Required (API token)
Request Body
Parameters
Notes
- The
customer_idmust belong to an active, non-blocked user. - The user must have at least one active workspace.
- If
expiration_daysis provided, it must be a positive integer. - Each call generates a new token — previous tokens are not revoked.
Success Response
Response Fields
Error Responses
Example cURL
Headers
API token for authentication
Body
application/json
The 12-digit customer identifier returned from the /users/onboard endpoint. Also accepts 'customerid' or 'customer_salt'.
A friendly name for the token
Number of days until the token expires. If omitted, the token does not expire.
Required range:
x >= 1
