Skip to Content
Events

Get an event

GET
/api/v1/events/{id}

Returns a single event, the same object a webhook delivery carries as its body. Use it to read an event again by the webhook-id of a delivery. data.object follows the same snapshot rule as GET /api/v1/events, and an event whose resource no longer exists returns 404.

Authorization

headerAuthorizationBearer <token>

API key, e.g. Authorization: Bearer sajn_svc_.... Not scope-limited: acts with its owner's workspace role.

Path Parameters

id*string

The event ID.

Header Parameters

Sajn-Version?string

API version for this request. Without it, the request uses the organization's default version; an organization without a default is pinned to the latest version by its first request.

Value in"2026-09""2026-10"
Sajn-Workspace?string

ID of the workspace this request acts in, from GET /api/v1/workspaces. Without it, an API key acts in its default workspace. The token's user must be a member of the workspace; an OAuth token only accepts the workspace it was granted for. A workspace that doesn't exist or can't be reached returns 403 WORKSPACE_ACCESS_DENIED.

Response Body

200

application/json
  1. response
id*string

Event ID. Every delivery of the event carries it in the body and the webhook-id header.

type*string

The event type, such as document.completed.

Value in"document.created""document.sent""document.fully_signed""document.completed""document.rejected""document.expired""document.withdrawn""document.updated""document.deleted""document.restored""document.archived""document.unarchived""document.expiration_extended""document.expiring_soon""document.party.sent""document.party.delivery_failed""document.party.opened""document.party.read""document.party.signed""document.party.rejected""document.party.delegated""document.party.auth_failed""document.party.verified""document.party.updated""document.party.added""document.party.removed""document.party.reminded""document.comment.created""bundle.sent""bundle.party.signed""bundle.completed""bundle.cancelled""archive_import.completed""archive_import.undone""identity_check.created""identity_check.sent""identity_check.opened""identity_check.verified""identity_check.failed""identity_check.cancelled""contact.created""contact.updated""contact.deleted""company.created""company.updated""company.deleted""template.created""template.updated""template.deleted""template.restored""form.submitted""workspace.created""member.added""member.invited""member.invite_accepted""approval_request.created""approval_request.approved""approval_request.rejected""approval_request.cancelled""login.completed""login.failed""security.document_downloaded""security.documents_exported""security.signature_identity_accessed""security.member_removed""security.member_role_changed""security.role_updated""security.workspace_retention_updated""usage.limit_reached"
createdAt*string

When the event happened.

Formatdate-time
apiVersion*string

The API version that sets the shape of data.

workspaceId*string

The workspace ID.

organizationId*string

The organization the event happened in.

environment*string

SANDBOX for an event in a sandbox organization.

Value in"PRODUCTION""SANDBOX"
actor*|

Who caused the event. Null when sajn can't attribute it: a party's action, such as signing, and most changes made in the sajn app.

data*

The event's data, the same object a webhook delivery carries. object is the resource the event is about; the other fields depend on type.

Example Request
curl -X GET 'https://app.sajn.se/api/v1/events/cm4k2x9p10014abcd1234efgh'
Example Response
{  "id": "cm4k2x9p10014abcd1234efgh",  "type": "document.created",  "createdAt": "2026-09-28T09:12:00.000Z",  "apiVersion": "2026-10",  "workspaceId": "cm4k2x9p10001abcd1234efgh",  "organizationId": "cm4k2x9p10000abcd1234efgh",  "environment": "PRODUCTION",  "actor": {    "type": "USER",    "id": "cm4k2x9p10014abcd1234efgh"  },  "data": {    "partyId": "cm4k2x9p10004abcd1234efgh",    "signatureType": "SE_BANKID"  }}

Was this page helpful?