NextSign API
Reference

Objects

Shared request and response objects used across cases, forms, and document endpoints.

Objects

Use this page as the shared reference for the most important payload objects reused across the NextSign API.

This is the canonical place to look up:

  • recipient fields
  • document fields
  • settings fields
  • signing schema values
  • case state values

Recipient Object

Used in:

Common Request Fields

FieldTypeDescription
namestringRecipient name
emailstringRecipient email address
signingbooleanWhether the recipient must sign
groupnumberPreferred signing order/group. Lower numbers are invited first
ordernumberLegacy alias for group
needsCprbooleanWhether CPR validation is required
cprstringCPR number. Required when needsCpr is true
signingSchemastringOptional recipient-specific signing method override
redirectUrlstringRedirect URL after signing
denyRedirectUrlstringRedirect URL after the recipient denies the case
phonestringPhone number for SMS-style delivery flows
positionstringSignature title or position
onBehalfOfstringThe organisation the recipient signs for, e.g. Aarhus Kommune. Printed as "On behalf of" under the signature. When the recipient signs with MitID Erhverv, the company from their MitID is printed instead
typestringDelivery type. Common values are email, sms/phone, and eboks
templatestringOptional recipient-specific template id
messagestringCustom recipient message
eboksobjecte-Boks delivery payload. See the e-Boks Object for method, cvr, address, and name

Update-Only Fields

FieldTypeDescription
_idstringExisting recipient identifier when patching a recipient
idstringAlias for _id
clearCprbooleanSet to true with an empty cpr value to clear stored CPR data

Common Response Fields

FieldTypeDescription
_idstringRecipient identifier
uidstringInternal recipient uid used in document signatory mapping
signedstringRecipient signing status such as pending, signed, denied, or not signing
signingTokenstringRecipient signing token
urlstringDirect signing URL. Returned for open cases

If recipient.signingSchema is omitted, the recipient falls back to the case-level signingSchemas.

If recipient.signingSchema is set, that recipient is locked to the selected method.

If needsCpr is true, you must also provide cpr.

If you need the plain CPR number later in your own workflow, store it on your side as well.

e-Boks Object

The eboks object is nested inside a recipient when type is set to eboks. It tells NextSign how to identify and reach the recipient inside the e-Boks system.

Fields

FieldTypeRequiredDescription
methodstringNoIdentification method to use: cpr, cvr, or address. Defaults to cpr when omitted.
cvrstringConditionalCVR number for the recipient company. Required when method is cvr.
addressstringConditionalDanish address string used to locate the recipient. Required when method is address. NextSign resolves the address into the underlying recipient details via the Danish address registry (dataforsyningen).
namestringNoOnly read by the older certificate-based e-Boks integration, like kvhx. The current integration takes the name from the recipient's own name. See How the recipient name is resolved.
kvhxstringNoLegacy KVHX identifier. Not required for current e-Boks delivery — the address is resolved server-side. See the note below.

Identification Methods

e-Boks delivery supports three ways to identify the recipient, selected with eboks.method. Set type: "eboks" on the recipient, then provide the field that matches the chosen method:

methodIdentifier fieldNotes
cpr (default)recipient.cpr10-digit CPR number for a private individual
cvrrecipient.eboks.cvr8-digit CVR number for a company
addressrecipient.eboks.addressResolved server-side through the Danish address registry

An e-Boks recipient without any of these is rejected with a 400 before the case is created: cpr (or eboks.cvr) must be a 10-digit CPR or an 8-digit CVR (spaces and dashes are ignored), or eboks.address must be set. Only recipients whose type is eboks are checked, so an email or SMS recipient is never affected.

An e-Boks recipient is reached through e-Boks only. An email or phone on the same recipient is not used to send an invitation, so the letter does not also arrive as an email or SMS.

Whether e-Boks accepts the recipient (for example, whether the CPR is registered for Digital Post) is only known once we send. That result comes back in the create response (delivery.eboks in v3, a notices entry with code eboks-delivery-failed in v2) and as the case.delivery.failed webhook.

CPR/CVR identification is the most reliable method. Address-based delivery requires that the address can be resolved unambiguously by the Danish address registry. You do not need to supply a kvhx value — sending the address string is enough.

If the field required by the selected method is missing (a valid CPR/CVR number, or a resolvable eboks.address), the delivery will fail with an invalid-recipient error.

kvhx is a legacy field retained for backwards compatibility. It is only consumed by the older direct-dispatch path and is ignored by the current e-Boks delivery flow, which resolves the recipient from the address string itself. New integrations should not send kvhx.

How the recipient name is resolved (address-based)

With address-based delivery, e-Boks finds the person by matching a name against the people registered at that address. NextSign sends the recipient's name as one first name and one last name:

  • Two or more words: the first word is the first name and the last word is the last name. Middle names are left out, because e-Boks matches on the first and last name only. (e.g. "Jane Marie Doe" → first name "Jane", last name "Doe")
  • One word: it is sent as the first name only. (e.g. "Jane" → first name "Jane")

Send the name as the person is registered, such as "Jane Doe" or "Jane Marie Doe", or only the first name. When e-Boks cannot match the name and address to a mailbox, the delivery fails with eboks-recipient-unknown (e-Boks 4007). A recipient who also has a cpr is found by the CPR, and the name is not used for matching.

Example — CPR-based delivery

{
  "name": "Jane Doe",
  "email": "jane@example.com",
  "type": "eboks",
  "signing": true,
  "needsCpr": true,
  "cpr": "1234567890",
  "eboks": {
    "method": "cpr"
  }
}

Example — CVR-based delivery

{
  "name": "Example Company ApS",
  "email": "kontakt@example.com",
  "type": "eboks",
  "signing": true,
  "eboks": {
    "method": "cvr",
    "cvr": "12345678"
  }
}

Example — Address-based delivery

{
  "name": "Jane Doe",
  "email": "jane@example.com",
  "type": "eboks",
  "signing": true,
  "eboks": {
    "method": "address",
    "address": "Østergade 12, 1100 København K",
    "name": "Jane Doe"
  }
}

Inbox title and letter

An eboks recipient receives the e-Boks template given by messageTemplateId (on the recipient, otherwise on the case). The template's id is shown as Skabelon-ID in the template editor.

To send a filled-in letter that nobody signs, see the guide Send letters via e-Boks without signing.

Inbox title. The template's title is the subject the recipient sees in e-Boks. It can contain tags, filled per case: any tag from the case's top-level tags array, or a built-in field such as {case_name}. One template can then cover several kinds of messages, for example an invitation and a reminder, in any language:

{
  "title": "Generalforsamling 2026",
  "messageTemplateId": "<your e-Boks template id>",
  "tags": [{ "tag": "eboks_title", "value": "Invitation: Generalforsamling 2026" }],
  "recipients": [ … ]
}

With the template title set to {eboks_title}, the recipient sees "Invitation: Generalforsamling 2026". e-Boks allows 4-50 characters, and a longer title is cut at 50. If a tag in the title has no value, or the result is shorter than 4 characters, the case title is used instead. A reminder that NextSign sends on an existing case puts a prefix in the case language in front of the title (Påmindelse: in Danish, Reminder: in English), unless the template's reminder tab has its own title.

Letter. When the template sends your own Word letter (.docx), write each field as {tag}: one curly brace on each side and no spaces. {{ tag }} stops the letter from rendering, both in the preview and when the case is sent. { tag } renders as empty. Every tag in the case's top-level tags array fills the letter, and these fields are built in:

FieldValue
{recipient_name}The recipient's name
{recipient_address}, {recipient_zip}, {recipient_city}The recipient's address, from eboks.address or, for a CVR recipient, the CVR register. Empty for a CPR recipient without eboks.address
{custom_message}The message: the recipient's message, otherwise the case's message, otherwise the text saved on the template. Optional: leave it out of the letter if you fill the text with your own tags
{recipient_signing_link}The recipient's link to the case
{case_name}The case title
{reference_id}The case reference
{dato}The date the letter is sent
{sender_name}, {sender_email}, {sender_phone}, {sender_role}, {sender_location}, {sender_address}The sending user
{sender_company}, {sender_cvr}The company name and CVR on your NextSign account

The letter is a PDF in e-Boks, so a button drawn in the Word document cannot be clicked. The clickable button is the e-Boks button, which you turn on in the template. To put the link in the letter itself, use {recipient_signing_link}.

Fallback to physical letter

When a company has the letter-fallback option enabled and e-Boks delivery fails, NextSign automatically retries by sending a physical letter through the letter dispatch service. A warning notification is created on the case when fallback is triggered.

Whether letter fallback is attempted depends on your NextSign account configuration. Contact NextSign support to enable or disable this option.

Document Object

Used in:

Common Request Fields

FieldTypeDescription
namestringFile name including extension
filestringHosted file URL, uploaded file URL, or base64 file data depending on the endpoint
fileIsBlobbooleanSet to true when file contains base64 file data
signObligatedbooleanWhether signing is required for the document
documentMustBeReadbooleanWhether the document must be read before signing
signatoriesarraySelected signatories for the document
mergeTagsbooleanCase Create only. Set to false to leave a .docx out of the case's template-tag merge

Common Response Fields

FieldTypeDescription
_idstringStored document entry identifier
document_idstringStored document/file identifier
filestringURL to the stored or converted file
namestringStored file name

For Document Convert, only name and file are required from this object.

If the combined case documents are more than 3.5 MB, upload them first with Document Upload and use the returned URL in file.

After any recipient has signed, Case Update rejects document additions. Re-send a new contract/case instead.

Settings Object

Used in:

FieldTypeDescription
reminders.sendbooleanWhether reminder messages should be sent
reminders.amountnumberMaximum number of reminders
reminders.daysBetweennumberDays between reminders
deletion.autoDeletebooleanWhether the case should be automatically deleted later
deletion.daysnumberDays before auto deletion
availability.unlimitedbooleanWhether the case should be available without an intended limit
availability.daysnumberDays the case should stay available for signing
availability.expirationstringISO 8601 expiration timestamp managed by NextSign
availability.isExpiredbooleanWhether the case is currently expired
availability.expiresAtstringRequest only (v2 Case Create and Case Update): a fixed date and time the case expires, instead of availability.days. ISO 8601 with a UTC offset, e.g. 2026-12-01T14:00:00+01:00. See Fixed Expiry Time
availability.exactExpirationbooleantrue on a case with a fixed expiry time: it expires at availability.expiration to the minute. Not present on other cases
templatenumberSigning page / document template selection
langstringLanguage code such as da, en, de, or no
allowAPIbooleanWhether API usage is allowed in the related configuration context
allowRecipientsViewOthersbooleanWhether recipients may view other participants
allowedRolesarrayAllowed roles list, primarily used with forms

On case create and case update, NextSign recalculates availability.expiration from availability.days, unless availability.expiresAt sets a fixed time.

availability.expiration and availability.isExpired are managed by NextSign and should be treated as system values in responses.

Signing Schemas

Used in:

ValueNameCPR RequiredCreditsNotes
urn:grn:authn:dk:mitid:lowMitID PrivatNo1MitID Privat for recipients with needsCpr: false
urn:grn:authn:dk:mitid:substantialMitID Privat with CPR matchYes1MitID Privat for recipients with needsCpr: true
urn:grn:authn:dk:mitid:businessMitID ErhvervNo1MitID business signing
urn:grn:authn:se:bankidBankID SENo1Swedish BankID signing
urn:grn:authn:no:bankidBankID NONo1.5Norwegian BankID signing. Not in the default set: add it to signingSchemas to offer it
urn:grn:authn:de:personalausweisPersonalausweisNo1German national eID card (Personalausweis) signing
drawTouchNo0.5Drawn signature without CPR verification
draw-cprTouchYes0.5Drawn signature with CPR verification
sms-emailSMS + Email verificationNo1NextSign-hosted verification flow
approveGodkendelse (click-approval)No0.5Recipient-level only. The recipient approves the documents with a single click instead of signing — see the note below

A signature is charged when it is made, at the credit price of the method the signer actually used. While a case offers several methods, NextSign's credit check counts the dearest one.

At the case level, signingSchemas defines the allowed signing methods for the case.

At the recipient level, recipient.signingSchema forces one specific method for that signer.

A recipient is only offered the methods whose "CPR Required" value matches their own needsCpr. A recipient with needsCpr: false never sees urn:grn:authn:dk:mitid:substantial or draw-cpr, and a recipient with needsCpr: true only sees those two.

low and substantial are not security levels: they are the same MitID Privat login without and with a CPR match. Sending ["urn:grn:authn:dk:mitid:substantial", "urn:grn:authn:dk:mitid:business"] to recipients without needsCpr leaves them with MitID Erhverv only. If you want MitID Privat, send both low and substantial and NextSign picks the right one for each recipient.

Approvers (approve) — setting recipient.signingSchema to approve (with signing: true) makes the recipient an approver: they review the documents and approve with a single click (logged with timestamp, IP, and browser). An approval is not a signature — the approver never appears on the signed documents or the signature page. Approvers participate in the signing order like any signer: an approver in group 1 must approve before group 2 is contacted, and a rejection denies the whole case. An approval (or rejection) is charged 0.5 credits. In responses, an approver who has approved has status: "signed"; distinguish approvers by their signingSchema.

approve is not accepted in the case-level signingSchemas list — it can only be forced per recipient.

After any recipient has signed, Case Update rejects signingSchemas changes. Re-send a new contract/case instead.

Case States

Used in:

Canonical Lifecycle Values

ValueMeaning
draftThe case exists but is not open for signing yet
openThe case is active and can be signed
completedThe case has been fully completed or manually marked as completed. A case nobody signs is completed when its e-Boks letter has been sent, see Send letters via e-Boks without signing
deniedThe case has been denied during the signing flow
cancelledThe case has been cancelled

Accepted Aliases On Case Update

ValueMaps To
pendingopen
signedcompleted

The status filter on Case List is a different concept. It currently filters by derived signing progress (pending, signed, denied) rather than the stored lifecycle state.