login.completed
Fires when a user completes a sajn Login authentication, also when the browser never returns to your app. data.object is the session with claims set to null, so the event carries no identity, only the pairwise sub. With the Session API, read the claims with GET /api/v1/login/sessions/{id}. The event isn't a credential: never treat it as a signed-in session. actor is always null.
webhook-id*stringThe event id. It stays the same across retries and replays, so deduplicate on it.
webhook-timestamp*stringWhen sajn sent this attempt, in Unix seconds. Reject a timestamp older than your tolerance, such as five minutes.
webhook-signature?stringOne or more space-separated signatures, v1,<base64 HMAC-SHA256>, over <webhook-id>.<webhook-timestamp>.<raw request body>. The key is the base64 decoding of the secret after whsec_. Accept the request when any signature matches; for 24 hours after a secret rotation, there is one per secret. Any Standard Webhooks library verifies it. Webhooks created without a secret don't send this header.
Sajn-Version*"2026-10"The endpoint's API version, the same value as apiVersion in the body.
"2026-10"application/json- body
id*stringEvent ID, also in webhook-id. It's the same on every retry, replay and endpoint that receives the event, so deduplicate on it. To read the event again, pass it to GET /api/v1/events/{id}.
type*"login.completed""login.completed"createdAt*stringWhen the event happened. It doesn't change across retries and replays.
date-timeapiVersion*"2026-10"The endpoint's API version, which sets the shape of data.
"2026-10"workspaceId*stringorganizationId*stringThe organization the event happened in.
environment*stringSANDBOX for an event in a sandbox organization.
"PRODUCTION""SANDBOX"actor*|nulldata*Return any 2xx status code within 30 seconds to acknowledge the delivery. sajn retries any other status code, a redirect, a timeout and a network error with backoff for about three days, 12 attempts in all. A 410 Gone stops the retries and pauses the webhook.
{ "id": "cm4k2x9p10014abcd1234efgh", "type": "login.completed", "createdAt": "2026-09-28T14:03:00.000Z", "apiVersion": "2026-10", "workspaceId": "cm4k2x9p10001abcd1234efgh", "organizationId": "cm4k2x9p10000abcd1234efgh", "environment": "PRODUCTION", "actor": null, "data": { "object": { "id": "cm4k2x9p10033abcd1234efgh", "status": "COMPLETED", "method": "SE_BANKID", "completedAt": "2026-09-28T14:03:00.000Z", "state": "checkout-7731", "sub": "cm4k2x9p10041abcd1234efgh", "claims": null, "loginUrl": null, "expiresAt": null }, "clientId": "cm4k2x9p10039abcd1234efgh", "mode": "SESSION" }}{ "webhook-id": "cm4k2x9p10014abcd1234efgh", "webhook-timestamp": "1759304580", "webhook-signature": "v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=", "Sajn-Version": "2026-10"}Was this page helpful?