🔨 In Development — This section is still being developed and may change.
**POST** `/v1/auth/logout` - Logout the current user and invalidate their authentication tokens. This endpoint provides secure session termination and prevents token reuse.
POSThttps://api.freddy.aitronos.com/v1/auth/logout
Authorization string required
Bearer token for authentication (access token).
refresh_token string optional
Refresh token to invalidate (recommended for complete cleanup).
A Logout response object containing confirmation of successful logout.
{
"message": "Successfully logged out",
"logged_out_at": "2025-11-02T10:30:00Z"
}Bash
- Bash
- Python
- JavaScript
curl -X POST https://api.freddy.aitronos.com/v1/auth/logout \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "'$REFRESH_TOKEN'"
}'Bash
- Bash
- Python
- JavaScript
curl -X POST https://api.freddy.aitronos.com/v1/auth/logout \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'JSON
- JSON
- JSON
- JSON
{
"message": "Successfully logged out",
"logged_out_at": "2025-11-02T10:30:00Z"
}