Delete Session

DELETE /v1/auth/sessions/delete

Delete an identity session in an App. You can only send in one of the following: session_token, session_jwt, session_id. If more than one parameter is sent in, a validation error will be returned.

HTTP Request

DELETE /v1/auth/sessions/delete

Returns

A successful response returns an object with message property.

application/json

Body

  • Required if session_id and session_jwt not present Unique Session Token to delete.

    Minimum length is 1.

  • Required if session_id and session_token not present Unique Session JWT to verify.

  • Required if session_token and session_jwt not present Unique Given Session ID to delete.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • message string Required

      Minimum length is 1.

DELETE /v1/auth/sessions/delete
curl \
 -X DELETE https://api.streambird.io/v1/auth/sessions/delete \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"session_token":"50ulk0Tqgq3LlelxW3jNjj92yrIpyfPC3qkbXqGMTYkS45OhPtFlG4468lvtqyvs"}'
Request example
{
  "session_token": "50ulk0Tqgq3LlelxW3jNjj92yrIpyfPC3qkbXqGMTYkS45OhPtFlG4468lvtqyvs"
}
Response examples (200)
{
  "message": "Successfully deleted session"
}