Skip to content
Docs
Get early access

Revoke the access token and optionally its refresh session

POST
/v1/auth/logout
curl --request POST \
--url https://api.wirevod.online/v1/auth/logout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "refresh_token": "wvr_9f2c.refresh" }'
Media typeapplication/json
object
refresh_token
string
>= 1 characters
Example
{
"refresh_token": "wvr_9f2c.refresh"
}

Session revoked. Idempotent when already revoked.

Missing or invalid credentials.

Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{
"error": "unauthorized",
"code": "unauthorized",
"message": "Authentication required"
}