Logout A Team Member
Securely log out team members from active sessions using the DoubleTick API, ensuring better access control and session management. 🔒✅
API Endpoint
Use the following endpoint to log out a team member:
POST https://public.doubletick.io/team-member/logout
Request Headers
{
"Authorization": "YOUR_API_KEY",
"Content-Type": "application/json"
}
Request Body Parameters
{
"userPhoneNumber": "agent_number"
}
Parameters
userPhoneNumber(string, required): The phone number of the team member in international format to be logged out.
Response
Success Response (201)
{
"success": true
}
Bad Request (400)
{
"message": "error_message",
"error": "Bad Request",
"statusCode": 400
}
Unauthorized (401)
{
"message": "Invalid public api key",
"error": "Unauthorized",
"statusCode": 401
}
Best Practices
- Ensure the phone number is correctly formatted before making the request.
- Use secure authentication to prevent unauthorized logouts.
- Regularly review active sessions for security compliance.
Updated 9 months ago
What’s Next
Explore more message types and enhance your WhatsApp communication with DoubleTick API
