Authyo Docs
  1. APIs
Authyo Docs
  • 🐶 Walk through Authyo
  • Error Codes
  • About Pricing
  • APIs
    • Send OTP
      GET
    • Send OTP
      POST
    • Verify OTP
      GET
    • Verify Token
      POST
    • Revoke User Session
      POST
  • Web SDKs
    • JavaScript
    • PHP
    • AngularJS Examples
    • TypeScript Examples
    • React JS
    • Vue JS Examples
  • Native/Mobile SDKs
    • Flutter
  • Integration
    • Google Sheet
    • Firebase
  1. APIs

Revoke User Session

POST
https://app.authyo.io/api/v1/auth/revokesession
Revokes an active user session by exchanging the session token obtained from Authyo after successful verification. This is a server-to-server call and requires valid clientId and clientSecret for authentication.
Revoke Session API is used to revoke a user session. Revoke Session API should be called when a user logs out.

Request

Header Params

Body Params application/json

Example
{
    "token": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.authyo.io/api/v1/auth/revokesession' \
--header 'clientId;' \
--header 'clientSecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token": "string"
}'

Responses

🟢200Success
application/json
Body

Examples
{
    "success": true,
    "message": "session revoked successfully"
}
Modified at 2025-09-09 09:08:02
Previous
Verify Token
Next
JavaScript
Built with