POST
/
api
/
v2
/
auth
/
logout
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

The body is of type object.

Response

200
application/json

Logout successful

The response is of type object.