Logout a user by invalidating all their authentication tokens. This forces the user to log in again on their next request.
cURL
curl --request POST \ --url https://playground.answeringagent.com/api/v1/users/{external_id}/logout \ --header 'X-API-KEY: <api-key>'
{ "message": "User logged out successfully", "user_id": "customer_123" }
The external ID of the user to logout
User logged out successfully.
"User logged out successfully"
The external ID of the user
"customer_123"