Skip to main content
DELETE
/
v1
/
auth
/
sessions
/
delete
Delete Session
curl --request DELETE \
  --url https://api.streambird.io/v1/auth/sessions/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "session_token": "50ulk0Tqgq3LlelxW3jNjj92yrIpyfPC3qkbXqGMTYkS45OhPtFlG4468lvtqyvs"
}'
{
  "message": "Successfully deleted session"
}

Authorizations

Authorization
string
header
required

Auth Platform API includes all the Auth related features. All Users, Phone Numbers, Emails, and OTPs are associated with an App as the container.

Endpoints only accept App's Secret API keys other than certain endpoints that are used client side or via SDK that accept the public_token.

Authentication using App Api Key

Header:

Authorization: Bearer {api_key}

Authenticated Request

curl \
-X GET https://api.streambird.io/v1/auth/users/user_24wFP9pDa9YiMJLun94iKykoZs2 \
-H "Authorization: Bearer sk_test_pRqweh3wvWmJAAVYv7Z0T5iPLzFM4ql0muoyQcjOxGeN3p1r"

Body

application/json
session_token
string

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

Minimum length: 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.

Response

200 - application/json

Delete Session response

message
string
required
Minimum length: 1