User Login

Sent each time a user completes login through Scalekit's hosted login, including the first login after signup. data.user_session.organization_id is the organization the user logged in to.

postWebhookuser.login

Payload

spec_versionstring required

The webhook specification version

idstring required

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

type'user.login' 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'UserLoginEvent' required

The type of object that triggered the webhook

Example payload

{
  "spec_version": "1",
  "type": "user.login",
  "object": "UserLoginEvent",
  "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.