Create a new webhook
Create a new webhook subscription for your workspace.
Required Fields:
webhookUrl- URL that will receive POST requests when events occureventTriggers- Array of event types to subscribe to
Optional Fields:
secret- Secret string used to sign payloads (sent as X-Sajn-Secret header)enabled- Whether the webhook is active (default: true)
Available Event Types:
- Document:
DOCUMENT_CREATED,DOCUMENT_SENT,DOCUMENT_OPENED,DOCUMENT_SIGNED,DOCUMENT_COMPLETED,DOCUMENT_REJECTED,DOCUMENT_WITHDRAWN,DOCUMENT_ARCHIVE_UPLOADED - ID Check:
ID_CREATED,ID_SENT,ID_OPENED,ID_VERIFIED,ID_FAILED,ID_CANCELED - Contact:
CONTACT_CREATED,CONTACT_UPDATED,CONTACT_DELETED
Plan Requirement: Requires SOLO plan or higher.
Documentation Index
Fetch the complete documentation index at: https://docs.sajn.se/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer token for API authentication
Body
Body
Create webhook request
URL that will receive webhook events
List of event types to subscribe to
1DOCUMENT_CREATED, DOCUMENT_SENT, DOCUMENT_SIGNED, DOCUMENT_COMPLETED, DOCUMENT_REJECTED, DOCUMENT_EXPIRED, DOCUMENT_WITHDRAWN, DOCUMENT_RECREATED, DOCUMENT_DELETED, DOCUMENT_ARCHIVED, DOCUMENT_UNARCHIVED, 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_REMINDER_AUTOMATIC, DOCUMENT_REMINDER_MANUAL, DOCUMENT_OPENED, DOCUMENT_ARCHIVE_UPLOADED, ID_CREATED, ID_SENT, ID_OPENED, ID_VERIFIED, ID_FAILED, ID_CANCELED, CONTACT_CREATED, CONTACT_UPDATED, CONTACT_DELETED, TEMPLATE_CREATED, TEMPLATE_UPDATED, TEMPLATE_DELETED, WORKSPACE_CREATED, MEMBER_ADDED, WORKFLOW_STARTED, WORKFLOW_COMPLETED, WORKFLOW_FAILED Whether this webhook is active (default: true)
Secret used to sign webhook payloads (sent as X-Sajn-Secret header)
Email address that will be notified if webhook delivery fails
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Response
Webhook response
Webhook response
Unique webhook identifier
URL that receives webhook events
Secret used to sign webhook payloads (sent as X-Sajn-Secret header)
Whether this webhook is active
Email address that receives a notification if webhook delivery fails
List of event types this webhook subscribes to
Date and time when webhook was created
Date and time when webhook was last updated

