API Referenceauth
Logout and revoke tokens
Revoke access and/or refresh tokens. Returns an end session URL if available for completing logout at the identity provider.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X post "http://localhost:8000/api/v1/auth/logout" \ -H "Content-Type: application/json" \ -d '{ "access_token": "eyJhbGciOiJSUzI1NiIs...", "post_logout_redirect_uri": "https://app.example.com", "refresh_token": "eyJhbGciOiJSUzI1NiIs..." }'{
"success": true,
"message": "Successfully logged out",
"end_session_url": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
