Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

packageId
string<guid>
required

The target package's unique identifier A package's unique identifier

Example:

"00000000-0000-0000-0000-000000000000"

Query Parameters

async
boolean
default:false

This parameter allows to upload and process the document asynchronously. If set to true the location header will contain a uri that allows to monitor the process.

Body

Parameters for creating a document

Parameters for creating a document

Name
string
required

Name of the document, displayed in the WebPortal. Do not include a file extension. The name must not contain special characters such as slash, backslash, question mark, percent, asterisk, colon, pipe, single quote, double quote, less-than or greater-than. When itsme is used as a signing method, restrict the name to characters supported by ISO 8859-15; some software-generated characters such as curly apostrophes and long dashes are not supported.

Required string length: 1 - 150
Language
string<languageCode>
required

Language used in signature texts and in legal notices when an actor's LegalNoticeCode is set. Supported values: en, nl, de, fr, es, da, nb, sv, fi, lv, pl, hu, it, pt, ro.

Example:

"en"

DocumentOptions
object
required

Contains a document's base64 data and media type

IsOptional
boolean
default:false

Determines whether the document is optional. Default value is false. When set to true, actors may choose not to form fill/sign the document.

ExternalReference
string

External reference to this resource set by the calling application. NSEV does not use this value itself. When filtering packages, this matches the package-level external reference only, not document or field references.

Maximum string length: 256
Elements
(Place an unplaced element · object | Signing field · object | Check box field · object | Text box field · object | Radio group · object)[]

A list of elements (that aren't linked to an actor at once) on the created document

Parameters for placing an existing unplaced element, identified by UnplacedElementId. Choose one placement method and supply only its fields:

  • Explicit coordinates - supply Location and Dimensions.
  • Text marker - supply Marker (a code embedded in the document text).
  • Radio group - supply Options, each button positioned by its own Location and Dimensions (used when the unplaced element is a radio group, instead of Location/Marker).

Do not combine methods. For the full rules and marker formats see the Field positioning guide.

Example:
ProofCorrelationId
string
deprecated

Id for correlating this document with other resources in the proofs system

RepresentationOptions
object

Contains a document's base64 data and media type

Response

Document was created

A single document

Id
string<guid>

A document's unique identifier

Example:

"00000000-0000-0000-0000-000000000000"

PackageId
string<guid>

A package's unique identifier

Example:

"00000000-0000-0000-0000-000000000000"

Name
string

Name of the document

Required string length: 1 - 150
Example:

"example document"

CreationDate
string<date-time>

When the resource was created

MediaType
enum<string>

The media type of a file

Available options:
application/pdf,
application/xml
Example:

"application/pdf"

Language
string<languageCode>

A country's 2 letter ISO code (ISO 639-1)

Example:

"en"

Status
enum<string>

The status of a document

Available options:
Draft,
Pending,
InProgress,
Ending,
Finished,
Rejected,
Revoked,
Expired,
Failed,
Processing,
ProcessingFailed
Elements
(Signing field · object | Check box field · object | Text box field · object | Radio group · object)[]

The document's elements

A field that can be signed by an actor

ExternalReference
string

External reference to this resource set by the calling application. NSEV does not use this value itself. When filtering packages, this matches the package-level external reference only, not document or field references.

Maximum string length: 256
ProofCorrelationId
string
deprecated

Id for correlating with other resources in the proofs system

OrderIndex
integer

The Order Index of the document.