Skip to main content
POST
https://app.autocalls.ai/api/
/
white-label
/
logout
Logout platform user
curl --request POST \
  --url https://app.autocalls.ai/api/white-label/logout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": 123,
  "email": "<string>",
  "token_id": 123
}
'
{
  "message": "User logged out successfully."
}
This endpoint allows white label admins to revoke API tokens for one of their platform users, effectively logging them out.
This endpoint requires authentication as a white label admin. You can only logout users belonging to your platform.

Request Body

user_id
integer
The ID of the user to logout. Required if email is not provided.
email
string
The email of the user to logout. Required if user_id is not provided.
token_id
integer
Optional. The specific token ID to revoke. If not provided, all tokens for the user will be revoked.

Response

message
string
Success message
{
  "message": "User logged out successfully."
}

Example: Logout by Email (All Tokens)

curl -X POST https://app.autocalls.ai/api/white-label/logout \
  -H "Authorization: Bearer YOUR_ADMIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]"
  }'

Example: Logout Specific Token

curl -X POST https://app.autocalls.ai/api/white-label/logout \
  -H "Authorization: Bearer YOUR_ADMIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": 123,
    "token_id": 45
  }'