NextSign API
Webflows

Send a Webflow

Send a form to people to fill in with POST /v3/api/webflows, by e-mail, SMS or as links you hand on yourself, from a published form or with the questions in the request.

POST https://api.nextsign.dk/v3/api/webflows

Send a form to people to fill in, one person per role. Each person who answers gets a personal link: by e-mail, by SMS, or not at all, when you hand the link on yourself. The questions come from a published form (formId) or from the request itself (form). What happens when everyone has answered is the form's: a form can create a signing case from the answers; questions sent in the request only collect them.

See Webflows for how the pieces fit together, and Get a Webflow for every field of the answer.

Examples

The form's customer role answers; adviser has no questions of their own (they sign the case later). Each recipient who answers gets an e-mail with their personal link, from the form's invitation template or the standard invitation.

cURL
curl --request POST 'https://api.nextsign.dk/v3/api/webflows' \
  --header "Authorization: Bearer $NEXTSIGN_API_KEY" \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: order-1042-v1' \
  --data '{
    "formId": "65ab12cd34ef56ab78cd9101",
    "title": "Information for order 1042",
    "referenceId": "order-1042",
    "recipients": [
      {
        "role": "customer",
        "name": "Alex Example",
        "email": "alex@example.com"
      },
      {
        "role": "adviser",
        "name": "Anna Sender",
        "email": "anna@example.com"
      }
    ],
    "values": {
      "order_number": "1042"
    }
  }'

201 Created, with Location: /v3/api/webflows/65ab12cd34ef56ab78cd9100:

{
  "webflow": {
    "id": "65ab12cd34ef56ab78cd9100",
    "formId": "65ab12cd34ef56ab78cd9101",
    "title": "Information for order 1042",
    "referenceId": "order-1042",
    "state": "awaiting-responses",
    "closed": null,
    "rejected": null,
    "createdAt": "2026-11-12T09:30:00.000Z",
    "completedAt": null,
    "caseId": null,
    "recipients": [
      {
        "id": "65ab12cd34ef56ab78cd9102",
        "role": "customer",
        "name": "Alex Example",
        "email": "alex@example.com",
        "phone": null,
        "channel": "email",
        "requiresResponse": true,
        "completed": false,
        "invitationStatus": "submitted",
        "delivery": {
          "status": "sent",
          "lastSentAt": "2026-11-12T09:30:20.000Z",
          "remindersSent": 0,
          "lastReminderAt": null
        },
        "formUrl": "https://app.nextsign.dk/webflow/65ab12cd34ef56ab78cd9103/65ab12cd34ef56ab78cd9100/65ab12cd34ef56ab78cd9102",
        "identity": null,
        "answers": []
      },
      {
        "id": "65ab12cd34ef56ab78cd9104",
        "role": "adviser",
        "name": "Anna Sender",
        "email": "anna@example.com",
        "phone": null,
        "channel": "email",
        "requiresResponse": false,
        "completed": true,
        "invitationStatus": "not-requested",
        "delivery": null,
        "formUrl": null,
        "identity": null,
        "answers": []
      }
    ]
  }
}

The same form, the customer by SMS. Without an SMS template (smsTemplateId) or a message, the standard SMS invitation in the form's language is sent:

Hej Alex Example. Example ApS har bedt dig udfylde Information for order 1042: https://www.nextsign.dk/r/Xy12Ab
cURL
curl --request POST 'https://api.nextsign.dk/v3/api/webflows' \
  --header "Authorization: Bearer $NEXTSIGN_API_KEY" \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: order-1042-sms' \
  --data '{
    "formId": "65ab12cd34ef56ab78cd9101",
    "title": "Information for order 1042",
    "referenceId": "order-1042",
    "recipients": [
      {
        "role": "customer",
        "name": "Alex Example",
        "phone": "+4512345678",
        "channel": "sms"
      },
      {
        "role": "adviser",
        "name": "Anna Sender",
        "email": "anna@example.com"
      }
    ],
    "values": {
      "order_number": "1042"
    }
  }'

201 Created:

{
  "webflow": {
    "id": "65ab12cd34ef56ab78cd9105",
    "formId": "65ab12cd34ef56ab78cd9101",
    "title": "Information for order 1042",
    "referenceId": "order-1042",
    "state": "awaiting-responses",
    "closed": null,
    "rejected": null,
    "createdAt": "2026-11-12T09:30:40.000Z",
    "completedAt": null,
    "caseId": null,
    "recipients": [
      {
        "id": "65ab12cd34ef56ab78cd9106",
        "role": "customer",
        "name": "Alex Example",
        "email": "",
        "phone": "+4512345678",
        "channel": "sms",
        "requiresResponse": true,
        "completed": false,
        "invitationStatus": "submitted",
        "delivery": {
          "status": "sent",
          "lastSentAt": "2026-11-12T09:31:00.000Z",
          "remindersSent": 0,
          "lastReminderAt": null
        },
        "formUrl": "https://app.nextsign.dk/webflow/65ab12cd34ef56ab78cd9103/65ab12cd34ef56ab78cd9105/65ab12cd34ef56ab78cd9106",
        "identity": null,
        "answers": []
      }
    ]
  }
}

The SMS is charged like any other SMS. The recipient list is trimmed here to the customer.

No form set up: the questions are in the request. NextSign saves them as a form that only collects answers (no documents, no case) and sends it like any other. The same sender sending the same questions again reuses that form. It appears under Formularer in the dashboard, where it can be copied and turned into a full form.

cURL
curl --request POST 'https://api.nextsign.dk/v3/api/webflows' \
  --header "Authorization: Bearer $NEXTSIGN_API_KEY" \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: crm-17-onboarding' \
  --data '{
    "form": {
      "title": "Onboarding",
      "language": "en",
      "pages": [
        {
          "title": "About you",
          "questions": [
            {
              "tag": "full_name",
              "label": "Full name",
              "required": true
            },
            {
              "tag": "contact_email",
              "label": "E-mail",
              "type": "email",
              "required": true
            },
            {
              "tag": "plan",
              "label": "Plan",
              "type": "select",
              "options": [
                "Basic",
                "Pro"
              ]
            }
          ]
        },
        {
          "title": "Consent",
          "questions": [
            {
              "tag": "consent",
              "label": "I accept the terms",
              "type": "checkbox",
              "required": true
            }
          ]
        }
      ]
    },
    "referenceId": "crm-17",
    "recipients": [
      {
        "name": "Alex Example",
        "email": "alex@example.com"
      }
    ]
  }'

201 Created. role was left out: the questions have one role, recipient.

{
  "webflow": {
    "id": "65ab12cd34ef56ab78cd910b",
    "formId": "65ab12cd34ef56ab78cd910c",
    "title": "Onboarding",
    "referenceId": "crm-17",
    "state": "awaiting-responses",
    "closed": null,
    "rejected": null,
    "createdAt": "2026-11-12T09:32:00.000Z",
    "completedAt": null,
    "caseId": null,
    "recipients": [
      {
        "id": "65ab12cd34ef56ab78cd910d",
        "role": "recipient",
        "name": "Alex Example",
        "email": "alex@example.com",
        "phone": null,
        "channel": "email",
        "requiresResponse": true,
        "completed": false,
        "invitationStatus": "submitted",
        "delivery": {
          "status": "sent",
          "lastSentAt": "2026-11-12T09:32:20.000Z",
          "remindersSent": 0,
          "lastReminderAt": null
        },
        "formUrl": "https://app.nextsign.dk/webflow/65ab12cd34ef56ab78cd9103/65ab12cd34ef56ab78cd910b/65ab12cd34ef56ab78cd910d",
        "identity": null,
        "answers": []
      }
    ]
  }
}

Once Alex has answered, Get shows the answers and state is completed:

[
  {
    "tag": "full_name",
    "value": "Alex Example"
  },
  {
    "tag": "contact_email",
    "value": "alex@example.com"
  },
  {
    "tag": "plan",
    "value": "Pro"
  },
  {
    "tag": "consent",
    "value": true
  }
]

Request

Unknown fields are rejected. Give formId or form, not both.

FieldRequiredMeaning
formIdOne of the twoA published form with webflow enabled (24 hexadecimal characters). Unpublished changes are not used: the webflow keeps a copy of the form as it was.
formOne of the twoThe questions themselves, see Own questions.
recipientsYes1 to 100: exactly one for every role of the form.
channelNoThe channel for every recipient who doesn't name their own: email (default), sms or link.
messageNoThe invitation's text for everyone, instead of the template's: the e-mail's body or the SMS. Placeholders work, see below. Up to 5,000 characters.
titleNo1 to 300 characters. Default: the form's title.
referenceIdNoYour reference, up to 200 characters. List filters on it. It does not replace the idempotency key.
emailTemplateIdNoAn e-mail message template for the invitations by e-mail.
smsTemplateIdNoAn SMS message template for the invitations by SMS.
valuesNoAnswers filled in beforehand, by field tag: strings (up to 20,000 characters), numbers, true/false or null. Unknown tags are rejected. A sensitive field's value is stored encrypted.

Each recipient:

FieldRequiredMeaning
roleWhen the form has several rolesThe role's tag in the form (not its display name).
nameYes1 to 200 characters.
emailFor channel emailThe address the invitation goes to.
phoneFor channel sms8 to 15 digits, with or without + and spaces. A Danish number may leave out +45.
channelNoemail, sms or link for this recipient.
cprWhen the role needs itExactly 10 digits. Stored encrypted, never returned.
emailTemplateId, smsTemplateIdNoThis recipient's own template.

The e-mail template is chosen in this order: the recipient's, the request's, the role's in the form, the form's default invitation template, the standard invitation. The SMS template: the recipient's, the request's, the standard SMS. These are the webflow's invitations, not the e-mails of the signing case a form may create later.

The invitation's subject and texts can use {recipient_name}, {case_name} (the webflow's title), {company_name} and the other global fields, your values (never a sensitive one) and every role's recipient tags, such as {customer_name}. An SMS gets the link where it says {recipient_url}; the standard texts already do. A placeholder without a value is left empty.

A role with nothing to fill in (it only signs later, or receives a copy) is never sent an invitation, but still needs its recipient, with the contact its channel needs.

Own questions

With form instead of formId you need no form in the dashboard. NextSign saves the questions as a form of your company that only collects answers: invitations only, no public link, no documents, no case. It shows under Formularer, with the webflows sent from it. The same user sending the same form again reuses it, unless someone has changed it in the dashboard since; then a new one is made, so a request never sends questions it did not define.

FieldRequiredMeaning
titleYesThe form's name, and the webflow's title unless you give title.
languageNoda (default), en, de, se or no: the language of the invitation's standard text and of the form page.
rolesNoWho answers: { "role": "customer", "name": "Customer" }, up to 10. Default: one role, recipient. Each role must answer at least one question, and gets one recipient. role is the key recipients[].role uses and names the role's {customer_name}, {customer_email} and {customer_phone} placeholders.
questionsOne of the twoThe questions, on one page. Up to 200.
pagesOne of the twoThe questions split over pages: { "title": "…", "description": "…", "questions": [ … ] }, up to 30 pages and 200 questions in all. A page shows each recipient only their own questions, and a page with none of theirs is skipped.

Each question:

FieldRequiredMeaning
tagYesThe answer's key: answers[].tag in the webflow, and a {placeholder} in mails. A letter, then letters, digits and _, up to 64. Unique in the form, and not starting with recipient_, case_, company_ or sender_.
labelYesThe question people see, up to 500 characters.
typeNotext (default), textarea, number, date, email (checked to look like an e-mail address), select (one of options), multiselect (any of options) or checkbox (yes/no, answered true or false).
optionsFor select, multiselectThe choices, 1 to 100 strings. The answer is the chosen string (a list of them for multiselect).
requiredNoWhether the question must be answered. A required checkbox must be ticked. Default false.
descriptionNoHelp text under the question.
roleWhen there are several rolesThe role who answers it.
sensitiveNoStored encrypted and never returned by the API, only marked redacted. Not for multiselect or checkbox.

When the last person has answered, the webflow is completed, the sender gets the dashboard's notice and e-mail, and your webflow.completed webhook fires. Read the answers with Get a Webflow.

Response

201 Created with Location: /v3/api/webflows/{id} and the webflow, as Get a Webflow returns it. A retry with the same key and body answers 200 OK with the same webflow as it is now.

Retries and invitation status

Idempotency-Key is required: 1 to 128 printable ASCII characters without spaces, unique per send within your company. The same key and body return the existing webflow and never send again, also for concurrent retries. The same key with another body answers 409 idempotency-conflict. A new key makes a new webflow, even with the same referenceId.

invitationStatusMeaning
pendingNo outcome recorded yet. A concurrent request may still be sending, or processing stopped.
submittedHanded to the e-mail or SMS service. Not proof of delivery: see delivery.
unknownThe send raised an error; the message may or may not have gone out.
not-requestedNothing was sent by the API: channel link, a role with nothing to fill in, or a webflow sent from the dashboard.

A new webflow answers 201 even when a send's outcome is unknown: check each recipient's invitationStatus. A retry with the same key never retries a send; use Resend for that. A server error or timeout can come after the webflow was saved: retry with the same key and body to get it.

Errors

StatusErrorMeaning
400validation-failedInvalid body or key, roles that don't match the form, a missing contact for a channel, unknown tags, a template of another type or company, or questions that don't make a form. details names each one.
403key-has-no-userThe key has no user to send as; use a key made in the dashboard.
403sender-not-in-companyThe key's user is no longer a member of your company.
404form-not-foundNo published, webflow-enabled form with this id in your company.
409idempotency-conflictThe key was used for another body. Nothing was sent.

An example of validation-failed, for an SMS recipient without a phone number and questions where one role has none of its own:

{
  "error": "validation-failed",
  "details": [
    {
      "field": "recipients[0].phone",
      "message": "is required for channel sms"
    },
    {
      "field": "form.roles[1].role",
      "message": "must answer at least one question"
    }
  ]
}