User Logout

Sent when a user's session ends: the user logs out, the identity provider logs the user out, or an active session expires. data.user_session.status is LOGOUT or EXPIRED.

postWebhookuser.logout

Payload

spec_versionstring required

The webhook specification version

idstring required

Unique identifier for the webhook event (must be prefixed with "evt_")

type'user.logout' required

The event type

occurred_atstring date-time required

When the event occurred (ISO 8601 format)

environment_idstring required

The environment ID where the event occurred

object'UserLogoutEvent' required

The type of object that triggered the webhook

Example payload

{
  "spec_version": "1",
  "type": "user.logout",
  "object": "UserLogoutEvent",
  "data": {
    "user": {
      "user_profile": {
        "external_identities": [
          {
            "connection_type": "OAUTH",
            "connection_provider": "GOOGLE"
          }
        ]
      }
    }
  }
}

Response

Webhook received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.