Envelope Add-onsBatch SigningAPI ReferenceCreate a batch signing task

Create a batch signing task

POST/openapi/v1/envelopes/batch-sign

Creates a batch signing task for a single signer across multiple envelopes and returns the batch signing page link (BatchSigningUrl). The end user fills in and submits all envelopes within that page, without retrieving a signing link per envelope.

Partial success

Each envelope is validated: envelopes that do not exist, do not belong to the current space, are not in a signable state (not sent / sending / completed / voided), whose signer email does not match, or whose ClientUserId conflicts with the bound value, envelopes containing large files, and envelopes whose signer has identity authentication requirements configured (access code / SMS / EKYC etc.) are excluded (with a per-item reason); the remaining envelopes form the task.

  • At least one valid envelope: the task is created and BatchSignTaskId with BatchSigningUrl are returned
  • All invalid: no task is created; error BATCH_SIGN.NO_SIGNABLE_ENVELOPE with per-item reasons is returned

ClientUserId

Optional signer identifier. Bound to the signer on first use; a mismatching value afterwards makes that envelope invalid.

TrustedMode

Optional, default false. When enabled, the task enters Trusted Embedded Signing mode: end users sign on the batch page without logging into the platform (the customer system performs its own authentication of end users).

Prerequisites (any failure rejects the request and no task is created):

  • The App has Trusted Signing enabled, otherwise API_SIGNING.TRUSTED_SIGNING_NOT_ENABLED is returned
  • ClientUserId must be provided

When not enabled (default): end users must log into the platform account as the signer themselves to fill in and submit.

ReturnUrl

Optional. The batch page redirects to this URL after the task is completed (no signable envelopes remain; see TaskStatus for the exact semantics). It must be a pre-registered domain.

Required Scope: envelope:create (the envelope:manage superset scope also works)


Request Parameters

AuthorizationRequiredstring
Bearer <access_token>
X-Operator-User-IdOptionalstring
Operator user ID. Not required in Authorization Code mode (the authorized user is used automatically). Optional in Client Credentials mode — omit to use the system user ID.
application/json
RecipientEmailRequiredstring
Signer email (required). Locates the signer within each envelope by email.
ClientUserIdOptionalstring
Customer-side signer identifier (optional). Bound to the signer on first use; must match the bound value afterwards. Required when TrustedMode=true.
EnvelopeIdsRequiredarray<string>
Envelope IDs to batch sign (required). Deduplicated and order-preserving, 1~100; envelopes must belong to the current space and be in a signable state.
ReturnUrlOptionalstring
Redirect URL after the batch page completes (optional), must be a pre-registered domain.
TrustedModeOptionalboolean
Trusted Embedded Signing mode (optional, default false). When true, end users sign on the batch page without platform login; prerequisites and constraints in the endpoint description (App Trusted Signing enabled, ClientUserId provided, signer without configured authentication requirements).

Response Parameters

BatchSignTaskIdOptionalstring
Task ID
BatchSigningUrlOptionalstring
Batch signing page entry link (credential valid for 24 hours). Not returned when all envelopes are invalid.
ItemsOptionalarray<object>
Per-item result for every requested envelope
EnvelopeIdOptionalstring
Envelope ID
ValidOptionalboolean
Whether the envelope is valid (only valid envelopes enter the task)
ReasonCodeOptionalstring
Invalid reason (empty when valid). Values: `envelope_not_found` (envelope not found), `recipient_not_match` (signer email does not match the envelope), `client_user_id_mismatch` (ClientUserId conflicts with the bound value), `envelope_not_sent`, `envelope_sending`, `envelope_completed`, `voided`, `already_signed`, `declined`, `, `large_file_unsupported`, `auth_required`

Error Codes

Error CodeDescription
INVALID_REQUESTBody parsing failed; RecipientEmail missing; EnvelopeIds empty
API_SIGNING.RETURN_URL_NOT_ALLOWEDReturnUrl is not in the allowed domain list
BULK_SIGN.TOO_MANY_ENVELOPESEnvelopeIds exceeds 100
BATCH_SIGN.NO_SIGNABLE_ENVELOPEAll envelopes invalid, no task created (per-item reasons in Items)
BULK_SIGN.ENVELOPE_NOT_ACCESSIBLEThe envelope does not belong to the current space or is not accessible
API_SIGNING.TRUSTED_SIGNING_NOT_ENABLEDThe App has not enabled Trusted Signing; cannot create a task with TrustedMode
API_SIGNING.TRUSTED_SIGNING_AUTH_METHOD_CONFLICTThe signer has authentication requirements configured, conflicting with TrustedMode