[
{
"ErrorCode": "Name.MinimumLength:6",
"ErrorMessage": "The minimum length for a name is 6"
}
]
[
{
"ErrorCode": "Package.NotFound:00000000-0000-0000-0000-000000000000",
"ErrorMessage": "The package with id '00000000-0000-0000-0000-000000000000' could not be found"
}
]
[
{
"ErrorCode": "Something.WentWrong",
"ErrorMessage": "Something went wrong"
}
]
Documents
Add document
Adds a document to an existing package. After the document is added you can build it
out further by adding elements (signing fields, checkbox fields, text box fields and
radio groups) in separate calls, or you can supply everything in this single call by
including the Elements array.
Documents can be added synchronously or asynchronously, selected with the async
query parameter:
Synchronous (async=false, the default): the call blocks until the document has
been uploaded and processed, then returns 201 Created with the created document.
Asynchronous (async=true): the call returns 202 Accepted immediately with a
Location header pointing at the package, and the document is processed in the
background. Poll the package (Get package by ID) until its status is Draft before
continuing to work on it. Asynchronous upload also enables the KeepSignatures,
KeepSigningFields and KeepFormFields options under DocumentOptions, which let
you preserve signatures and detected field markers found in the uploaded file.
A document can also be marked optional. Optional documents let a package mix mandatory
and optional documents; end users may then choose not to fill in or sign the optional
ones while still completing the mandatory ones.
The request accepts either application/json (with the file supplied as Base64 in
DocumentOptions.Base64data) or multipart/form-data (with the file attached as the
Document part and an optional Representation part). The multipart form takes the
same parameters as the JSON body except that ContentType and Base64data are not
used - the file is the attached part instead.
Package size and content limits:
A package must not exceed 150 MB.
A package must not contain more than 15 documents, and each document must not exceed
30 MB.
An XML file must not contain more than 2 million characters, and a package must not
contain more than 15 XML files.
A PDF document’s physical dimensions must not exceed 3.99 m by 3.99 m.
A package cannot contain both XML documents and PDF documents on which signatures
will be placed. The package type is determined by the first uploaded document.
Large files may slow signing depending on the end user’s connection.
PDF handling notes:
PDF/A uploads are only allowed when the format is pdfa1a or pdfa2a. Adding form
fields to a PDF/A document breaks the “/A” conformance, leaving a regular PDF; to
recover PDF/A, set DocumentOptions.PdfOptions.TargetFormat to pdfa1a or pdfa2a
so the document is reconverted after all fields are filled or saved.
Rotated PDFs should not be combined with text markers: detected signature locations
are not rotated to match the text direction and are placed near the marker on a
best-effort basis.
When an uploaded PDF contains text fields whose name matches the configured Text
Field format, those fields are converted to empty signature fields and the original
text field is not displayed. This does not apply to documents that already contain
one or more signatures.
Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented
letters, slashes and dots are not supported.
PDF error handling is controlled by DocumentOptions.PdfOptions.PdfErrorHandling.
Some PDFs have minor flaws that prevent signing; depending on this value and the server
configuration, PDFs are checked and optionally fixed. A PDF that already contains
signatures is never fixed, because fixing it would invalidate those signatures. See the
property description for the meaning of each value.
POST
/
packages
/
{packageId}
/
documents
A valid request URL is required to generate request examples
[
{
"ErrorCode": "Name.MinimumLength:6",
"ErrorMessage": "The minimum length for a name is 6"
}
]
[
{
"ErrorCode": "Package.NotFound:00000000-0000-0000-0000-000000000000",
"ErrorMessage": "The package with id '00000000-0000-0000-0000-000000000000' could not be found"
}
]
[
{
"ErrorCode": "Something.WentWrong",
"ErrorMessage": "Something went wrong"
}
]
Authorizations
basicAuthbearerAuth
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
application/jsonmultipart/form-data
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
Show child attributes
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 | Combo box field · 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.
Id for correlating this document with other resources in the proofs system
RepresentationOptions
object
Contains a document's base64 data and media type
Show child attributes
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 | Combo box field · object)[]
The document's elements
A field that can be signed by an actor
Signing field
Check box field
Text box field
Radio group
Combo box field
Show child attributes
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nitro APIs","colors":{"primary":"#D93706","light":"#FCAF9D","dark":"#D93706"},"logo":{"light":"https://www.gonitro.com/hubfs/Nitro_2025/logo-dark.svg","dark":"https://www.gonitro.com/hubfs/Nitro_2025/logo-light.svg","href":"https://www.gonitro.com/automate"},"favicon":"https://mintcdn.com/go-nitro/0xUomOly-LNhxK7b/favicon.ico?fit=max\u0026auto=format\u0026n=0xUomOly-LNhxK7b\u0026q=85\u0026s=646fb37e5970115d681bdd0d81ba8515","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required"}},"navbar":{"links":[{"icon":"newspaper","href":"https://www.gonitro.com/resources?type=developer_blog","label":"Blog"},{"icon":"headset","href":"https://help.gonitro.com/support","label":"Support"},{"icon":"arrow-right-to-bracket","href":"https://sso.gonitro.com/login","label":"Log In"}],"primary":{"type":"button","label":"Get API access","href":"https://sso.gonitro.com/platform-trial-signup"}},"footer":{"socials":{"instagram":"https://www.instagram.com/gonitro","youtube":"https://www.youtube.com/c/nitrosoftware","linkedin":"https://www.linkedin.com/company/go-nitro","facebook":"https://www.facebook.com/nitrosoftware"}},"seo":{"metatags":{"google-site-verification":"qdnOUtxzQiObiPkJRHptxlmvIVydZCoH1KBdB21IP8o"}},"fonts":{"heading":{"family":"DM Sans"},"body":{"family":"IBM Plex Sans"}},"integrations":{"gtm":{"tagId":"GTM-WVZNLW"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"go-nitro","hasAudioNarration":false,"actualSubdomain":"go-nitro","customDomains":["developers.gonitro.com"],"gitSource":{"type":"github","owner":"nitro","repo":"public-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b9119ffae5051c401e93"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b12a2ed938a854137f8dc2f","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":162},{"language":"default","tag":"Nitro PDF \u0026 Sign","count":104},{"language":"default","tag":"Nitro Sign Enterprise Verified","count":91},{"language":"default","tag":"NSEV WebPortal API","count":75},{"language":"default","tag":"Sign API","count":40},{"language":"default","tag":"PDF Services","count":38},{"language":"default","tag":"Packages","count":16},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Documents","count":14},{"language":"default","tag":"Transformations","count":13}],"searchSettings":{"isFiltersEnabled":false}},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"html[data-current-path^=\"/nsev\"] a[href*=\"sso.gonitro.com\"],html[data-current-path^=\"/nsev\"] a[href*=\"contact-sales/early-access-automate\"]{display:none!important}"}]}
{"page":{"pagePath":"nsev/api-reference/documents/add-document","slug":"/nsev/api-reference/documents/add-document","pageMetadata":{"title":"Add document","description":"Adds a document to an existing package. After the document is added you can build it\nout further by adding elements (signing fields, checkbox fields, text box fields and\nradio groups) in separate calls, or you can supply everything in this single call by\nincluding the `Elements` array.\n\nDocuments can be added synchronously or asynchronously, selected with the `async`\nquery parameter:\n\n- **Synchronous** (`async=false`, the default): the call blocks until the document has\n been uploaded and processed, then returns `201 Created` with the created document.\n- **Asynchronous** (`async=true`): the call returns `202 Accepted` immediately with a\n `Location` header pointing at the package, and the document is processed in the\n background. Poll the package (Get package by ID) until its status is `Draft` before\n continuing to work on it. Asynchronous upload also enables the `KeepSignatures`,\n `KeepSigningFields` and `KeepFormFields` options under `DocumentOptions`, which let\n you preserve signatures and detected field markers found in the uploaded file.\n\nA document can also be marked optional. Optional documents let a package mix mandatory\nand optional documents; end users may then choose not to fill in or sign the optional\nones while still completing the mandatory ones.\n\nThe request accepts either `application/json` (with the file supplied as Base64 in\n`DocumentOptions.Base64data`) or `multipart/form-data` (with the file attached as the\n`Document` part and an optional `Representation` part). The multipart form takes the\nsame parameters as the JSON body except that `ContentType` and `Base64data` are not\nused - the file is the attached part instead.\n\n**Package size and content limits:**\n\n- A package must not exceed 150 MB.\n- A package must not contain more than 15 documents, and each document must not exceed\n 30 MB.\n- An XML file must not contain more than 2 million characters, and a package must not\n contain more than 15 XML files.\n- A PDF document's physical dimensions must not exceed 3.99 m by 3.99 m.\n- A package cannot contain both XML documents and PDF documents on which signatures\n will be placed. The package type is determined by the first uploaded document.\n- Large files may slow signing depending on the end user's connection.\n\n**PDF handling notes:**\n\n- PDF/A uploads are only allowed when the format is `pdfa1a` or `pdfa2a`. Adding form\n fields to a PDF/A document breaks the \"/A\" conformance, leaving a regular PDF; to\n recover PDF/A, set `DocumentOptions.PdfOptions.TargetFormat` to `pdfa1a` or `pdfa2a`\n so the document is reconverted after all fields are filled or saved.\n- Rotated PDFs should not be combined with text markers: detected signature locations\n are not rotated to match the text direction and are placed near the marker on a\n best-effort basis.\n- When an uploaded PDF contains text fields whose name matches the configured Text\n Field format, those fields are converted to empty signature fields and the original\n text field is not displayed. This does not apply to documents that already contain\n one or more signatures.\n- Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented\n letters, slashes and dots are not supported.\n\n**PDF error handling** is controlled by `DocumentOptions.PdfOptions.PdfErrorHandling`.\nSome PDFs have minor flaws that prevent signing; depending on this value and the server\nconfiguration, PDFs are checked and optionally fixed. A PDF that already contains\nsignatures is never fixed, because fixing it would invalidate those signatures. See the\nproperty description for the meaning of each value.","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/documents","href":"/nsev/api-reference/documents/add-document","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Adds a document to an existing package. After the document is added you can build it\\nout further by adding elements (signing fields, checkbox fields, text box fields and\\nradio groups) in separate calls, or you can supply everything in this single call by\\nincluding the \", _jsx(_components.code, {\n children: \"Elements\"\n }), \" array.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Documents can be added synchronously or asynchronously, selected with the \", _jsx(_components.code, {\n children: \"async\"\n }), \"\\nquery parameter:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Synchronous\"\n }), \" (\", _jsx(_components.code, {\n children: \"async=false\"\n }), \", the default): the call blocks until the document has\\nbeen uploaded and processed, then returns \", _jsx(_components.code, {\n children: \"201 Created\"\n }), \" with the created document.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Asynchronous\"\n }), \" (\", _jsx(_components.code, {\n children: \"async=true\"\n }), \"): the call returns \", _jsx(_components.code, {\n children: \"202 Accepted\"\n }), \" immediately with a\\n\", _jsx(_components.code, {\n children: \"Location\"\n }), \" header pointing at the package, and the document is processed in the\\nbackground. Poll the package (Get package by ID) until its status is \", _jsx(_components.code, {\n children: \"Draft\"\n }), \" before\\ncontinuing to work on it. Asynchronous upload also enables the \", _jsx(_components.code, {\n children: \"KeepSignatures\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"KeepSigningFields\"\n }), \" and \", _jsx(_components.code, {\n children: \"KeepFormFields\"\n }), \" options under \", _jsx(_components.code, {\n children: \"DocumentOptions\"\n }), \", which let\\nyou preserve signatures and detected field markers found in the uploaded file.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"A document can also be marked optional. Optional documents let a package mix mandatory\\nand optional documents; end users may then choose not to fill in or sign the optional\\nones while still completing the mandatory ones.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The request accepts either \", _jsx(_components.code, {\n children: \"application/json\"\n }), \" (with the file supplied as Base64 in\\n\", _jsx(_components.code, {\n children: \"DocumentOptions.Base64data\"\n }), \") or \", _jsx(_components.code, {\n children: \"multipart/form-data\"\n }), \" (with the file attached as the\\n\", _jsx(_components.code, {\n children: \"Document\"\n }), \" part and an optional \", _jsx(_components.code, {\n children: \"Representation\"\n }), \" part). The multipart form takes the\\nsame parameters as the JSON body except that \", _jsx(_components.code, {\n children: \"ContentType\"\n }), \" and \", _jsx(_components.code, {\n children: \"Base64data\"\n }), \" are not\\nused - the file is the attached part instead.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Package size and content limits:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"A package must not exceed 150 MB.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"A package must not contain more than 15 documents, and each document must not exceed\\n30 MB.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"An XML file must not contain more than 2 million characters, and a package must not\\ncontain more than 15 XML files.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"A PDF document’s physical dimensions must not exceed 3.99 m by 3.99 m.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"A package cannot contain both XML documents and PDF documents on which signatures\\nwill be placed. The package type is determined by the first uploaded document.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Large files may slow signing depending on the end user’s connection.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"PDF handling notes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"PDF/A uploads are only allowed when the format is \", _jsx(_components.code, {\n children: \"pdfa1a\"\n }), \" or \", _jsx(_components.code, {\n children: \"pdfa2a\"\n }), \". Adding form\\nfields to a PDF/A document breaks the “/A” conformance, leaving a regular PDF; to\\nrecover PDF/A, set \", _jsx(_components.code, {\n children: \"DocumentOptions.PdfOptions.TargetFormat\"\n }), \" to \", _jsx(_components.code, {\n children: \"pdfa1a\"\n }), \" or \", _jsx(_components.code, {\n children: \"pdfa2a\"\n }), \"\\nso the document is reconverted after all fields are filled or saved.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Rotated PDFs should not be combined with text markers: detected signature locations\\nare not rotated to match the text direction and are placed near the marker on a\\nbest-effort basis.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"When an uploaded PDF contains text fields whose name matches the configured Text\\nField format, those fields are converted to empty signature fields and the original\\ntext field is not displayed. This does not apply to documents that already contain\\none or more signatures.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented\\nletters, slashes and dots are not supported.\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"PDF error handling\"\n }), \" is controlled by \", _jsx(_components.code, {\n children: \"DocumentOptions.PdfOptions.PdfErrorHandling\"\n }), \".\\nSome PDFs have minor flaws that prevent signing; depending on this value and the server\\nconfiguration, PDFs are checked and optionally fixed. A PDF that already contains\\nsignatures is never fixed, because fixing it would invalidate those signatures. See the\\nproperty description for the meaning of each value.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add document","description":"Adds a document to an existing package. After the document is added you can build it\nout further by adding elements (signing fields, checkbox fields, text box fields and\nradio groups) in separate calls, or you can supply everything in this single call by\nincluding the `Elements` array.\n\nDocuments can be added synchronously or asynchronously, selected with the `async`\nquery parameter:\n\n- **Synchronous** (`async=false`, the default): the call blocks until the document has\n been uploaded and processed, then returns `201 Created` with the created document.\n- **Asynchronous** (`async=true`): the call returns `202 Accepted` immediately with a\n `Location` header pointing at the package, and the document is processed in the\n background. Poll the package (Get package by ID) until its status is `Draft` before\n continuing to work on it. Asynchronous upload also enables the `KeepSignatures`,\n `KeepSigningFields` and `KeepFormFields` options under `DocumentOptions`, which let\n you preserve signatures and detected field markers found in the uploaded file.\n\nA document can also be marked optional. Optional documents let a package mix mandatory\nand optional documents; end users may then choose not to fill in or sign the optional\nones while still completing the mandatory ones.\n\nThe request accepts either `application/json` (with the file supplied as Base64 in\n`DocumentOptions.Base64data`) or `multipart/form-data` (with the file attached as the\n`Document` part and an optional `Representation` part). The multipart form takes the\nsame parameters as the JSON body except that `ContentType` and `Base64data` are not\nused - the file is the attached part instead.\n\n**Package size and content limits:**\n\n- A package must not exceed 150 MB.\n- A package must not contain more than 15 documents, and each document must not exceed\n 30 MB.\n- An XML file must not contain more than 2 million characters, and a package must not\n contain more than 15 XML files.\n- A PDF document's physical dimensions must not exceed 3.99 m by 3.99 m.\n- A package cannot contain both XML documents and PDF documents on which signatures\n will be placed. The package type is determined by the first uploaded document.\n- Large files may slow signing depending on the end user's connection.\n\n**PDF handling notes:**\n\n- PDF/A uploads are only allowed when the format is `pdfa1a` or `pdfa2a`. Adding form\n fields to a PDF/A document breaks the \"/A\" conformance, leaving a regular PDF; to\n recover PDF/A, set `DocumentOptions.PdfOptions.TargetFormat` to `pdfa1a` or `pdfa2a`\n so the document is reconverted after all fields are filled or saved.\n- Rotated PDFs should not be combined with text markers: detected signature locations\n are not rotated to match the text direction and are placed near the marker on a\n best-effort basis.\n- When an uploaded PDF contains text fields whose name matches the configured Text\n Field format, those fields are converted to empty signature fields and the original\n text field is not displayed. This does not apply to documents that already contain\n one or more signatures.\n- Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented\n letters, slashes and dots are not supported.\n\n**PDF error handling** is controlled by `DocumentOptions.PdfOptions.PdfErrorHandling`.\nSome PDFs have minor flaws that prevent signing; depending on this value and the server\nconfiguration, PDFs are checked and optionally fixed. A PDF that already contains\nsignatures is never fixed, because fixing it would invalidate those signatures. See the\nproperty description for the meaning of each value.","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/documents","href":"/nsev/api-reference/documents/add-document","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Documents"],"summary":"Add document","operationId":"createDocument","parameters":["0f87237c-b8b1-405a-b457-0a5b0c038ebc"],"requestBody":"dbbc2533-16f0-4dca-9b3b-66249acc2d31","responses":{"201":"1c234c3a-4347-46ff-bdfa-43f9b16cff21","202":"31eaaee5-0222-462d-8a47-cf7c4f01edea","400":"b650f41c-3967-4318-8a95-c8eea7df7fdf","401":"c0bbd784-55a7-4fd7-b2f4-73fe09089909","404":"3d9b4195-fa46-43e3-8038-21229707816d","409":"aeb90426-e95d-454a-8c1d-f9f9f0d25ee6"},"description":"Adds a document to an existing package. After the document is added you can build it\nout further by adding elements (signing fields, checkbox fields, text box fields and\nradio groups) in separate calls, or you can supply everything in this single call by\nincluding the `Elements` array.\n\nDocuments can be added synchronously or asynchronously, selected with the `async`\nquery parameter:\n\n- **Synchronous** (`async=false`, the default): the call blocks until the document has\n been uploaded and processed, then returns `201 Created` with the created document.\n- **Asynchronous** (`async=true`): the call returns `202 Accepted` immediately with a\n `Location` header pointing at the package, and the document is processed in the\n background. Poll the package (Get package by ID) until its status is `Draft` before\n continuing to work on it. Asynchronous upload also enables the `KeepSignatures`,\n `KeepSigningFields` and `KeepFormFields` options under `DocumentOptions`, which let\n you preserve signatures and detected field markers found in the uploaded file.\n\nA document can also be marked optional. Optional documents let a package mix mandatory\nand optional documents; end users may then choose not to fill in or sign the optional\nones while still completing the mandatory ones.\n\nThe request accepts either `application/json` (with the file supplied as Base64 in\n`DocumentOptions.Base64data`) or `multipart/form-data` (with the file attached as the\n`Document` part and an optional `Representation` part). The multipart form takes the\nsame parameters as the JSON body except that `ContentType` and `Base64data` are not\nused - the file is the attached part instead.\n\n**Package size and content limits:**\n\n- A package must not exceed 150 MB.\n- A package must not contain more than 15 documents, and each document must not exceed\n 30 MB.\n- An XML file must not contain more than 2 million characters, and a package must not\n contain more than 15 XML files.\n- A PDF document's physical dimensions must not exceed 3.99 m by 3.99 m.\n- A package cannot contain both XML documents and PDF documents on which signatures\n will be placed. The package type is determined by the first uploaded document.\n- Large files may slow signing depending on the end user's connection.\n\n**PDF handling notes:**\n\n- PDF/A uploads are only allowed when the format is `pdfa1a` or `pdfa2a`. Adding form\n fields to a PDF/A document breaks the \"/A\" conformance, leaving a regular PDF; to\n recover PDF/A, set `DocumentOptions.PdfOptions.TargetFormat` to `pdfa1a` or `pdfa2a`\n so the document is reconverted after all fields are filled or saved.\n- Rotated PDFs should not be combined with text markers: detected signature locations\n are not rotated to match the text direction and are placed near the marker on a\n best-effort basis.\n- When an uploaded PDF contains text fields whose name matches the configured Text\n Field format, those fields are converted to empty signature fields and the original\n text field is not displayed. This does not apply to documents that already contain\n one or more signatures.\n- Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented\n letters, slashes and dots are not supported.\n\n**PDF error handling** is controlled by `DocumentOptions.PdfOptions.PdfErrorHandling`.\nSome PDFs have minor flaws that prevent signing; depending on this value and the server\nconfiguration, PDFs are checked and optionally fixed. A PDF that already contains\nsignatures is never fixed, because fixing it would invalidate those signatures. See the\nproperty description for the meaning of each value.","method":"post","type":"path","servers":["101007e3-3af2-43fa-8133-8c70cf0ce2f9"],"security":["ceee40eb-b7fc-42bd-acda-145a6f724384","3b008f7c-facf-4f74-9f8d-382bb5ac7fc4"],"path":"/packages/{packageId}/documents","baseUrlOptions":["{baseUrl}/esig/webportalapi/v4"],"title":"Add document","codeSamples":[],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0f87237c-b8b1-405a-b457-0a5b0c038ebc":{"in":"query","name":"async","schema":{"type":"boolean","default":false,"description":"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.","uniqueKey":"","typeLabel":"boolean"},"description":"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."},"ecf18386-c4bf-4549-9110-43b92d8ab8de":{"name":"packageId","in":"path","required":true,"description":"The target package's unique identifier","schema":{"type":"string","title":"GUID","description":"The target package's unique identifier\nA package's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cguid>"}}},"requestBody":{"description":"Parameters for creating a document","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Parameters for creating a document","required":["DocumentOptions","Name","Language"],"properties":{"Name":{"type":"string","description":"Name of the document, displayed in the WebPortal. Do not include a file extension.\nThe name must not contain special characters such as slash, backslash, question\nmark, percent, asterisk, colon, pipe, single quote, double quote, less-than or\ngreater-than. When itsme is used as a signing method, restrict the name to\ncharacters supported by ISO 8859-15; some software-generated characters such as\ncurly apostrophes and long dashes are not supported.","minLength":1,"maxLength":150,"isRequired":true,"uniqueKey":"Name","typeLabel":"string"},"Language":{"type":"string","description":"Language used in signature texts and in legal notices when an actor's\nLegalNoticeCode is set. Supported values: en, nl, de, fr, es, da, nb, sv, fi, lv,\npl, hu, it, pt, ro.","format":"languageCode","example":"en","isRequired":true,"uniqueKey":"Language","typeLabel":"string\u003clanguageCode>"},"DocumentOptions":{"type":"object","description":"Contains a document's base64 data and media type","required":["ContentType","Base64data"],"properties":{"Base64data":{"type":"string","description":"Attached document","format":"base64","nullable":false,"minLength":1,"maxLength":200000000,"isRequired":true,"uniqueKey":"DocumentOptions.Base64data","typeLabel":"file"},"ContentType":{"type":"string","description":"The media type of a file","format":"mediaType","enum":["application/pdf","application/xml","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"],"example":"application/pdf","isRequired":true,"uniqueKey":"DocumentOptions.ContentType","typeLabel":"enum\u003cstring>"},"TargetType":{"type":"string","description":"The media type the document will be converted to. Only takes effect when the\nserver is configured for document conversion.","enum":["application/pdf","application/xml"],"uniqueKey":"DocumentOptions.TargetType","typeLabel":"enum\u003cstring>"},"PdfOptions":{"type":"object","description":"Optional PDF conversion and validation parameters. Only applies when the target\ntype is application/pdf.","properties":{"TargetFormat":{"type":"string","description":"The targetFormat defines if an extra conversion needs to be done","enum":["pdf","pdfa1a","pdfa2a"],"example":"pdfa1a","uniqueKey":"DocumentOptions.PdfOptions.TargetFormat","typeLabel":"enum\u003cstring>"},"PdfErrorHandling":{"type":"string","description":"How to deal with PDFs containing minor flaws","enum":["Ignore","DetectWarn","DetectFail","DetectFixWarn","DetectFixFail"],"uniqueKey":"DocumentOptions.PdfOptions.PdfErrorHandling","typeLabel":"enum\u003cstring>"}},"uniqueKey":"DocumentOptions.PdfOptions","typeLabel":"object"},"KeepSignatures":{"type":"boolean","description":"When true, existing signatures detected in the document are applied to the document\nfile. Default is false. Cannot be true at the same time as KeepFormFields.","default":false,"uniqueKey":"DocumentOptions.KeepSignatures","typeLabel":"boolean"},"KeepSigningFields":{"type":"boolean","description":"When true, detected signing field markers are converted to actual signing fields.\nDefault is false.","default":false,"uniqueKey":"DocumentOptions.KeepSigningFields","typeLabel":"boolean"},"KeepFormFields":{"type":"boolean","description":"When true, detected form field markers are converted to actual form fields.\nDefault is false. Cannot be true at the same time as KeepSignatures.","default":false,"uniqueKey":"DocumentOptions.KeepFormFields","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"DocumentOptions","typeLabel":"object"},"IsOptional":{"type":"boolean","default":false,"description":"Determines whether the document is optional. Default value is false. When set to\ntrue, actors may choose not to form fill/sign the document.","uniqueKey":"IsOptional","typeLabel":"boolean"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"ExternalReference","typeLabel":"string"},"Elements":{"type":"array","description":"A list of elements (that aren't linked to an actor at once) on the created document","items":{"oneOf":[{"type":"object","title":"Place an unplaced element","description":"Parameters for placing an existing unplaced element, identified by `UnplacedElementId`.\nChoose **one** placement method and supply only its fields:\n\n- **Explicit coordinates** - supply `Location` and `Dimensions`.\n- **Text marker** - supply `Marker` (a code embedded in the document text).\n- **Radio group** - supply `Options`, each button positioned by its own `Location` and `Dimensions`\n (used when the unplaced element is a radio group, instead of `Location`/`Marker`).\n\nDo not combine methods. For the full rules and marker formats see the\n[Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["UnplacedElementId"],"example":{"Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"UnplacedElementId":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.UnplacedElementId","typeLabel":"string\u003cguid>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.0.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `Options`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `Options`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"description":"A piece of text inside the document where an element must be. It encodes the location\nand dimensions of the element. Omit when using `Location`/`Dimensions` or `Options`. Recommended\nto embed at document-upload time, because after document conversion the marker may no longer\nbe present. Its format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field. When placing an unplaced **combo box**, only the combo-box-specific `@id_DD_height_width#` form is accepted - the generic `@id_height_width#` marker is rejected for this element type.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","uniqueKey":"Elements.items.[INDEX].oneOf.0.Marker","typeLabel":"string"},"Options":{"description":"Radio-group buttons, each with a `Name`, `Location` and `Dimensions`. Supply this only\nwhen the unplaced element is a radio group; omit when using `Location`/`Dimensions` or `Marker`.","type":"array","items":{"type":"object","properties":{"Name":{"type":"string","description":"The name of the unplaced option","uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Name","typeLabel":"string"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Dimensions","typeLabel":"Element dimensions · object"}},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Options","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"Elements.items.[INDEX].oneOf.0","typeLabel":"Place an unplaced element · object"},{"type":"object","title":"Signing field","description":"Parameters for creating a signing field","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["SigningField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.1.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.1.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Elements.items.[INDEX].oneOf.1.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Elements.items.[INDEX].oneOf.1.FieldId","typeLabel":"string"},"SigningMethods":{"type":"array","deprecated":true,"items":{"title":"Signing method with key pair","type":"object","description":"A signing method, optionally pinned to a key pair. In requests, a bare signing-method name\nstring is also accepted anywhere this object is expected, as shorthand for `{ \"Name\": \"\u003cmethod>\" }`.\nResponses always return the object form.","required":["Name"],"properties":{"Name":{"description":"The name of an NSEV signing method","type":"string","example":"MailOtp:MailOtp","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.SigningMethods.items.[INDEX].Name","typeLabel":"string"},"KeyPair":{"description":"the name of the keypair to be used for signing, the default keypair will be used when null","type":"string","example":"MyKeyPair","uniqueKey":"Elements.items.[INDEX].oneOf.1.SigningMethods.items.[INDEX].KeyPair","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.1.SigningMethods.items.[INDEX]","typeLabel":"Signing method with key pair · object"},"description":"Deprecated as of NSEV v8.6.\nSet `SigningMethods` on the signer actor, or set the package's `DefaultSigningMethods`.\n\nThe signing methods that may be used to sign this signing field. Always supply an\narray, even for a single method. Each entry is an object with a `Name` and an optional\n`KeyPair`; a bare signing-method name string is also accepted as shorthand for\n`{ \"Name\": \"\u003cmethod>\" }`. When omitted, the package's `DefaultSigningMethods`\n(NSEV v8.5+) are applied to the field, except when the field is created on a signer that\nhas its own `SigningMethods` (NSEV v8.6+).\n","uniqueKey":"Elements.items.[INDEX].oneOf.1.SigningMethods","typeLabel":"Signing method with key pair · object[]"},"LegalNotice":{"oneOf":[{"type":"object","title":"Custom legal notice text","description":"An optional legal notice added to the signing field: text the signer must retype\nbefore signing. Supply either a custom `Text` or the `Name` of a notice configured\nin the Config Index. When using a long legal notice, size the signing field\naccordingly - a small field with a long notice can shrink the font until the text\nis unreadable.","properties":{"Text":{"description":"A custom legal notice the signer must retype before placing their signature. Use this\nwhen the notice is not one of the named notices configured in the Config Index. Write\nit in the same language as the package's documents. Legal notices are case-sensitive.","type":"string","maxLength":1000,"example":"Read and approved","uniqueKey":"Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.0.Text","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.0","typeLabel":"Custom legal notice text · object"},{"type":"object","title":"Named legal notice from Config Index","description":"An optional legal notice added to the signing field: text the signer must retype\nbefore signing. Supply either a custom `Text` or the `Name` of a notice configured\nin the Config Index. When using a long legal notice, size the signing field\naccordingly - a small field with a long notice can shrink the font until the text\nis unreadable.","properties":{"Name":{"description":"The name of a legal notice configured in the Config Index (for example `LegalNotice1`),\nwhose text is also set there. The language the notice is displayed in depends on the\nlanguage of the document. Use either `Name` or `Text`, not both.","type":"string","maxLength":20,"example":"LegalNotice1","uniqueKey":"Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.1.Name","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.1","typeLabel":"Named legal notice from Config Index · object"}],"uniqueKey":"Elements.items.[INDEX].oneOf.1.LegalNotice","typeLabel":"Custom legal notice text · object | Named legal notice from Config Index · object"}},"additionalProperties":false,"uniqueKey":"Elements.items.[INDEX].oneOf.1","typeLabel":"Signing field · object"},{"type":"object","title":"Check box field","description":"Parameters for creating a check box field","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["CheckBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.2.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.2.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Elements.items.[INDEX].oneOf.2.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Elements.items.[INDEX].oneOf.2.FieldId","typeLabel":"string"},"Name":{"type":"string","description":"The name of the form field. Must be unique per document. Only use `Name` when placing\nthe field by explicit location and dimensions or by marker; do not use it when\nreferencing an existing form field with `FieldId`.","uniqueKey":"Elements.items.[INDEX].oneOf.2.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field.","uniqueKey":"Elements.items.[INDEX].oneOf.2.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The text shown as a tooltip when the user hovers over the form field. When the\ndocument already contains a prefilled form field with a tooltip, leave this null to\navoid overwriting the original value.","uniqueKey":"Elements.items.[INDEX].oneOf.2.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the form field is mandatory. When true, the end user must complete it. When\nthe document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.","uniqueKey":"Elements.items.[INDEX].oneOf.2.IsRequired","typeLabel":"boolean"},"DefaultValue":{"type":"boolean","default":false,"description":"Whether the checkbox is checked by default. The end user can still change it. When\nthe document already contains a prefilled form field, leave this false to avoid\noverwriting the existing value. Defaults to false.","uniqueKey":"Elements.items.[INDEX].oneOf.2.DefaultValue","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"Elements.items.[INDEX].oneOf.2","typeLabel":"Check box field · object"},{"type":"object","title":"Text box field","description":"Parameters for creating a text box field","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["TextBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.3.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.3.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.3.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Elements.items.[INDEX].oneOf.3.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Elements.items.[INDEX].oneOf.3.FieldId","typeLabel":"string"},"Name":{"type":"string","description":"The name of the form field. Must be unique per document. Only use `Name` when placing\nthe field by explicit location and dimensions or by marker; do not use it when\nreferencing an existing form field with `FieldId`.","uniqueKey":"Elements.items.[INDEX].oneOf.3.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field.","uniqueKey":"Elements.items.[INDEX].oneOf.3.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The text shown as a tooltip when the user hovers over the form field. When the\ndocument already contains a prefilled form field with a tooltip, leave this null to\navoid overwriting the original value.","uniqueKey":"Elements.items.[INDEX].oneOf.3.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the form field is mandatory. When true, the end user must complete it. When\nthe document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.","uniqueKey":"Elements.items.[INDEX].oneOf.3.IsRequired","typeLabel":"boolean"},"DefaultValue":{"type":"string","description":"A value prefilled into the text box, which the end user can change. When the document\nalready contains a prefilled form field, leave this null to avoid overwriting the\nexisting value.","uniqueKey":"Elements.items.[INDEX].oneOf.3.DefaultValue","typeLabel":"string"},"IsMultiline":{"type":"boolean","default":false,"description":"Whether the text box accepts multiple lines. When true, the text box is scrollable.\nDefaults to false.","uniqueKey":"Elements.items.[INDEX].oneOf.3.IsMultiline","typeLabel":"boolean"},"CharLimit":{"oneOf":[{"type":"integer","description":"The maximum number of characters that may be entered in the text box.","uniqueKey":"Elements.items.[INDEX].oneOf.3.CharLimit.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The maximum number of characters that may be entered in the text box.","uniqueKey":"Elements.items.[INDEX].oneOf.3.CharLimit.oneOf.1","typeLabel":"null"}],"uniqueKey":"Elements.items.[INDEX].oneOf.3.CharLimit","typeLabel":"integer | null"},"InputType":{"title":"Text box input type","type":"string","description":"Available as of NSEV v8.5.\nA hint for how the text box is rendered. Defaults to `Text` when omitted. The hint does not\nconstrain `DefaultValue`, `IsMultiline` or `CharLimit` - the API applies no format\nvalidation based on it.\n","enum":["Text","Date","Time","DateTime","Number"],"uniqueKey":"Elements.items.[INDEX].oneOf.3.InputType","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"Elements.items.[INDEX].oneOf.3","typeLabel":"Text box field · object"},{"type":"object","title":"Radio group","description":"Parameters for creating a radio button group. Place the group in **one** of two ways:\n\n- **By coordinates** - supply `Options`, each button positioned by its own `Location` and `Dimensions`.\n- **On an existing PDF field** - supply `FieldId`.\n\nDo not combine the two. A radio group cannot be placed with a text marker. For the full\nrules see the [Field positioning guide](/nsev/build/guides/field-positioning).\n\nA radio group has no `DefaultValue`. To preselect an option, set `IsSelected` on it.\n","example":{"Type":"signingField"},"properties":{"Type":{"type":"string","description":"the type of element","enum":["RadioGroup"],"uniqueKey":"Elements.items.[INDEX].oneOf.4.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.4.ExternalReference","typeLabel":"string"},"Name":{"type":"string","description":"The name of the radio group. Must be unique per document. Do not use `Name` when\nreferencing an existing radio group with `FieldId`.","uniqueKey":"Elements.items.[INDEX].oneOf.4.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.4.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The tool tip label of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.4.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the radio group is mandatory. When true, the end user must select an option.\nWhen the document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.\n\nAs of NSEV v8.6, the first option of a required radio group is no longer selected\nfor you. An option starts selected only when you set its `IsSelected`, or, for a group placed\nwith `FieldId`, when the PDF field has it selected.","uniqueKey":"Elements.items.[INDEX].oneOf.4.IsRequired","typeLabel":"boolean"},"Options":{"type":"array","description":"The radio buttons in the group, each positioned by its own `Location` and `Dimensions`.\nSupply these to place the group by coordinates; omit when using `FieldId`.","items":{"type":"object","description":"Parameters for creating a radio button option","properties":{"Name":{"type":"string","description":"The name (choice value) of the radio button.","uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the radio button.","uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Label","typeLabel":"string"},"IsSelected":{"type":"boolean","description":"Whether this radio button is selected by default.","uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].IsSelected","typeLabel":"boolean"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Dimensions","typeLabel":"Element dimensions · object"}},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options","typeLabel":"object[]"},"FieldId":{"type":"string","description":"The name of an existing input field on the document. Supply this to place the group on\nan existing PDF field; omit when supplying `Options`. Recommended to do this at document\nupload time, because after a document conversion the field with this identifier may no longer\nexist.","uniqueKey":"Elements.items.[INDEX].oneOf.4.FieldId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"Elements.items.[INDEX].oneOf.4","typeLabel":"Radio group · object"},{"type":"object","title":"Combo box field","description":"Available as of NSEV v8.5.\nParameters for creating a combo box (dropdown) field. When `FieldId` references an\nexisting combo box in the PDF, the options come from that PDF field and `Options`\nmust not be provided; otherwise `Options` is required.\n","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["ComboBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.5.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.5.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Elements.items.[INDEX].oneOf.5.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Elements.items.[INDEX].oneOf.5.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Elements.items.[INDEX].oneOf.5.FieldId","typeLabel":"string"},"Name":{"type":"string","description":"The name of the form field. Must be unique per document. Only use `Name` when placing\nthe field by explicit location and dimensions or by marker; do not use it when\nreferencing an existing form field with `FieldId`.","uniqueKey":"Elements.items.[INDEX].oneOf.5.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field.","uniqueKey":"Elements.items.[INDEX].oneOf.5.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The text shown as a tooltip when the user hovers over the form field. When the\ndocument already contains a prefilled form field with a tooltip, leave this null to\navoid overwriting the original value.","uniqueKey":"Elements.items.[INDEX].oneOf.5.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the form field is mandatory. When true, the end user must complete it. When\nthe document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.","uniqueKey":"Elements.items.[INDEX].oneOf.5.IsRequired","typeLabel":"boolean"},"Options":{"type":"array","description":"The combo box options. Required unless `FieldId` is set, in which case the options come\nfrom the PDF field and this must not be provided. Option values (the `ExportValue`, or the\n`DisplayLabel` when no `ExportValue` is set) must be unique within the field.","items":{"title":"Combo box option","type":"object","description":"Available as of NSEV v8.5.\nA combo box option: the label shown to the end user and the value stored when it is selected.\n","required":["DisplayLabel"],"properties":{"DisplayLabel":{"type":"string","description":"The display label shown to the end user","maxLength":256,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Options.items.[INDEX].DisplayLabel","typeLabel":"string"},"ExportValue":{"type":"string","description":"The value stored when this option is selected. When omitted, the `DisplayLabel` is used as the value.","maxLength":256,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Options.items.[INDEX].ExportValue","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.5.Options.items.[INDEX]","typeLabel":"Combo box option · object"},"minItems":1,"maxItems":100,"uniqueKey":"Elements.items.[INDEX].oneOf.5.Options","typeLabel":"Combo box option · object[]"},"AllowCustomInput":{"type":"boolean","default":false,"description":"Whether the end user can type a custom value instead of selecting one of the options. Defaults to false.","uniqueKey":"Elements.items.[INDEX].oneOf.5.AllowCustomInput","typeLabel":"boolean"},"DefaultValue":{"type":"string","maxLength":2048,"description":"The value selected by default, which the end user can change. When `Options` are supplied,\nit must match the `ExportValue` (or the `DisplayLabel` when no `ExportValue` is set) of one\nof them, even when `AllowCustomInput` is true - and because option values are capped at 256\ncharacters, the effective maximum length is 256. When `FieldId` is set, the value is applied\nto the PDF-sourced options as-is; when omitted, the PDF field's own default is kept.","uniqueKey":"Elements.items.[INDEX].oneOf.5.DefaultValue","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"Elements.items.[INDEX].oneOf.5","typeLabel":"Combo box field · object"}],"uniqueKey":"Elements.items.[INDEX]","typeLabel":"Place an unplaced element · object | Signing field · object | Check box field · object | Text box field · object | Radio group · object | Combo box field · object"},"uniqueKey":"Elements","typeLabel":"(Place an unplaced element · object | Signing field · object | Check box field · object | Text box field · object | Radio group · object | Combo box field · object)[]"},"ProofCorrelationId":{"type":"string","deprecated":true,"description":"Id for correlating this document with other resources in the proofs system","uniqueKey":"ProofCorrelationId","typeLabel":"string"},"RepresentationOptions":{"type":"object","description":"Contains a document's base64 data and media type","required":["ContentType","Base64data"],"properties":{"Base64data":{"type":"string","description":"Attached document","format":"base64","nullable":false,"minLength":1,"maxLength":200000000,"isRequired":true,"uniqueKey":"RepresentationOptions.Base64data","typeLabel":"file"},"ContentType":{"type":"string","description":"The media type of a file","format":"mediaType","enum":["application/pdf"],"example":"application/pdf","isRequired":true,"uniqueKey":"RepresentationOptions.ContentType","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"RepresentationOptions","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"existing":{"title":"existing","summary":"PDF document (existing spec example)","value":{"Name":"string","Language":"en","ExternalReference":"string","Elements":[{"Type":"signingField","ExternalReference":"myManualField","Location":{"Page":1,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},{"Type":"signingField","ExternalReference":"myBeidField","FieldId":"signme","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}}],"ProofCorrelationId":"string","DocumentOptions":{"targetType":"application/pdf","pdfOptions":{"targetFormat":"pdfa1a"},"base64data":"string","contentType":"application/pdf"}}},"pdf-base64":{"title":"pdf-base64","summary":"PDF document with two signing fields (Base64, application/json)","value":{"Name":"string","Language":"en","ExternalReference":"string","Elements":[{"Type":"signingField","ExternalReference":"myManualField","Location":{"Page":1,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},{"Type":"signingField","ExternalReference":"myBeidField","FieldId":"signme","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}}],"ProofCorrelationId":"string","DocumentOptions":{"targetType":"application/pdf","pdfOptions":{"targetFormat":"pdfa1a"},"base64data":"string","contentType":"application/pdf"}}},"async-keep-signatures":{"title":"async-keep-signatures","summary":"Asynchronous upload preserving existing signatures and fields","value":{"name":"string","language":"en","externalReference":"string","documentOptions":{"targetType":"application/pdf","contentType":"application/pdf","pdfOptions":{"targetFormat":"pdf","pdfErrorHandling":"detectfixwarn"},"KeepSignatures":false,"KeepSigningFields":false,"KeepFormFields":false,"base64data":"string"}}}},"exampleType":"examples"},"multipart/form-data":{"schema":{"type":"object","required":["Document","Parameters"],"properties":{"Parameters":{"type":"object","description":"Parameters for creating a document","required":["Name","Language"],"properties":{"Name":{"type":"string","description":"Name of the document, displayed in the WebPortal. Do not include a file extension.\nThe name must not contain special characters such as slash, backslash, question\nmark, percent, asterisk, colon, pipe, single quote, double quote, less-than or\ngreater-than. When itsme is used as a signing method, restrict the name to\ncharacters supported by ISO 8859-15; some software-generated characters such as\ncurly apostrophes and long dashes are not supported.","minLength":1,"maxLength":150,"isRequired":true,"uniqueKey":"Parameters.Name","typeLabel":"string"},"Language":{"type":"string","description":"Language used in signature texts and in legal notices when an actor's\nLegalNoticeCode is set. Supported values: en, nl, de, fr, es, da, nb, sv, fi, lv,\npl, hu, it, pt, ro.","format":"languageCode","example":"en","isRequired":true,"uniqueKey":"Parameters.Language","typeLabel":"string\u003clanguageCode>"},"IsOptional":{"type":"boolean","default":false,"description":"Determines whether the document is optional. Default value is false. When set to\ntrue, actors may choose not to form fill/sign the document.","uniqueKey":"Parameters.IsOptional","typeLabel":"boolean"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.ExternalReference","typeLabel":"string"},"Elements":{"type":"array","description":"A list of elements (that aren't linked to an actor at once) on the created document","items":{"oneOf":[{"type":"object","title":"Place an unplaced element","description":"Parameters for placing an existing unplaced element, identified by `UnplacedElementId`.\nChoose **one** placement method and supply only its fields:\n\n- **Explicit coordinates** - supply `Location` and `Dimensions`.\n- **Text marker** - supply `Marker` (a code embedded in the document text).\n- **Radio group** - supply `Options`, each button positioned by its own `Location` and `Dimensions`\n (used when the unplaced element is a radio group, instead of `Location`/`Marker`).\n\nDo not combine methods. For the full rules and marker formats see the\n[Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["UnplacedElementId"],"example":{"Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"UnplacedElementId":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.UnplacedElementId","typeLabel":"string\u003cguid>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `Options`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `Options`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"description":"A piece of text inside the document where an element must be. It encodes the location\nand dimensions of the element. Omit when using `Location`/`Dimensions` or `Options`. Recommended\nto embed at document-upload time, because after document conversion the marker may no longer\nbe present. Its format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field. When placing an unplaced **combo box**, only the combo-box-specific `@id_DD_height_width#` form is accepted - the generic `@id_height_width#` marker is rejected for this element type.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Marker","typeLabel":"string"},"Options":{"description":"Radio-group buttons, each with a `Name`, `Location` and `Dimensions`. Supply this only\nwhen the unplaced element is a radio group; omit when using `Location`/`Dimensions` or `Marker`.","type":"array","items":{"type":"object","properties":{"Name":{"type":"string","description":"The name of the unplaced option","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Name","typeLabel":"string"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX].Dimensions","typeLabel":"Element dimensions · object"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0.Options","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.0","typeLabel":"Place an unplaced element · object"},{"type":"object","title":"Signing field","description":"Parameters for creating a signing field","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["SigningField"],"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.FieldId","typeLabel":"string"},"SigningMethods":{"type":"array","deprecated":true,"items":{"title":"Signing method with key pair","type":"object","description":"A signing method, optionally pinned to a key pair. In requests, a bare signing-method name\nstring is also accepted anywhere this object is expected, as shorthand for `{ \"Name\": \"\u003cmethod>\" }`.\nResponses always return the object form.","required":["Name"],"properties":{"Name":{"description":"The name of an NSEV signing method","type":"string","example":"MailOtp:MailOtp","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.SigningMethods.items.[INDEX].Name","typeLabel":"string"},"KeyPair":{"description":"the name of the keypair to be used for signing, the default keypair will be used when null","type":"string","example":"MyKeyPair","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.SigningMethods.items.[INDEX].KeyPair","typeLabel":"string"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.SigningMethods.items.[INDEX]","typeLabel":"Signing method with key pair · object"},"description":"Deprecated as of NSEV v8.6.\nSet `SigningMethods` on the signer actor, or set the package's `DefaultSigningMethods`.\n\nThe signing methods that may be used to sign this signing field. Always supply an\narray, even for a single method. Each entry is an object with a `Name` and an optional\n`KeyPair`; a bare signing-method name string is also accepted as shorthand for\n`{ \"Name\": \"\u003cmethod>\" }`. When omitted, the package's `DefaultSigningMethods`\n(NSEV v8.5+) are applied to the field, except when the field is created on a signer that\nhas its own `SigningMethods` (NSEV v8.6+).\n","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.SigningMethods","typeLabel":"Signing method with key pair · object[]"},"LegalNotice":{"oneOf":[{"type":"object","title":"Custom legal notice text","description":"An optional legal notice added to the signing field: text the signer must retype\nbefore signing. Supply either a custom `Text` or the `Name` of a notice configured\nin the Config Index. When using a long legal notice, size the signing field\naccordingly - a small field with a long notice can shrink the font until the text\nis unreadable.","properties":{"Text":{"description":"A custom legal notice the signer must retype before placing their signature. Use this\nwhen the notice is not one of the named notices configured in the Config Index. Write\nit in the same language as the package's documents. Legal notices are case-sensitive.","type":"string","maxLength":1000,"example":"Read and approved","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.0.Text","typeLabel":"string"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.0","typeLabel":"Custom legal notice text · object"},{"type":"object","title":"Named legal notice from Config Index","description":"An optional legal notice added to the signing field: text the signer must retype\nbefore signing. Supply either a custom `Text` or the `Name` of a notice configured\nin the Config Index. When using a long legal notice, size the signing field\naccordingly - a small field with a long notice can shrink the font until the text\nis unreadable.","properties":{"Name":{"description":"The name of a legal notice configured in the Config Index (for example `LegalNotice1`),\nwhose text is also set there. The language the notice is displayed in depends on the\nlanguage of the document. Use either `Name` or `Text`, not both.","type":"string","maxLength":20,"example":"LegalNotice1","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.1.Name","typeLabel":"string"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.LegalNotice.oneOf.1","typeLabel":"Named legal notice from Config Index · object"}],"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1.LegalNotice","typeLabel":"Custom legal notice text · object | Named legal notice from Config Index · object"}},"additionalProperties":false,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.1","typeLabel":"Signing field · object"},{"type":"object","title":"Check box field","description":"Parameters for creating a check box field","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["CheckBoxField"],"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.FieldId","typeLabel":"string"},"Name":{"type":"string","description":"The name of the form field. Must be unique per document. Only use `Name` when placing\nthe field by explicit location and dimensions or by marker; do not use it when\nreferencing an existing form field with `FieldId`.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The text shown as a tooltip when the user hovers over the form field. When the\ndocument already contains a prefilled form field with a tooltip, leave this null to\navoid overwriting the original value.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the form field is mandatory. When true, the end user must complete it. When\nthe document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.IsRequired","typeLabel":"boolean"},"DefaultValue":{"type":"boolean","default":false,"description":"Whether the checkbox is checked by default. The end user can still change it. When\nthe document already contains a prefilled form field, leave this false to avoid\noverwriting the existing value. Defaults to false.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2.DefaultValue","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.2","typeLabel":"Check box field · object"},{"type":"object","title":"Text box field","description":"Parameters for creating a text box field","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["TextBoxField"],"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.FieldId","typeLabel":"string"},"Name":{"type":"string","description":"The name of the form field. Must be unique per document. Only use `Name` when placing\nthe field by explicit location and dimensions or by marker; do not use it when\nreferencing an existing form field with `FieldId`.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The text shown as a tooltip when the user hovers over the form field. When the\ndocument already contains a prefilled form field with a tooltip, leave this null to\navoid overwriting the original value.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the form field is mandatory. When true, the end user must complete it. When\nthe document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.IsRequired","typeLabel":"boolean"},"DefaultValue":{"type":"string","description":"A value prefilled into the text box, which the end user can change. When the document\nalready contains a prefilled form field, leave this null to avoid overwriting the\nexisting value.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.DefaultValue","typeLabel":"string"},"IsMultiline":{"type":"boolean","default":false,"description":"Whether the text box accepts multiple lines. When true, the text box is scrollable.\nDefaults to false.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.IsMultiline","typeLabel":"boolean"},"CharLimit":{"oneOf":[{"type":"integer","description":"The maximum number of characters that may be entered in the text box.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.CharLimit.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The maximum number of characters that may be entered in the text box.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.CharLimit.oneOf.1","typeLabel":"null"}],"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.CharLimit","typeLabel":"integer | null"},"InputType":{"title":"Text box input type","type":"string","description":"Available as of NSEV v8.5.\nA hint for how the text box is rendered. Defaults to `Text` when omitted. The hint does not\nconstrain `DefaultValue`, `IsMultiline` or `CharLimit` - the API applies no format\nvalidation based on it.\n","enum":["Text","Date","Time","DateTime","Number"],"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3.InputType","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.3","typeLabel":"Text box field · object"},{"type":"object","title":"Radio group","description":"Parameters for creating a radio button group. Place the group in **one** of two ways:\n\n- **By coordinates** - supply `Options`, each button positioned by its own `Location` and `Dimensions`.\n- **On an existing PDF field** - supply `FieldId`.\n\nDo not combine the two. A radio group cannot be placed with a text marker. For the full\nrules see the [Field positioning guide](/nsev/build/guides/field-positioning).\n\nA radio group has no `DefaultValue`. To preselect an option, set `IsSelected` on it.\n","example":{"Type":"signingField"},"properties":{"Type":{"type":"string","description":"the type of element","enum":["RadioGroup"],"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.ExternalReference","typeLabel":"string"},"Name":{"type":"string","description":"The name of the radio group. Must be unique per document. Do not use `Name` when\nreferencing an existing radio group with `FieldId`.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The tool tip label of the form field","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the radio group is mandatory. When true, the end user must select an option.\nWhen the document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.\n\nAs of NSEV v8.6, the first option of a required radio group is no longer selected\nfor you. An option starts selected only when you set its `IsSelected`, or, for a group placed\nwith `FieldId`, when the PDF field has it selected.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.IsRequired","typeLabel":"boolean"},"Options":{"type":"array","description":"The radio buttons in the group, each positioned by its own `Location` and `Dimensions`.\nSupply these to place the group by coordinates; omit when using `FieldId`.","items":{"type":"object","description":"Parameters for creating a radio button option","properties":{"Name":{"type":"string","description":"The name (choice value) of the radio button.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the radio button.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Label","typeLabel":"string"},"IsSelected":{"type":"boolean","description":"Whether this radio button is selected by default.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].IsSelected","typeLabel":"boolean"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].Dimensions","typeLabel":"Element dimensions · object"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.Options","typeLabel":"object[]"},"FieldId":{"type":"string","description":"The name of an existing input field on the document. Supply this to place the group on\nan existing PDF field; omit when supplying `Options`. Recommended to do this at document\nupload time, because after a document conversion the field with this identifier may no longer\nexist.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4.FieldId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.4","typeLabel":"Radio group · object"},{"type":"object","title":"Combo box field","description":"Available as of NSEV v8.5.\nParameters for creating a combo box (dropdown) field. When `FieldId` references an\nexisting combo box in the PDF, the options come from that PDF field and `Options`\nmust not be provided; otherwise `Options` is required.\n","required":["Type"],"example":{"Type":"signingField","Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}},"properties":{"Type":{"type":"string","description":"the type of element","enum":["ComboBoxField"],"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Type","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.ExternalReference","typeLabel":"string"},"Location":{"type":"object","description":"Explicit placement. Supply together with `Dimensions`. Omit when using `Marker` or `FieldId`.","required":["Page","Left","Top"],"example":{"Page":2,"Top":200,"Left":200},"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Location.Left","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Location","typeLabel":"object"},"Dimensions":{"type":"object","title":"Element dimensions","description":"Size in points. Supply together with `Location`. Omit when using `Marker` or `FieldId`.","required":["Width","Height"],"example":{"Width":200,"Height":200},"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Dimensions","typeLabel":"Element dimensions · object"},"Marker":{"type":"string","pattern":"^[#@][a-zA-Z]+(?:\\d*\\.)?\\d+(?:_(?:TB_|CB_|DD_)?(?:\\d*\\.)?\\d+_(?:\\d*\\.)?\\d+#)?$","description":"A piece of text inside the document marking where the element must be placed; it encodes the element's location and dimensions. Omit when using `Location`/`Dimensions` or `FieldId`. Recommended to embed at document-upload time, because after document conversion the marker may no longer be present. The format depends on the element type:\n\n- **SigningField** - a `#`-prefixed text marker `#id_height_width#` (for example `#SIG01_50_120#`), or a `#`-prefixed PDF field id `#id` that names an existing signature field.\n- **Form fields** (TextBoxField, CheckBoxField, ComboBoxField) - an `@`-prefixed text marker `@id_height_width#`, with `@id_TB_height_width#` for a text box, `@id_CB_height_width#` for a check box and `@id_DD_height_width#` for a combo box (NSEV v8.5+), or a `@`-prefixed PDF field id `@id` that names an existing form field.\n- **RadioGroup** cannot be placed with a text marker; use Options instead.\n\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Marker","typeLabel":"string"},"FieldId":{"type":"string","description":"The name of an existing form field in the uploaded document to attach this element to; must be unique within the document. Omit when using `Location`/`Dimensions` or `Marker`. Recommended to do this at document-upload time, because after document conversion the field may no longer exist.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.FieldId","typeLabel":"string"},"Name":{"type":"string","description":"The name of the form field. Must be unique per document. Only use `Name` when placing\nthe field by explicit location and dimensions or by marker; do not use it when\nreferencing an existing form field with `FieldId`.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The text shown as a tooltip when the user hovers over the form field. When the\ndocument already contains a prefilled form field with a tooltip, leave this null to\navoid overwriting the original value.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","default":false,"description":"Whether the form field is mandatory. When true, the end user must complete it. When\nthe document already contains a prefilled form field, leave this null to avoid\noverwriting the original value. Defaults to false.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.IsRequired","typeLabel":"boolean"},"Options":{"type":"array","description":"The combo box options. Required unless `FieldId` is set, in which case the options come\nfrom the PDF field and this must not be provided. Option values (the `ExportValue`, or the\n`DisplayLabel` when no `ExportValue` is set) must be unique within the field.","items":{"title":"Combo box option","type":"object","description":"Available as of NSEV v8.5.\nA combo box option: the label shown to the end user and the value stored when it is selected.\n","required":["DisplayLabel"],"properties":{"DisplayLabel":{"type":"string","description":"The display label shown to the end user","maxLength":256,"isRequired":true,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Options.items.[INDEX].DisplayLabel","typeLabel":"string"},"ExportValue":{"type":"string","description":"The value stored when this option is selected. When omitted, the `DisplayLabel` is used as the value.","maxLength":256,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Options.items.[INDEX].ExportValue","typeLabel":"string"}},"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Options.items.[INDEX]","typeLabel":"Combo box option · object"},"minItems":1,"maxItems":100,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.Options","typeLabel":"Combo box option · object[]"},"AllowCustomInput":{"type":"boolean","default":false,"description":"Whether the end user can type a custom value instead of selecting one of the options. Defaults to false.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.AllowCustomInput","typeLabel":"boolean"},"DefaultValue":{"type":"string","maxLength":2048,"description":"The value selected by default, which the end user can change. When `Options` are supplied,\nit must match the `ExportValue` (or the `DisplayLabel` when no `ExportValue` is set) of one\nof them, even when `AllowCustomInput` is true - and because option values are capped at 256\ncharacters, the effective maximum length is 256. When `FieldId` is set, the value is applied\nto the PDF-sourced options as-is; when omitted, the PDF field's own default is kept.","uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5.DefaultValue","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"Parameters.Elements.items.[INDEX].oneOf.5","typeLabel":"Combo box field · object"}],"uniqueKey":"Parameters.Elements.items.[INDEX]","typeLabel":"Place an unplaced element · object | Signing field · object | Check box field · object | Text box field · object | Radio group · object | Combo box field · object"},"uniqueKey":"Parameters.Elements","typeLabel":"(Place an unplaced element · object | Signing field · object | Check box field · object | Text box field · object | Radio group · object | Combo box field · object)[]"},"ProofCorrelationId":{"type":"string","deprecated":true,"description":"Id for correlating this document with other resources in the proofs system","uniqueKey":"Parameters.ProofCorrelationId","typeLabel":"string"},"DocumentOptions":{"type":"object","description":"Document actions to be performed on Draft document with IsActionNeeded flag set to true.","properties":{"TargetType":{"type":"string","description":"The media type the document will be converted to. Only takes effect when the\nserver is configured for document conversion.","enum":["application/pdf","application/xml"],"uniqueKey":"Parameters.DocumentOptions.TargetType","typeLabel":"enum\u003cstring>"},"PdfOptions":{"type":"object","description":"Optional PDF conversion and validation parameters. Only applies when the target\ntype is application/pdf.","properties":{"TargetFormat":{"type":"string","description":"The targetFormat defines if an extra conversion needs to be done","enum":["pdf","pdfa1a","pdfa2a"],"example":"pdfa1a","uniqueKey":"Parameters.DocumentOptions.PdfOptions.TargetFormat","typeLabel":"enum\u003cstring>"},"PdfErrorHandling":{"type":"string","description":"How to deal with PDFs containing minor flaws","enum":["Ignore","DetectWarn","DetectFail","DetectFixWarn","DetectFixFail"],"uniqueKey":"Parameters.DocumentOptions.PdfOptions.PdfErrorHandling","typeLabel":"enum\u003cstring>"}},"uniqueKey":"Parameters.DocumentOptions.PdfOptions","typeLabel":"object"},"KeepSignatures":{"type":"boolean","description":"When true, existing signatures detected in the document are applied to the document\nfile. Default is false. Cannot be true at the same time as KeepFormFields.","default":false,"uniqueKey":"Parameters.DocumentOptions.KeepSignatures","typeLabel":"boolean"},"KeepSigningFields":{"type":"boolean","description":"When true, detected signing field markers are converted to actual signing fields.\nDefault is false.","default":false,"uniqueKey":"Parameters.DocumentOptions.KeepSigningFields","typeLabel":"boolean"},"KeepFormFields":{"type":"boolean","description":"When true, detected form field markers are converted to actual form fields.\nDefault is false. Cannot be true at the same time as KeepSignatures.","default":false,"uniqueKey":"Parameters.DocumentOptions.KeepFormFields","typeLabel":"boolean"}},"uniqueKey":"Parameters.DocumentOptions","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"Parameters","typeLabel":"object"},"Document":{"description":"Multipart attached document","type":"string","format":"binary","isRequired":true,"uniqueKey":"Document","typeLabel":"file"},"Representation":{"description":"Multipart attached representation","type":"string","format":"binary","uniqueKey":"Representation","typeLabel":"file"}},"uniqueKey":"","typeLabel":"object"},"encoding":{"document":{"contentType":"application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/pdf, text/plain, application/xml"},"representation":{"contentType":"application/pdf"}},"examples":{"Example":{"title":"Example","value":{"Parameters":{"Name":"\u003cstring>","Language":"en","IsOptional":false,"ExternalReference":"\u003cstring>","Elements":[{"Location":{"Page":2,"Top":200,"Left":200},"Dimensions":{"Width":200,"Height":200}}],"ProofCorrelationId":"\u003cstring>","DocumentOptions":{"PdfOptions":{"TargetFormat":"pdfa1a"},"KeepSignatures":false,"KeepSigningFields":false,"KeepFormFields":false}},"Document":"\u003cstring>","Representation":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"examples"},"responses":{"1c234c3a-4347-46ff-bdfa-43f9b16cff21":{"description":"Document was created","headers":{"Location":{"description":"Location of the newly created document","schema":{"type":"string","format":"url"}}},"content":{"application/json":{"schema":{"type":"object","description":"A single document","additionalProperties":false,"properties":{"Id":{"type":"string","title":"GUID","description":"A document's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Id","typeLabel":"string\u003cguid>"},"PackageId":{"type":"string","title":"GUID","description":"A package's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"PackageId","typeLabel":"string\u003cguid>"},"Name":{"type":"string","nullable":false,"description":"Name of the document","minLength":1,"maxLength":150,"example":"example document","uniqueKey":"Name","typeLabel":"string"},"CreationDate":{"type":"string","format":"date-time","description":"When the resource was created","uniqueKey":"CreationDate","typeLabel":"string\u003cdate-time>"},"MediaType":{"type":"string","description":"The media type of a file","format":"mediaType","enum":["application/pdf","application/xml"],"example":"application/pdf","uniqueKey":"MediaType","typeLabel":"enum\u003cstring>"},"Language":{"type":"string","format":"languageCode","description":"A country's 2 letter ISO code (ISO 639-1)","example":"en","uniqueKey":"Language","typeLabel":"string\u003clanguageCode>"},"Status":{"type":"string","description":"The status of a document","enum":["Draft","Pending","InProgress","Ending","Finished","Rejected","Revoked","Expired","Failed","Processing","ProcessingFailed"],"uniqueKey":"Status","typeLabel":"enum\u003cstring>"},"Elements":{"type":"array","description":"The document's elements","items":{"oneOf":[{"type":"object","title":"Signing field","description":"A field that can be signed by an actor","required":["Type"],"properties":{"Type":{"type":"string","description":"The type of element - the discriminator across the element variants.\nThe `ComboBoxField` value is available as of NSEV v8.5.\n","nullable":false,"enum":["SigningField","TextBoxField","CheckBoxField","RadioGroup","ComboBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Type","typeLabel":"enum\u003cstring>"},"Id":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.0.Id","typeLabel":"string\u003cguid>"},"ActorId":{"type":"string","title":"GUID","description":"Is null when no actor has been assigned to this field yet","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.0.ActorId","typeLabel":"string\u003cguid>"},"Status":{"type":"string","description":"The status of a document element","enum":["Pending","InProgress","Rejected","Failed","Finished","Refused"],"uniqueKey":"Elements.items.[INDEX].oneOf.0.Status","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.0.ExternalReference","typeLabel":"string"},"CompletedDate":{"type":"string","format":"dateTime","uniqueKey":"Elements.items.[INDEX].oneOf.0.CompletedDate","typeLabel":"string\u003cdateTime>"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Location","typeLabel":"object"},"UsedSigningMethod":{"type":"string","description":"The signingmethod that was used to sign this signingfield","uniqueKey":"Elements.items.[INDEX].oneOf.0.UsedSigningMethod","typeLabel":"string"},"SigningMethods":{"type":"array","description":"The signing methods that may be used to sign this signing field. For a signing field assigned to a signer, as of NSEV v8.6 this lists the signer's signing methods, so it can list more methods than were set on the field; `KeyPairMappings` follows the same rule. Packages sent before NSEV v8.6 show the field's own methods.","items":{"title":"Signing method name","type":"string","description":"An NSEV signing method","example":"manual","uniqueKey":"Elements.items.[INDEX].oneOf.0.SigningMethods.items.[INDEX]","typeLabel":"string"},"uniqueKey":"Elements.items.[INDEX].oneOf.0.SigningMethods","typeLabel":"string[]"},"KeyPairMappings":{"type":"array","items":{"type":"object","description":"A mapping between signing method and the keypair to be used for signing with this method. If a signing method is not mentioned in this list, then the default keypair will be used when signing","properties":{"SigningMethodName":{"description":"The name of an NSEV signing method","type":"string","example":"MailOtp:MailOtp","uniqueKey":"Elements.items.[INDEX].oneOf.0.KeyPairMappings.items.[INDEX].SigningMethodName","typeLabel":"string"},"KeyPair":{"description":"The name of the keypair that is used for signing if the corresponding signing method is chosen","type":"string","example":"MyKeyPair","uniqueKey":"Elements.items.[INDEX].oneOf.0.KeyPairMappings.items.[INDEX].KeyPair","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.0.KeyPairMappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"Elements.items.[INDEX].oneOf.0.KeyPairMappings","typeLabel":"object[]"},"LegalNotice":{"title":"Custom legal notice text","type":"object","properties":{"Text":{"description":"A custom legal notice the signer must retype before placing their signature. Use this\nwhen the notice is not one of the named notices configured in the Config Index. Write\nit in the same language as the package's documents. Legal notices are case-sensitive.","type":"string","maxLength":1000,"example":"Read and approved","uniqueKey":"Elements.items.[INDEX].oneOf.0.LegalNotice.Text","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.0.LegalNotice","typeLabel":"Custom legal notice text · object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.0.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.0.Dimensions","typeLabel":"Element dimensions · object"}},"uniqueKey":"Elements.items.[INDEX].oneOf.0","typeLabel":"Signing field · object"},{"type":"object","title":"Check box field","description":"Parameters for creating a check box field","required":["Type"],"properties":{"Type":{"type":"string","description":"The type of element - the discriminator across the element variants.\nThe `ComboBoxField` value is available as of NSEV v8.5.\n","nullable":false,"enum":["SigningField","TextBoxField","CheckBoxField","RadioGroup","ComboBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Type","typeLabel":"enum\u003cstring>"},"Id":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.1.Id","typeLabel":"string\u003cguid>"},"ActorId":{"type":"string","title":"GUID","description":"Is null when no actor has been assigned to this field yet","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.1.ActorId","typeLabel":"string\u003cguid>"},"Status":{"type":"string","description":"The status of a document element","enum":["Pending","InProgress","Rejected","Failed","Finished","Refused"],"uniqueKey":"Elements.items.[INDEX].oneOf.1.Status","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.1.ExternalReference","typeLabel":"string"},"CompletedDate":{"type":"string","format":"dateTime","uniqueKey":"Elements.items.[INDEX].oneOf.1.CompletedDate","typeLabel":"string\u003cdateTime>"},"Name":{"type":"string","description":"The name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.1.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.1.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The tool tip label of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.1.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","description":"Is the form field required","uniqueKey":"Elements.items.[INDEX].oneOf.1.IsRequired","typeLabel":"boolean"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.1.Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.1.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.1.Dimensions","typeLabel":"Element dimensions · object"},"DefaultValue":{"type":"boolean","description":"Is the check box field checked by default","uniqueKey":"Elements.items.[INDEX].oneOf.1.DefaultValue","typeLabel":"boolean"},"Checked":{"type":"boolean","description":"The value of the completed check box field","uniqueKey":"Elements.items.[INDEX].oneOf.1.Checked","typeLabel":"boolean"}},"uniqueKey":"Elements.items.[INDEX].oneOf.1","typeLabel":"Check box field · object"},{"type":"object","title":"Text box field","description":"Parameters for creating a text box field","required":["Type"],"properties":{"Type":{"type":"string","description":"The type of element - the discriminator across the element variants.\nThe `ComboBoxField` value is available as of NSEV v8.5.\n","nullable":false,"enum":["SigningField","TextBoxField","CheckBoxField","RadioGroup","ComboBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Type","typeLabel":"enum\u003cstring>"},"Id":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.2.Id","typeLabel":"string\u003cguid>"},"ActorId":{"type":"string","title":"GUID","description":"Is null when no actor has been assigned to this field yet","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.2.ActorId","typeLabel":"string\u003cguid>"},"Status":{"type":"string","description":"The status of a document element","enum":["Pending","InProgress","Rejected","Failed","Finished","Refused"],"uniqueKey":"Elements.items.[INDEX].oneOf.2.Status","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.2.ExternalReference","typeLabel":"string"},"CompletedDate":{"type":"string","format":"dateTime","uniqueKey":"Elements.items.[INDEX].oneOf.2.CompletedDate","typeLabel":"string\u003cdateTime>"},"Name":{"type":"string","description":"The name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.2.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.2.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The tool tip label of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.2.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","description":"Is the form field required","uniqueKey":"Elements.items.[INDEX].oneOf.2.IsRequired","typeLabel":"boolean"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.2.Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.2.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.2.Dimensions","typeLabel":"Element dimensions · object"},"DefaultValue":{"type":"string","description":"The template for default value of the text box","uniqueKey":"Elements.items.[INDEX].oneOf.2.DefaultValue","typeLabel":"string"},"IsMultiline":{"type":"boolean","description":"Defines if the text box field should be multiline","uniqueKey":"Elements.items.[INDEX].oneOf.2.IsMultiline","typeLabel":"boolean"},"CharLimit":{"oneOf":[{"type":"integer","description":"Limits the number of characters on the text box field","uniqueKey":"Elements.items.[INDEX].oneOf.2.CharLimit.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Limits the number of characters on the text box field","uniqueKey":"Elements.items.[INDEX].oneOf.2.CharLimit.oneOf.1","typeLabel":"null"}],"uniqueKey":"Elements.items.[INDEX].oneOf.2.CharLimit","typeLabel":"integer | null"},"InputType":{"title":"Text box input type","type":"string","description":"Available as of NSEV v8.5.\nA hint for how the text box is rendered. Defaults to `Text` when omitted. The hint does not\nconstrain `DefaultValue`, `IsMultiline` or `CharLimit` - the API applies no format\nvalidation based on it.\n","enum":["Text","Date","Time","DateTime","Number"],"uniqueKey":"Elements.items.[INDEX].oneOf.2.InputType","typeLabel":"enum\u003cstring>"},"Value":{"type":"string","description":"The value of the completed text box field","uniqueKey":"Elements.items.[INDEX].oneOf.2.Value","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.2","typeLabel":"Text box field · object"},{"type":"object","title":"Radio group","description":"Parameters for creating a radio button group","required":["Type"],"properties":{"Type":{"type":"string","description":"The type of element - the discriminator across the element variants.\nThe `ComboBoxField` value is available as of NSEV v8.5.\n","nullable":false,"enum":["SigningField","TextBoxField","CheckBoxField","RadioGroup","ComboBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Type","typeLabel":"enum\u003cstring>"},"Id":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.3.Id","typeLabel":"string\u003cguid>"},"ActorId":{"type":"string","title":"GUID","description":"Is null when no actor has been assigned to this field yet","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.3.ActorId","typeLabel":"string\u003cguid>"},"Status":{"type":"string","description":"The status of a document element","enum":["Pending","InProgress","Rejected","Failed","Finished","Refused"],"uniqueKey":"Elements.items.[INDEX].oneOf.3.Status","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.3.ExternalReference","typeLabel":"string"},"CompletedDate":{"type":"string","format":"dateTime","uniqueKey":"Elements.items.[INDEX].oneOf.3.CompletedDate","typeLabel":"string\u003cdateTime>"},"Name":{"type":"string","description":"The name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.3.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.3.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The tool tip label of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.3.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","description":"Is the form field required","uniqueKey":"Elements.items.[INDEX].oneOf.3.IsRequired","typeLabel":"boolean"},"Selected":{"type":"string","description":"The name of selected option","uniqueKey":"Elements.items.[INDEX].oneOf.3.Selected","typeLabel":"string"},"Options":{"type":"array","description":"The radio button group Options","items":{"type":"object","description":"Parameters for creating a radio button option","properties":{"Name":{"type":"string","description":"The name/choice of the option","uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the option","uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Label","typeLabel":"string"},"IsSelected":{"type":"boolean","description":"Is the option pre-selected","uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].IsSelected","typeLabel":"boolean"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX].Dimensions","typeLabel":"Element dimensions · object"}},"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"Elements.items.[INDEX].oneOf.3.Options","typeLabel":"object[]"}},"uniqueKey":"Elements.items.[INDEX].oneOf.3","typeLabel":"Radio group · object"},{"type":"object","title":"Combo box field","description":"Available as of NSEV v8.5.\nA combo box (dropdown) field.\n","required":["Type"],"properties":{"Type":{"type":"string","description":"The type of element - the discriminator across the element variants.\nThe `ComboBoxField` value is available as of NSEV v8.5.\n","nullable":false,"enum":["SigningField","TextBoxField","CheckBoxField","RadioGroup","ComboBoxField"],"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Type","typeLabel":"enum\u003cstring>"},"Id":{"type":"string","title":"GUID","description":"An element's unique identifier","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.4.Id","typeLabel":"string\u003cguid>"},"ActorId":{"type":"string","title":"GUID","description":"Is null when no actor has been assigned to this field yet","format":"guid","example":"00000000-0000-0000-0000-000000000000","uniqueKey":"Elements.items.[INDEX].oneOf.4.ActorId","typeLabel":"string\u003cguid>"},"Status":{"type":"string","description":"The status of a document element","enum":["Pending","InProgress","Rejected","Failed","Finished","Refused"],"uniqueKey":"Elements.items.[INDEX].oneOf.4.Status","typeLabel":"enum\u003cstring>"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"Elements.items.[INDEX].oneOf.4.ExternalReference","typeLabel":"string"},"CompletedDate":{"type":"string","format":"dateTime","uniqueKey":"Elements.items.[INDEX].oneOf.4.CompletedDate","typeLabel":"string\u003cdateTime>"},"Name":{"type":"string","description":"The name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.4.Name","typeLabel":"string"},"Label":{"type":"string","description":"The label or alternative name of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.4.Label","typeLabel":"string"},"ToolTipLabel":{"type":"string","description":"The tool tip label of the form field","uniqueKey":"Elements.items.[INDEX].oneOf.4.ToolTipLabel","typeLabel":"string"},"IsRequired":{"type":"boolean","description":"Is the form field required","uniqueKey":"Elements.items.[INDEX].oneOf.4.IsRequired","typeLabel":"boolean"},"Location":{"type":"object","description":"where an element is placed","required":["Page","Left","Top"],"properties":{"Page":{"type":"integer","description":"The page of the document the element is placed on. Pages are 1-based: 1 is the first page; 0 must not be used. To count from the end, use negative integers: -1 is the last page, -2 the second-to-last, and so on.","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Location.Page","typeLabel":"integer"},"Top":{"type":"number","format":"float","minimum":0,"description":"how far from the top edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Location.Top","typeLabel":"number\u003cfloat>"},"Left":{"type":"number","format":"float","minimum":0,"description":"how far from the left edge of the document this is placed","isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Location.Left","typeLabel":"number\u003cfloat>"}},"example":{"Page":2,"Top":200,"Left":200},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Location","typeLabel":"object"},"Dimensions":{"title":"Element dimensions","type":"object","description":"The size of an element in points. The minimum width and height depend on the element\ntype - a signing field must be at least 50 × 30, other elements at least 10 × 10.\nSee the [Field positioning guide](/nsev/build/guides/field-positioning).\n","required":["Width","Height"],"properties":{"Width":{"type":"number","format":"float","description":"width of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Dimensions.Width","typeLabel":"number\u003cfloat>"},"Height":{"type":"number","format":"float","description":"height of the element","maximum":999999,"isRequired":true,"uniqueKey":"Elements.items.[INDEX].oneOf.4.Dimensions.Height","typeLabel":"number\u003cfloat>"}},"example":{"Width":200,"Height":200},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Dimensions","typeLabel":"Element dimensions · object"},"Options":{"type":"array","description":"The combo box options","items":{"title":"Combo box option (result)","type":"object","description":"Available as of NSEV v8.5.\nA combo box option in a response.\n","properties":{"DisplayLabel":{"type":"string","description":"The display label shown to the end user","uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].DisplayLabel","typeLabel":"string"},"ExportValue":{"type":"string","description":"The value stored when this option is selected","uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX].ExportValue","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options.items.[INDEX]","typeLabel":"Combo box option (result) · object"},"uniqueKey":"Elements.items.[INDEX].oneOf.4.Options","typeLabel":"Combo box option (result) · object[]"},"AllowCustomInput":{"type":"boolean","description":"Whether the end user can type a custom value instead of selecting one of the options","uniqueKey":"Elements.items.[INDEX].oneOf.4.AllowCustomInput","typeLabel":"boolean"},"IsOverridable":{"type":"boolean","description":"Whether the options can be modified. False when they are sourced from an existing PDF form\nfield - via `FieldId` or a `@id` PDF-field marker; true for fields created with request-supplied\noptions.","uniqueKey":"Elements.items.[INDEX].oneOf.4.IsOverridable","typeLabel":"boolean"},"Value":{"type":"string","description":"The value of the completed combo box field","uniqueKey":"Elements.items.[INDEX].oneOf.4.Value","typeLabel":"string"},"DefaultValue":{"type":"string","description":"The export value selected by default","uniqueKey":"Elements.items.[INDEX].oneOf.4.DefaultValue","typeLabel":"string"}},"uniqueKey":"Elements.items.[INDEX].oneOf.4","typeLabel":"Combo box field · object"}],"uniqueKey":"Elements.items.[INDEX]","typeLabel":"Signing field · object | Check box field · object | Text box field · object | Radio group · object | Combo box field · object"},"uniqueKey":"Elements","typeLabel":"(Signing field · object | Check box field · object | Text box field · object | Radio group · object | Combo box field · object)[]"},"ExternalReference":{"type":"string","maxLength":256,"description":"External reference to this resource set by the calling application. NSEV\ndoes not use this value itself. When filtering packages, this matches the\npackage-level external reference only, not document or field references.","uniqueKey":"ExternalReference","typeLabel":"string"},"ProofCorrelationId":{"type":"string","deprecated":true,"description":"Id for correlating with other resources in the proofs system","uniqueKey":"ProofCorrelationId","typeLabel":"string"},"OrderIndex":{"type":"integer","description":"The Order Index of the document.","uniqueKey":"OrderIndex","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"Id":"00000000-0000-0000-0000-000000000000","PackageId":"00000000-0000-0000-0000-000000000000","Name":"example document","CreationDate":"2023-11-07T05:31:56Z","MediaType":"application/pdf","Language":"en","Status":"Draft","Elements":[{"Type":"SigningField","Id":"00000000-0000-0000-0000-000000000000","ActorId":"00000000-0000-0000-0000-000000000000","Status":"Pending","ExternalReference":"\u003cstring>","CompletedDate":"\u003cstring>","Location":{"Page":2,"Top":200,"Left":200},"UsedSigningMethod":"\u003cstring>","SigningMethods":["manual"],"KeyPairMappings":[{"SigningMethodName":"MailOtp:MailOtp","KeyPair":"MyKeyPair"}],"LegalNotice":{"Text":"Read and approved"},"Dimensions":{"Width":200,"Height":200}}],"ExternalReference":"\u003cstring>","ProofCorrelationId":"\u003cstring>","OrderIndex":123}}},"exampleType":"generated"}},"exampleType":"generated"},"31eaaee5-0222-462d-8a47-cf7c4f01edea":{"description":"Accepted, the document will be processed asynchronously","headers":{"Location":{"description":"The package information location","schema":{"type":"string","format":"url"}}},"content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"b650f41c-3967-4318-8a95-c8eea7df7fdf":{"description":"Request failed validation","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","title":"Validation error","description":"Request failed validation","example":{"ErrorCode":"Name.MinimumLength:6","ErrorMessage":"The minimum length for a name is 6"},"properties":{"ErrorCode":{"type":"string","description":"An error code of something that went wrong, in the form of 'Subject.Error:value'","uniqueKey":"items.[INDEX].ErrorCode","typeLabel":"string"},"ErrorMessage":{"type":"string","description":"A human-readable explanation of what went wrong","uniqueKey":"items.[INDEX].ErrorMessage","typeLabel":"string"}},"uniqueKey":"items.[INDEX]","typeLabel":"Validation error · object"},"uniqueKey":"","typeLabel":"Validation error · object[]"},"examples":{"Example":{"title":"Example","value":[{"ErrorCode":"Name.MinimumLength:6","ErrorMessage":"The minimum length for a name is 6"}]}},"exampleType":"generated"}},"exampleType":"generated"},"c0bbd784-55a7-4fd7-b2f4-73fe09089909":{"description":"Caller is unauthorized to perform this operation","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"3d9b4195-fa46-43e3-8038-21229707816d":{"description":"Package could not be found","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","title":"Package not found","description":"The resource could not be found","example":{"ErrorCode":"Package.NotFound:00000000-0000-0000-0000-000000000000","ErrorMessage":"The package with id '00000000-0000-0000-0000-000000000000' could not be found"},"properties":{"ErrorCode":{"type":"string","description":"An error code of something that went wrong, in the form of 'Subject.Error:value'","uniqueKey":"items.[INDEX].ErrorCode","typeLabel":"string"},"ErrorMessage":{"type":"string","description":"A human-readable explanation of what went wrong","uniqueKey":"items.[INDEX].ErrorMessage","typeLabel":"string"}},"uniqueKey":"items.[INDEX]","typeLabel":"Package not found · object"},"uniqueKey":"","typeLabel":"Package not found · object[]"},"examples":{"Example":{"title":"Example","value":[{"ErrorCode":"Package.NotFound:00000000-0000-0000-0000-000000000000","ErrorMessage":"The package with id '00000000-0000-0000-0000-000000000000' could not be found"}]}},"exampleType":"generated"}},"exampleType":"generated"},"aeb90426-e95d-454a-8c1d-f9f9f0d25ee6":{"description":"Document could not be added to the package","content":{"application/json":{"schema":{"type":"array","items":{"title":"Error","type":"object","description":"Something that went wrong","example":{"ErrorCode":"Something.WentWrong","ErrorMessage":"Something went wrong"},"properties":{"ErrorCode":{"type":"string","description":"An error code of something that went wrong, in the form of 'Subject.Error:value'","uniqueKey":"items.[INDEX].ErrorCode","typeLabel":"string"},"ErrorMessage":{"type":"string","description":"A human-readable explanation of what went wrong","uniqueKey":"items.[INDEX].ErrorMessage","typeLabel":"string"}},"uniqueKey":"items.[INDEX]","typeLabel":"Error · object"},"uniqueKey":"","typeLabel":"Error · object[]"},"examples":{"Example":{"title":"Example","value":[{"ErrorCode":"Something.WentWrong","ErrorMessage":"Something went wrong"}]}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ceee40eb-b7fc-42bd-acda-145a6f724384":{"basicAuth":{"type":"http","scheme":"basic","scopes":[],"schemeName":"basicAuth"}},"3b008f7c-facf-4f74-9f8d-382bb5ac7fc4":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication using JSON Web Tokens (JWT) or opaque tokens.\n\n**Usage**: Send the access token in the Authorization header:\n```\nAuthorization: Bearer \u003caccess_token>\n```\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"101007e3-3af2-43fa-8133-8c70cf0ce2f9":{"url":"{baseUrl}/esig/webportalapi/v4","variables":{"baseUrl":{"default":"https://your-tenant.sign.gonitro.com","description":"Your tenant-specific base URL, including scheme and host (e.g. https://acme.sign.gonitro.com). Each NSEV customer has a unique URL. Replace this with yours before sending a request. The esig path segment is required - the Web Application Firewall routes requests on it."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","scopes":[],"schemeName":"basicAuth"},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"basicAuth","name":"Authorization"}],"title":"basicAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication using JSON Web Tokens (JWT) or opaque tokens.\n\n**Usage**: Send the access token in the Authorization header:\n```\nAuthorization: Bearer \u003caccess_token>\n```\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token authentication using JSON Web Tokens (JWT) or opaque tokens.\n\n**Usage**: Send the access token in the Authorization header:\n```\nAuthorization: Bearer \u003caccess_token>\n```\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"nsev/api-reference/openapi.yaml"},"subdomain":"go-nitro","siteName":"Nitro APIs","title":"Add document - Nitro APIs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T09:03:07.567Z","originalFileLocation":"nsev/api-reference/documents/add-document.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Adds a document to an existing package. After the document is added you can build it out further by adding elements (signing fields, checkbox fields, text box fields and radio groups) in separate calls, or you can supply everything in this single call by including the Elements array. Documents can be added synchronously or asynchronously, selected with the async query parameter: - Synchronous (async=false, the default): the call blocks until the document has been uploaded and processed, then returns 201 Created with the created document. - Asynchronous (async=true): the call returns 202 Accepted immediately with a Location header pointing at the package, and the document is processed in the background. Poll the package (Get package by ID) until its status is Draft before continuing to work on it. Asynchronous upload also enables the KeepSignatures, KeepSigningFields and KeepFormFields options under DocumentOptions, which let you preserve signatures and detected field markers found in the uploaded file. A document can also be marked optional. Optional documents let a package mix mandatory and optional documents; end users may then choose not to fill in or sign the optional ones while still completing the mandatory ones. The request accepts either application/json (with the file supplied as Base64 in DocumentOptions.Base64data) or multipart/form-data (with the file attached as the Document part and an optional Representation part). The multipart form takes the same parameters as the JSON body except that ContentType and Base64data are not used - the file is the attached part instead. Package size and content limits: - A package must not exceed 150 MB. - A package must not contain more than 15 documents, and each document must not exceed 30 MB. - An XML file must not contain more than 2 million characters, and a package must not contain more than 15 XML files. - A PDF document\u0026#x27;s physical dimensions must not exceed 3.99 m by 3.99 m. - A package cannot contain both XML documents and PDF documents on which signatures will be placed. The package type is determined by the first uploaded document. - Large files may slow signing depending on the end user\u0026#x27;s connection. PDF handling notes: - PDF/A uploads are only allowed when the format is pdfa1a or pdfa2a. Adding form fields to a PDF/A document breaks the \u0026quot;/A\u0026quot; conformance, leaving a regular PDF; to recover PDF/A, set DocumentOptions.PdfOptions.TargetFormat to pdfa1a or pdfa2a so the document is reconverted after all fields are filled or saved. - Rotated PDFs should not be combined with text markers: detected signature locations are not rotated to match the text direction and are placed near the marker on a best-effort basis. - When an uploaded PDF contains text fields whose name matches the configured Text Field format, those fields are converted to empty signature fields and the original text field is not displayed. This does not apply to documents that already contain one or more signatures. - Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented letters, slashes and dots are not supported. PDF error handling is controlled by DocumentOptions.PdfOptions.PdfErrorHandling. Some PDFs have minor flaws that prevent signing; depending on this value and the server configuration, PDFs are checked and optionally fixed. A PDF that already contains signatures is never fixed, because fixing it would invalidate those signatures. See the property description for the meaning of each value.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nitro APIs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add document - Nitro APIs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Adds a document to an existing package. After the document is added you can build it out further by adding elements (signing fields, checkbox fields, text box fields and radio groups) in separate calls, or you can supply everything in this single call by including the Elements array. Documents can be added synchronously or asynchronously, selected with the async query parameter: - Synchronous (async=false, the default): the call blocks until the document has been uploaded and processed, then returns 201 Created with the created document. - Asynchronous (async=true): the call returns 202 Accepted immediately with a Location header pointing at the package, and the document is processed in the background. Poll the package (Get package by ID) until its status is Draft before continuing to work on it. Asynchronous upload also enables the KeepSignatures, KeepSigningFields and KeepFormFields options under DocumentOptions, which let you preserve signatures and detected field markers found in the uploaded file. A document can also be marked optional. Optional documents let a package mix mandatory and optional documents; end users may then choose not to fill in or sign the optional ones while still completing the mandatory ones. The request accepts either application/json (with the file supplied as Base64 in DocumentOptions.Base64data) or multipart/form-data (with the file attached as the Document part and an optional Representation part). The multipart form takes the same parameters as the JSON body except that ContentType and Base64data are not used - the file is the attached part instead. Package size and content limits: - A package must not exceed 150 MB. - A package must not contain more than 15 documents, and each document must not exceed 30 MB. - An XML file must not contain more than 2 million characters, and a package must not contain more than 15 XML files. - A PDF document\u0026#x27;s physical dimensions must not exceed 3.99 m by 3.99 m. - A package cannot contain both XML documents and PDF documents on which signatures will be placed. The package type is determined by the first uploaded document. - Large files may slow signing depending on the end user\u0026#x27;s connection. PDF handling notes: - PDF/A uploads are only allowed when the format is pdfa1a or pdfa2a. Adding form fields to a PDF/A document breaks the \u0026quot;/A\u0026quot; conformance, leaving a regular PDF; to recover PDF/A, set DocumentOptions.PdfOptions.TargetFormat to pdfa1a or pdfa2a so the document is reconverted after all fields are filled or saved. - Rotated PDFs should not be combined with text markers: detected signature locations are not rotated to match the text direction and are placed near the marker on a best-effort basis. - When an uploaded PDF contains text fields whose name matches the configured Text Field format, those fields are converted to empty signature fields and the original text field is not displayed. This does not apply to documents that already contain one or more signatures. - Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented letters, slashes and dots are not supported. PDF error handling is controlled by DocumentOptions.PdfOptions.PdfErrorHandling. Some PDFs have minor flaws that prevent signing; depending on this value and the server configuration, PDFs are checked and optionally fixed. A PDF that already contains signatures is never fixed, because fixing it would invalidate those signatures. See the property description for the meaning of each value.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nitro APIs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://go-nitro.mintlify.site/docs/_mintlify/api/og/v2?division=Documents\u0026amp;title=Add+document\u0026amp;description=Adds+a+document+to+an+existing+package.+After+the+document+is+added+you+can+build+it%0Aout+further+by+adding+elements+%28signing+fields%2C+checkbox+fields%2C+text+box+f\u0026amp;theme=15424dbe3b3c699dcf498f64\u0026amp;signature=de664584f5e3b7d36a4a59cdb3bd64a7ca42ee84b5abdb3461b0a9aa5280a09d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add document - Nitro APIs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Adds a document to an existing package. After the document is added you can build it out further by adding elements (signing fields, checkbox fields, text box fields and radio groups) in separate calls, or you can supply everything in this single call by including the Elements array. Documents can be added synchronously or asynchronously, selected with the async query parameter: - Synchronous (async=false, the default): the call blocks until the document has been uploaded and processed, then returns 201 Created with the created document. - Asynchronous (async=true): the call returns 202 Accepted immediately with a Location header pointing at the package, and the document is processed in the background. Poll the package (Get package by ID) until its status is Draft before continuing to work on it. Asynchronous upload also enables the KeepSignatures, KeepSigningFields and KeepFormFields options under DocumentOptions, which let you preserve signatures and detected field markers found in the uploaded file. A document can also be marked optional. Optional documents let a package mix mandatory and optional documents; end users may then choose not to fill in or sign the optional ones while still completing the mandatory ones. The request accepts either application/json (with the file supplied as Base64 in DocumentOptions.Base64data) or multipart/form-data (with the file attached as the Document part and an optional Representation part). The multipart form takes the same parameters as the JSON body except that ContentType and Base64data are not used - the file is the attached part instead. Package size and content limits: - A package must not exceed 150 MB. - A package must not contain more than 15 documents, and each document must not exceed 30 MB. - An XML file must not contain more than 2 million characters, and a package must not contain more than 15 XML files. - A PDF document\u0026#x27;s physical dimensions must not exceed 3.99 m by 3.99 m. - A package cannot contain both XML documents and PDF documents on which signatures will be placed. The package type is determined by the first uploaded document. - Large files may slow signing depending on the end user\u0026#x27;s connection. PDF handling notes: - PDF/A uploads are only allowed when the format is pdfa1a or pdfa2a. Adding form fields to a PDF/A document breaks the \u0026quot;/A\u0026quot; conformance, leaving a regular PDF; to recover PDF/A, set DocumentOptions.PdfOptions.TargetFormat to pdfa1a or pdfa2a so the document is reconverted after all fields are filled or saved. - Rotated PDFs should not be combined with text markers: detected signature locations are not rotated to match the text direction and are placed near the marker on a best-effort basis. - When an uploaded PDF contains text fields whose name matches the configured Text Field format, those fields are converted to empty signature fields and the original text field is not displayed. This does not apply to documents that already contain one or more signatures. - Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented letters, slashes and dots are not supported. PDF error handling is controlled by DocumentOptions.PdfOptions.PdfErrorHandling. Some PDFs have minor flaws that prevent signing; depending on this value and the server configuration, PDFs are checked and optionally fixed. A PDF that already contains signatures is never fixed, because fixing it would invalidate those signatures. See the property description for the meaning of each value.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://go-nitro.mintlify.site/docs/_mintlify/api/og/v2?division=Documents\u0026amp;title=Add+document\u0026amp;description=Adds+a+document+to+an+existing+package.+After+the+document+is+added+you+can+build+it%0Aout+further+by+adding+elements+%28signing+fields%2C+checkbox+fields%2C+text+box+f\u0026amp;theme=15424dbe3b3c699dcf498f64\u0026amp;signature=de664584f5e3b7d36a4a59cdb3bd64a7ca42ee84b5abdb3461b0a9aa5280a09d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/go-nitro/zmdJVHCbyTDP-GYA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nitro APIs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D93706\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"qdnOUtxzQiObiPkJRHptxlmvIVydZCoH1KBdB21IP8o\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/nsev/api-reference/documents/add-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.gonitro.com/#organization\",\"name\":\"Nitro APIs\",\"url\":\"https://developers.gonitro.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://www.gonitro.com/hubfs/Nitro_2025/logo-dark.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.gonitro.com/docs#website\",\"name\":\"Nitro APIs\",\"url\":\"https://developers.gonitro.com/docs\",\"publisher\":{\"@id\":\"https://developers.gonitro.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document#webpage\",\"url\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document\",\"name\":\"Add document\",\"description\":\"Adds a document to an existing package. After the document is added you can build it out further by adding elements (signing fields, checkbox fields, text box fields and radio groups) in separate calls, or you can supply everything in this single call by including the Elements array. Documents can be added synchronously or asynchronously, selected with the async query parameter: - Synchronous (async=false, the default): the call blocks until the document has been uploaded and processed, then returns 201 Created with the created document. - Asynchronous (async=true): the call returns 202 Accepted immediately with a Location header pointing at the package, and the document is processed in the background. Poll the package (Get package by ID) until its status is Draft before continuing to work on it. Asynchronous upload also enables the KeepSignatures, KeepSigningFields and KeepFormFields options under DocumentOptions, which let you preserve signatures and detected field markers found in the uploaded file. A document can also be marked optional. Optional documents let a package mix mandatory and optional documents; end users may then choose not to fill in or sign the optional ones while still completing the mandatory ones. The request accepts either application/json (with the file supplied as Base64 in DocumentOptions.Base64data) or multipart/form-data (with the file attached as the Document part and an optional Representation part). The multipart form takes the same parameters as the JSON body except that ContentType and Base64data are not used - the file is the attached part instead. Package size and content limits: - A package must not exceed 150 MB. - A package must not contain more than 15 documents, and each document must not exceed 30 MB. - An XML file must not contain more than 2 million characters, and a package must not contain more than 15 XML files. - A PDF document's physical dimensions must not exceed 3.99 m by 3.99 m. - A package cannot contain both XML documents and PDF documents on which signatures will be placed. The package type is determined by the first uploaded document. - Large files may slow signing depending on the end user's connection. PDF handling notes: - PDF/A uploads are only allowed when the format is pdfa1a or pdfa2a. Adding form fields to a PDF/A document breaks the \\\"/A\\\" conformance, leaving a regular PDF; to recover PDF/A, set DocumentOptions.PdfOptions.TargetFormat to pdfa1a or pdfa2a so the document is reconverted after all fields are filled or saved. - Rotated PDFs should not be combined with text markers: detected signature locations are not rotated to match the text direction and are placed near the marker on a best-effort basis. - When an uploaded PDF contains text fields whose name matches the configured Text Field format, those fields are converted to empty signature fields and the original text field is not displayed. This does not apply to documents that already contain one or more signatures. - Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented letters, slashes and dots are not supported. PDF error handling is controlled by DocumentOptions.PdfOptions.PdfErrorHandling. Some PDFs have minor flaws that prevent signing; depending on this value and the server configuration, PDFs are checked and optionally fixed. A PDF that already contains signatures is never fixed, because fixing it would invalidate those signatures. See the property description for the meaning of each value.\",\"dateModified\":\"2026-12-02T09:03:07.567Z\",\"isPartOf\":{\"@id\":\"https://developers.gonitro.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"NSEV WebPortal API\",\"item\":\"https://developers.gonitro.com/docs/nsev/api-reference/packages/list-packages\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documents\",\"item\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/list-documents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Add document\",\"item\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document#apireference\",\"headline\":\"Add document\",\"name\":\"Add document\",\"description\":\"Adds a document to an existing package. After the document is added you can build it out further by adding elements (signing fields, checkbox fields, text box fields and radio groups) in separate calls, or you can supply everything in this single call by including the Elements array. Documents can be added synchronously or asynchronously, selected with the async query parameter: - Synchronous (async=false, the default): the call blocks until the document has been uploaded and processed, then returns 201 Created with the created document. - Asynchronous (async=true): the call returns 202 Accepted immediately with a Location header pointing at the package, and the document is processed in the background. Poll the package (Get package by ID) until its status is Draft before continuing to work on it. Asynchronous upload also enables the KeepSignatures, KeepSigningFields and KeepFormFields options under DocumentOptions, which let you preserve signatures and detected field markers found in the uploaded file. A document can also be marked optional. Optional documents let a package mix mandatory and optional documents; end users may then choose not to fill in or sign the optional ones while still completing the mandatory ones. The request accepts either application/json (with the file supplied as Base64 in DocumentOptions.Base64data) or multipart/form-data (with the file attached as the Document part and an optional Representation part). The multipart form takes the same parameters as the JSON body except that ContentType and Base64data are not used - the file is the attached part instead. Package size and content limits: - A package must not exceed 150 MB. - A package must not contain more than 15 documents, and each document must not exceed 30 MB. - An XML file must not contain more than 2 million characters, and a package must not contain more than 15 XML files. - A PDF document's physical dimensions must not exceed 3.99 m by 3.99 m. - A package cannot contain both XML documents and PDF documents on which signatures will be placed. The package type is determined by the first uploaded document. - Large files may slow signing depending on the end user's connection. PDF handling notes: - PDF/A uploads are only allowed when the format is pdfa1a or pdfa2a. Adding form fields to a PDF/A document breaks the \\\"/A\\\" conformance, leaving a regular PDF; to recover PDF/A, set DocumentOptions.PdfOptions.TargetFormat to pdfa1a or pdfa2a so the document is reconverted after all fields are filled or saved. - Rotated PDFs should not be combined with text markers: detected signature locations are not rotated to match the text direction and are placed near the marker on a best-effort basis. - When an uploaded PDF contains text fields whose name matches the configured Text Field format, those fields are converted to empty signature fields and the original text field is not displayed. This does not apply to documents that already contain one or more signatures. - Signature and text field names in uploaded PDFs must contain only letters and numbers; special characters such as accented letters, slashes and dots are not supported. PDF error handling is controlled by DocumentOptions.PdfOptions.PdfErrorHandling. Some PDFs have minor flaws that prevent signing; depending on this value and the server configuration, PDFs are checked and optionally fixed. A PDF that already contains signatures is never fixed, because fixing it would invalidate those signatures. See the property description for the meaning of each value.\",\"url\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document\",\"mainEntityOfPage\":{\"@id\":\"https://developers.gonitro.com/docs/nsev/api-reference/documents/add-document#webpage\"},\"dateModified\":\"2026-12-02T09:03:07.567Z\",\"publisher\":{\"@id\":\"https://developers.gonitro.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.gonitro.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nitro APIs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nitro APIs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/nsev/api-reference/documents/add-document.md","siteName":"Nitro APIs","nav":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"/"}]},"products":[{"product":"Nitro PDF \u0026 Sign","icon":"file-signature","pages":[{"title":"Nitro PDF \u0026 Sign","href":"/getting-started/basic-setup"}]},{"product":"Nitro Sign Enterprise Verified","icon":"badge-check","tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/nsev/getting-started/overview"}]},{"tab":"Build","pages":[{"title":"Build","href":"/nsev/build/concepts/package-model"}]},{"tab":"API Reference","groups":[{"group":"Product updates","icon":"chart-bar","pages":[{"title":"Changelog","href":"/nsev/changelog"}]},{"group":"NSEV WebPortal API","icon":"signature","pages":[{"group":"Packages","icon":"box-open","expanded":false,"pages":[{"title":"List packages","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages","href":"/nsev/api-reference/packages/list-packages"},{"title":"Create package","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages","href":"/nsev/api-reference/packages/create-package"},{"title":"Get package","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}","href":"/nsev/api-reference/packages/get-package"},{"title":"Delete package","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}","href":"/nsev/api-reference/packages/delete-package"},{"title":"Get package expiry date","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/expirydate","href":"/nsev/api-reference/packages/get-package-expiry-date"},{"title":"Update package expiry date","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml put /packages/{packageId}/expirydate","href":"/nsev/api-reference/packages/update-package-expiry-date"},{"title":"Get package status","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/status","href":"/nsev/api-reference/packages/get-package-status"},{"title":"Update package status","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml put /packages/{packageId}/status","href":"/nsev/api-reference/packages/update-package-status"},{"title":"Update package document order","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml put /packages/{packageId}/documents/orderindices","href":"/nsev/api-reference/packages/update-package-document-order"},{"title":"Get package warnings","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/warnings","href":"/nsev/api-reference/packages/get-package-warnings"},{"title":"Send package reminders","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/reminders","href":"/nsev/api-reference/packages/send-package-reminders"},{"title":"Skip approvers","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/skipapprovers","href":"/nsev/api-reference/packages/skip-approvers"},{"title":"Skip signers","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/skipsigners","href":"/nsev/api-reference/packages/skip-signers"},{"title":"Create template from package","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/template","href":"/nsev/api-reference/packages/create-template-from-package"},{"title":"Download package","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/download","href":"/nsev/api-reference/packages/download-package"},{"title":"Get actors for a user","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/actors","href":"/nsev/api-reference/packages/get-actors-for-a-user"}]},{"group":"Documents","icon":"file-lines","expanded":false,"pages":[{"title":"List documents","description":"Retrieves all documents that currently exist within the specified package.\n\nUse the `status` query parameter to return only documents that currently have a\ngiven status.","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/documents","href":"/nsev/api-reference/documents/list-documents"},{"title":"Add document","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/documents","href":"/nsev/api-reference/documents/add-document"},{"title":"Get document","description":"Retrieves a single document from a package by its document ID.","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/documents/{documentId}","href":"/nsev/api-reference/documents/get-document"},{"title":"Delete document","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}/documents/{documentId}","href":"/nsev/api-reference/documents/delete-document"},{"title":"Confirm document actions","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/documents/{documentId}/actions","href":"/nsev/api-reference/documents/confirm-document-actions"},{"title":"Download document","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/download/{documentId}","href":"/nsev/api-reference/documents/download-document"},{"title":"Get document by order index","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/documents/{orderIndex}","href":"/nsev/api-reference/documents/get-document-by-order-index"}]},{"group":"Elements","icon":"pen-field","expanded":false,"pages":[{"title":"Get elements action url","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/elements/actionurl","href":"/nsev/api-reference/elements/get-elements-action-url"},{"title":"List unplaced elements","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/unplacedElements","href":"/nsev/api-reference/elements/list-unplaced-elements"},{"title":"Create unplaced element","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/unplacedElements","href":"/nsev/api-reference/elements/create-unplaced-element"},{"title":"Get unplaced element","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/unplacedElements/{elementId}","href":"/nsev/api-reference/elements/get-unplaced-element"},{"title":"Delete unplaced element","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}/unplacedElements/{elementId}","href":"/nsev/api-reference/elements/delete-unplaced-element"},{"title":"List document elements","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/documents/{documentId}/elements","href":"/nsev/api-reference/elements/list-document-elements"},{"title":"Create element","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/documents/{documentId}/elements","href":"/nsev/api-reference/elements/create-element"},{"title":"Get element by id","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/documents/{documentId}/elements/{elementId}","href":"/nsev/api-reference/elements/get-element-by-id"},{"title":"Delete element","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}/documents/{documentId}/elements/{elementId}","href":"/nsev/api-reference/elements/delete-element"}]},{"group":"Stakeholders","icon":"users","expanded":false,"pages":[{"title":"List stakeholders","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/stakeholders","href":"/nsev/api-reference/stakeholders/list-stakeholders"},{"title":"Create stakeholder","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/stakeholders","href":"/nsev/api-reference/stakeholders/create-stakeholder"},{"title":"Get stakeholder","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/stakeholders/{stakeholderId}","href":"/nsev/api-reference/stakeholders/get-stakeholder"},{"title":"Delete stakeholder","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}/stakeholders/{stakeholderId}","href":"/nsev/api-reference/stakeholders/delete-stakeholder"}]},{"group":"Actors","icon":"user-pen","expanded":false,"pages":[{"title":"List actors","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/stakeholders/{stakeholderId}/actors","href":"/nsev/api-reference/actors/list-actors"},{"title":"Create actor","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/stakeholders/{stakeholderId}/actors","href":"/nsev/api-reference/actors/create-actor"},{"title":"Get actor","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/stakeholders/{stakeholderId}/actors/{actorId}","href":"/nsev/api-reference/actors/get-actor"},{"title":"Delete actor","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}/stakeholders/{stakeholderId}/actors/{actorId}","href":"/nsev/api-reference/actors/delete-actor"},{"title":"Reassign actor","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/stakeholders/{stakeholderId}/actors/{actorId}/reassign","href":"/nsev/api-reference/actors/reassign-actor"}]},{"group":"Process","icon":"list-check","expanded":false,"pages":[{"title":"Get process","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/process","href":"/nsev/api-reference/process/get-process"},{"title":"Create process step","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/process","href":"/nsev/api-reference/process/create-process-step"},{"title":"Update process","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml put /packages/{packageId}/process","href":"/nsev/api-reference/process/update-process"},{"title":"List process step actions","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/process/{stepIndex}","href":"/nsev/api-reference/process/list-process-step-actions"},{"title":"Delete process step","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /packages/{packageId}/process/{stepIndex}","href":"/nsev/api-reference/process/delete-process-step"},{"title":"Submit process step action","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/{packageId}/process/{stepIndex}","href":"/nsev/api-reference/process/submit-process-step-action"},{"title":"Get current process step","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/process/current","href":"/nsev/api-reference/process/get-current-process-step"}]},{"group":"Audit Trails","icon":"file-shield","expanded":false,"pages":[{"title":"Download audit trail","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/audittrail/{culture}","href":"/nsev/api-reference/audittrails/download-audit-trail"},{"title":"Get the package audit trail","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/audittrail","href":"/nsev/api-reference/audittrails/get-the-package-audit-trail"},{"title":"Verify audit trail","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/{packageId}/audittrail/verify","href":"/nsev/api-reference/audittrails/verify-audit-trail"}]},{"group":"Bulk Actions","icon":"layer-group","expanded":false,"pages":[{"title":"Bulk sign packages","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/sign/bulk","href":"/nsev/api-reference/bulkactions/bulk-sign-packages"},{"title":"Bulk update package status","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/status/bulk","href":"/nsev/api-reference/bulkactions/bulk-update-package-status"},{"title":"Bulk delete packages","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/delete/bulk","href":"/nsev/api-reference/bulkactions/bulk-delete-packages"},{"title":"Bulk download packages","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/download/bulk","href":"/nsev/api-reference/bulkactions/bulk-download-packages"},{"title":"Bulk send reminders","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/reminders/bulk","href":"/nsev/api-reference/bulkactions/bulk-send-reminders"},{"title":"Bulk extend package expiry date","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/expirydate/bulk","href":"/nsev/api-reference/bulkactions/bulk-extend-package-expiry-date"},{"title":"Bulk skip actors","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/skip/bulk","href":"/nsev/api-reference/bulkactions/bulk-skip-actors"},{"title":"Bulk download audit trail PDFs","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /packages/audittrails/download/bulk","href":"/nsev/api-reference/bulkactions/bulk-download-audit-trail-pdfs"},{"title":"Get package bulk action session status","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/bulkactionsession/{bulkActionSessionId}","href":"/nsev/api-reference/bulkactions/get-package-bulk-action-session-status"},{"title":"Get bulk action session status","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /bulkactionsession/{bulkActionSessionId}","href":"/nsev/api-reference/bulkactions/get-bulk-action-session-status"},{"title":"Download bulk action result","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /packages/bulkactionsession/download/{bulkActionSessionId}","href":"/nsev/api-reference/bulkactions/download-bulk-action-result"}]},{"group":"Configuration","icon":"gear","expanded":false,"pages":[{"title":"List contact groups","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /contactGroups","href":"/nsev/api-reference/configuration/list-contact-groups"},{"title":"List document groups","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /documentGroups","href":"/nsev/api-reference/configuration/list-document-groups"},{"title":"List languages","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /languages","href":"/nsev/api-reference/configuration/list-languages"},{"title":"List themes","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /themes","href":"/nsev/api-reference/configuration/list-themes"},{"title":"Get version","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /version","href":"/nsev/api-reference/configuration/get-version"},{"title":"List signing methods","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /signingmethods","href":"/nsev/api-reference/configuration/list-signing-methods"},{"title":"List templates","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /templates","href":"/nsev/api-reference/configuration/list-templates"}]},{"group":"Users","icon":"user-plus","expanded":false,"pages":[{"title":"Invite user","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /users/invite","href":"/nsev/api-reference/users/invite-user"}]},{"group":"Absence Periods","icon":"calendar-days","expanded":false,"pages":[{"title":"Creates an absence period","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml post /absenceperiods","href":"/nsev/api-reference/absenceperiods/creates-an-absence-period"},{"title":"Gets absence periods by email address","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /absenceperiods","href":"/nsev/api-reference/absenceperiods/gets-absence-periods-by-email-address"},{"title":"Gets an absence period by id","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml get /absenceperiods/{absencePeriodId}","href":"/nsev/api-reference/absenceperiods/gets-an-absence-period-by-id"},{"title":"Updates an absence period by id","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml put /absenceperiods/{absencePeriodId}","href":"/nsev/api-reference/absenceperiods/updates-an-absence-period-by-id"},{"title":"Deletes an absence period by id","deprecated":null,"version":null,"openapi":"/nsev/api-reference/openapi.yaml delete /absenceperiods/{absencePeriodId}","href":"/nsev/api-reference/absenceperiods/deletes-an-absence-period-by-id"}]}]}]}]}]},"basePath":"","title":"Add document - Nitro APIs","deploymentId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","buildId":"dpl_BsHU5ynwUyfZMwoLvGC66duJuw65","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8ktwDU8.js","snippetPresets-T_OU6iFp.js","utils-ZwMhYBEy.js","style-to-object-BY3JEAdk.js","utils-Bkq2iFgu.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-BL9fiH8n.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CmgCbVBT.js","_Uint8Array-Ai_0D4xE.js","isObject-FP1Yky1u.js","ApiExamples-DFGM09p_.js","usePlaygroundInputsStore-DkwJlKUE.js","shallow-BHRrfnLS.js","isEqual-BJ_QXy06.js","CodeSnippets-DIweseYm.js","CodeSnippet-8p36p4M7.js","use-playground-group-access-B8gEWau8.js","Page-Wf3pSVXf.js","api-description-markdown-BmnQ9fAd.js","DynamicMarkdown-BYqxB8Iw.js","SectionHeading-D-hNGwRE.js","MethodPill-CLLk3435.js","getPastedJson-CniQ58Cw.js","Check2Icon-C_Ntbivk.js","axios-CsQoIw0U.js","Markdown-DiXm32Ac.js","AssistantPageLink-C28i5dBV.js","dist-B9NA4YFQ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}