Skip to main content
POST
Schedule session snapshot, token usage, and analytics reconciliation from a webhook event

Authorizations

Authorization
string
header
required

OAuth2 Authorization Code flow

Body

application/json
session_external_id
string
required

Managed session external id

Example:

"sesn_123"

event_type
string
required

Webhook event type

Example:

"session.status_idled"

event_id
string
required

Webhook event id

Example:

"wevt_123"

organization_id
string
required
workspace_id
string
required
created_at
string
required

Response

200 - application/json
synced
boolean
required

Whether the local session snapshot was synced

tokenUsageCaptured
boolean
required

Whether a session.token_usage analytics event was captured