This endpoint allows white label admins to authenticate one of their platform users and receive an API token for that user. Use this to build custom authentication flows for your white label platform.
This endpoint requires authentication as a white label admin . Only users belonging to your platform can be logged in.
Request Body
The platform user’s email address
The platform user’s password
Optional name/label for the API token (e.g., “Mobile App”, “Web Dashboard”). Defaults to “api-token”.
Response
The authenticated user’s information The user’s unique identifier
The API token for the platform user
The name/label of the token
200 Response
401 Invalid Credentials
403 Not White Label Admin
422 Validation Error
{
"message" : "Login successful." ,
"user" : {
"id" : 123 ,
"name" : "John Doe" ,
"email" : "[email protected] "
},
"token" : "2|abc123xyz789..." ,
"token_name" : "api-token"
}
Example Request
curl -X POST https://app.autocalls.ai/api/white-label/login \
-H "Authorization: Bearer YOUR_ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected] ",
"password": "userpassword123",
"token_name": "Mobile App"
}'
Using the User Token
The returned token belongs to the platform user and can be used for their authenticated requests:
curl -X GET https://app.autocalls.ai/api/user/me \
-H "Authorization: Bearer 2|abc123xyz789..."