curl --request POST \
--url https://api.example.com/api/auth/revoke \
--header 'Content-Type: application/json' \
--data '
{
"RefreshToken": "<string>",
"Reason": "<string>"
}
'{
"Message": "<string>"
}Revoke a refresh token (logout)
curl --request POST \
--url https://api.example.com/api/auth/revoke \
--header 'Content-Type: application/json' \
--data '
{
"RefreshToken": "<string>",
"Reason": "<string>"
}
'{
"Message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David-Andino/auth-service-dotnet/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <access_token>
curl -X POST http://localhost:5000/api/auth/revoke \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"RefreshToken": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"Reason": "User logout"
}'
{
"Message": "Token revocado exitosamente."
}
{
"message": "Refresh token inválido o ya revocado."
}
Reason parameter is optional but recommended for audit logging