Create user token
White Label
Create user token
Generate an API token for a platform user without requiring their password
POST
Create user token
This endpoint allows white label admins to generate an API token for any of their platform users without needing the user’s password. Use this to programmatically access user data for building dashboards, email sequences, or automated workflows.
Or by email:
This endpoint requires authentication as a white label admin. Only users belonging to your platform can have tokens generated.
Request Body
The platform user’s ID. Required if
email is not provided.The platform user’s email address. Required if
user_id is not provided.Optional name/label for the API token (e.g., “kpi-dashboard”, “email-automation”). Defaults to “api-token”.
Response
Success message
The user’s information
The API token for the platform user
The name/label of the token
Example Request
Using the User Token
The returned token belongs to the platform user and can be used for their authenticated requests:Building a KPI Dashboard
To build a dashboard with all your users’ data:- List your users —
GET /api/white-label/userswith your admin key - Generate a token for each user —
POST /api/white-label/tokenwith theiruser_id - Fetch each user’s data using their token:
GET /api/user/calls— call history with duration, status, costGET /api/user/campaigns— campaign statusesGET /api/user/leads— leads with statusesGET /api/user/me— profile and balance info

