Skip to main content
POST
https://app.autocalls.ai/api/
/
white-label
/
login
Login platform user
curl --request POST \
  --url https://app.autocalls.ai/api/white-label/login \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "token_name": "<string>"
}
'
{
  "message": "Login successful.",
  "user": {
    "id": 123,
    "name": "John Doe",
    "email": "[email protected]"
  },
  "token": "2|abc123xyz789...",
  "token_name": "api-token"
}
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

email
string
required
The platform user’s email address
password
string
required
The platform user’s password
token_name
string
Optional name/label for the API token (e.g., “Mobile App”, “Web Dashboard”). Defaults to “api-token”.

Response

message
string
Success message
user
object
The authenticated user’s information
token
string
The API token for the platform user
token_name
string
The name/label of the token
{
  "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..."