POST
/
api
/
v2
/
auth
/
logout
Logout user
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2/auth/logout \
  --header 'Content-Type: application/json' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --data '{
  "userSessionToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}'
{
  "cleared": true,
  "message": "<string>",
  "success": true
}

Headers

X-Tenant-ID
string

Tenant identifier for multi-tenant operations

X-Forwarded-For
string
required

Forwarded client IP address

User-Agent
string

Client user agent information

Body

application/json

Logout request details

userSessionToken
string
required

JWT session token to be invalidated

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Response

Logout successful

cleared
boolean
message
string
success
boolean