Skip to main content
POST
/
v0
/
auth
/
logout
Logout a user
curl --request POST \
  --url https://api.sandbox.getasset.com/v0/auth/logout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "session_id": "<string>"
}
'
{
  "error": "<string>",
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
email
string<email>
required

The email of the user to logout

session_id
string | null

The ID of the session to logout. If no value is provided, the user will be logged out from all sessions

Response

Successful Response