Skip to main content
This tutorial shows the quickest way to get a document signed with the NSEV WebPortal API: a single super call that creates the package and everything inside it at once, activated immediately so the signer can act. After the call you only poll for completion and download the result. If you are building a real integration, the step-by-step flow in Send a document for signing is usually a better fit - it gives you each object’s 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)
All examples use Bearer authentication. Replace the token and variable values with your own.

How the super call works

A super call combines into one POST /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 named Employment 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:
Make the super call:
Because 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.
The signing element coordinates are in points (1 point = 1/72 inch) from the top-left of the page. Adjust 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.
SigningMethods references the methods configured for your tenant (for example, manual:manual or smartcard:beid). The names are case-sensitive. Call GET /signingmethods to list the methods available to you and use the returned Name values here.

Step 2: Monitor status

Poll GET /packages/{packageId}/status until the package is Finished:
The package moves through the following statuses:
Polling is the simplest way to detect completion, but for production integrations a status-change callback is more efficient than repeated requests. Set a CallBackUrl on the package and let NSEV notify you instead - see Callbacks and redirects.

Step 3: Download the signed document

Once the status is Finished, download the signed documents as a .zip file:
Only Finished and Archived packages can be downloaded; downloading a package in any other state returns 409 Conflict.

Next steps