Create a data capture form
/data-capture-formsCreates a data capture form and returns it with a Location. name is required. It starts disabled, so no user is asked for its fields until status is enabled or internal_only. Send pages and fields to author it in one call; each field needs a type, and its reference is the key its answer is stored under. Put requiredness in validator, such as required|string. dry_run shows the result without saving it. Emits data_capture_form.created and sends no email. DELETE /data-capture-forms/{id} undoes it.
Query parameters
Validate and run the call without committing it, returning what the real call would return with
meta.dry_runset.
Headers
Makes a retry safe. Send a new UUID for each new request and reuse it only to retry that request; the first response is replayed for 24 hours.
Request body
application/json, required · DataCaptureFormCreate
The form's display name.
- One of:
The status to start in.
enabledasks every user for the form's fields,internal_onlyasks internal users only, anddisabledasks nobody. A new form isdisabledunless this says otherwise.enabled,disabled,internal_only The form's pages.
The form's fields.
{
"name": "UK Investor Profile",
"status": "enabled",
"fields": [
{
"type": "DATE",
"label": "Date of birth",
"reference": "date_of_birth",
"validator": "required|date",
"order": 1
},
{
"type": "TEXT",
"label": "Nationality",
"reference": "nationality",
"placeholder": "e.g. British",
"validator": "required|string",
"order": 2
},
{
"type": "DROPDOWN",
"label": "Country of tax residency",
"reference": "tax_residency",
"options": [
"United Kingdom",
"Ireland",
"Other"
],
"order": 3
}
]
}Responses
{
"data": {
"id": "9a9d1c5e-4f2b-4c8e-9a7d-2f1e6b3c4d5a",
"name": "string",
"status": "enabled",
"field_count": 1,
"pages": [
{
"id": "9a9d1c5e-4f2b-4c8e-9a7d-2f1e6b3c4d5a",
"name": "string",
"description": "string",
"order": 1
}
],
"fields": [
{
"id": "9a9d1c5e-4f2b-4c8e-9a7d-2f1e6b3c4d5a",
"label": "string",
"name": "string",
"description": "string",
"type": "string",
"reference": "string",
"validator": "string",
"placeholder": "string",
"pre_population_key": "string",
"backfill": true,
"order": 1,
"page_id": "9a9d1c5e-4f2b-4c8e-9a7d-2f1e6b3c4d5a",
"option_preset_id": "9a9d1c5e-4f2b-4c8e-9a7d-2f1e6b3c4d5a",
"options": [],
"required": true,
"conditions": [],
"condition_logic": "AND"
}
],
"created_at": "2026-06-12T10:00:00+00:00",
"updated_at": "2026-06-12T10:00:00+00:00"
}
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl -X POST https://your-org-domain/kong/core/api/v2/data-capture-forms\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"\
-d '{
"name": "UK Investor Profile",
"status": "enabled",
"fields": [
{
"type": "DATE",
"label": "Date of birth",
"reference": "date_of_birth",
"validator": "required|date",
"order": 1
},
{
"type": "TEXT",
"label": "Nationality",
"reference": "nationality",
"placeholder": "e.g. British",
"validator": "required|string",
"order": 2
},
{
"type": "DROPDOWN",
"label": "Country of tax residency",
"reference": "tax_residency",
"options": [
"United Kingdom",
"Ireland",
"Other"
],
"order": 3
}
]
}'