Skip to main content
POST
End a session

Authorizations

Authorization
string
header
required

API Key for your organization

X-App-ID
string
header
required

Project ID

Body

application/json
session_id
string
required

A unique session ID generated by caller

type
enum<string>
required

The event that ends a session

Available options:
end_session
timestamp
string

The timestamp of the event, defaults to "now" if not specified.

user_id
string

The unique ID of the user

device_id
string

The ID of the device, if applicable

attributes
object

Any additional attributes to be associated with the session

Response

200 - application/json

Success

type
enum<string>
required

The type of event being sent.

Available options:
start_session,
end_session,
identify,
alias,
track
{key}