Id as you go and is easier to handle errors against.
This page is for when you already know exactly what the package should contain and want the
fewest possible requests.
Prerequisites
- A valid access token or Basic Auth credentials - see Platform Access
- Your tenant’s base URL set as
BASE_URL - A PDF document to upload (max 30 MB)
Bearer authentication. Replace the token and variable values with your own.
How the super call works
A super call combines into onePOST /packages request everything the step-by-step flow does
across six calls: the package, its documents, the stakeholders, their actors, the placed
elements, and the process order. Setting Status to pending in the same body activates the
package immediately, so no separate activation call is needed.
There is one concept that only appears in the super call. When you add a document with its own
call you get back a document Id and reference it when placing a signing field. In a super call
the documents do not exist yet, so there are no IDs to reference. Instead, each element points at
its target document by position using DocumentIndex: 0 is the first document in the call,
1 the second, and so on.
A super call cannot be combined with a template. To create a package from a template, pass a
TemplateCode instead of inlining documents and stakeholders; the package then inherits
everything defined in the template. See
Templates → Templates and super calls.Step 1: Create everything in one call
The request below creates a package namedEmployment Contract, uploads one base64-encoded PDF,
adds Jane Smith as a person stakeholder with a Signer actor, places one signing field on the
first document, and activates the package - all at once.
Encode your PDF:
Status is Pending, the package is created and activated in one step, and Jane receives
an email notification with a link to sign. Save the Id from the response - you need it to poll
and download.
Page, Top, and Left to position the signature field where you want it on your document.
A signing field must be at least 50 × 30 points.
A package must not exceed 150 MB in total and should not contain more than 15 documents, with each
document no larger than 30 MB. An
.xml document must not exceed 2 million characters, and a
package must not contain more than 15 .xml files.Step 2: Monitor status
PollGET /packages/{packageId}/status until the package is Finished:
Step 3: Download the signed document
Once the status isFinished, download the signed documents as a .zip file:
Finished and Archived packages can be downloaded; downloading a package in any other
state returns 409 Conflict.
Next steps
- Build packages step by step, with an
Idreturned at each stage, in Send a document for signing - Understand how documents, stakeholders, actors, and elements relate in The package model
- Replace polling with status-change callbacks in Callbacks and redirects
- Review Best Practices for error handling, pagination, and security