NextSign API
Webflows

Send a Webflow

Send a form to people to fill in with POST /api/v2/{company}/webflows/create, by e-mail, SMS or as links, from a published form or with the questions in the request.

POST https://www.nextsign.dk/api/v2/{company}/webflows/create

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 (form). See Webflows for the whole flow.

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://www.nextsign.dk/api/v2/{company}/webflows/create' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H '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: /api/v2/{company}/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://www.nextsign.dk/api/v2/{company}/webflows/create' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H '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://www.nextsign.dk/api/v2/{company}/webflows/create' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H '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

Header Idempotency-Key is required: 1 to 128 printable characters without spaces, unique per send. The same key and body return the existing webflow (200 OK) and never send again; the same key with another body answers 409 idempotency-conflict.

The body is the same as v3's, plus senderEmail:

FieldRequiredMeaning
formId or formOne of the twoA published webflow form, or the questions themselves. Own questions describes form.
recipientsYesExactly one per role of the form: role, name, and email, phone, channel, cpr, emailTemplateId, smsTemplateId as needed.
channelNoemail (default), sms or link for every recipient who doesn't name their own.
message, title, referenceId, emailTemplateId, smsTemplateId, valuesNoAs in v3.
senderEmailWith the bearer tokenThe e-mail of the user in your company who sends the invitations. Default: the API key's user, or the logged-in user. The company bearer token has no user, so it needs senderEmail.

Every field, the template order, placeholders and the question types are described under Send a Webflow (v3).

Response

201 Created with Location: /api/v2/{company}/webflows/{id}/get and { "webflow": … }, as Get a Webflow describes. Check each recipient's invitationStatus: a send with an unknown outcome still answers 201, and a retry with the same key never sends again. Use Resend for that.

Errors

StatusErrorMeaning
400validation-failedInvalid body or key, a missing senderEmail with the bearer token, roles that don't match the form, a missing contact for a channel, unknown tags or questions that don't make a form. details names each one.
401Missing or invalid credentials, or another company's.
403sender-not-in-companysenderEmail, or the key's user, is not a user in 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.
{
  "error": "validation-failed",
  "details": [
    {
      "field": "senderEmail",
      "message": "is required with the company's bearer token: the e-mail of the user in your company who sends the invitations"
    }
  ]
}