Send document for signing
Send a document to signers for signing.
Request Body:
customMessage(optional) - Custom message to include in the signing invitation emails/SMS. Supports newline characters (\n) for line breaks. Available template variables (use{{variableName}}syntax):{{firstName}},{{lastName}},{{fullName}},{{recipientFirstName}},{{recipientLastName}},{{recipientFullName}},{{recipientEmail}},{{recipientPhone}},{{senderFirstName}},{{senderLastName}},{{senderFullName}},{{senderEmail}},{{documentName}},{{signUrl}}.approverId(optional) - User ID of the approver. Required if you lack the SEND_WITHOUT_APPROVAL permission. UseGET /api/v1/approversto list eligible approvers.
Prerequisites:
- Document must have at least one signer added via
POST /documents/{id}/signersor when creating the document - Each signer’s delivery method (
EMAIL,SMS, orNONE) and signature type (DRAWING,BANKID,CLICK_TO_SIGN) are configured per-signer when adding them
Responses:
- 200 - Document sent directly. Status changes from DRAFT to PENDING.
- 202 - Document submitted for approval. Status changes from DRAFT to PENDING_APPROVAL. The designated approver must approve before the document is sent.
- 403 with
code: "APPROVAL_REQUIRED"- You lack permission to send directly. Provide anapproverIdto submit for approval.
What happens when you send:
- Document status changes from
DRAFTtoPENDING - Signing invitations are sent to each signer based on their individual
deliveryMethodsetting - Signers with
deliveryMethod: NONEwon’t receive notifications - use their signing URLs directly
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
Path Parameters
Body
Body
Send document for signing. If you lack permission to send directly, provide an approverId to submit for approval instead.
Optional custom message to include in the signing invitation. Supports newline characters (\n) for line breaks. Available template variables (use {{variableName}} syntax): {{firstName}}, {{lastName}}, {{fullName}}, {{recipientFirstName}}, {{recipientLastName}}, {{recipientFullName}}, {{recipientEmail}}, {{recipientPhone}}, {{senderFirstName}}, {{senderLastName}}, {{senderFullName}}, {{senderEmail}}, {{documentName}}, {{signUrl}}.
User ID of the approver. Required if you do not have SEND_WITHOUT_APPROVAL permission. Use GET /api/v1/approvers to list eligible approvers.
Response
200
Unique document identifier
Document name/title
Document status: DRAFT, SENDING, PENDING, COMPLETED, EXPIRED, CANCELLED, or IMPORTED
Date and time when the document was created
Date and time when the document was last updated
Your external reference ID for this document
Date and time when the document expires
Document metadata including subject, message, signing order, etc.
Date and time when all signers completed signing

