Delete Session
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.
Body
-
session_token string
Required if session_id and session_jwt not present
Unique Session Token to delete.Minimum length is
1
. -
session_jwt string
Required if session_id and session_token not present
Unique Session JWT to verify. -
session_id string
Required if session_token and session_jwt not present
Unique Given Session ID to delete.
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"
}