curl --request POST \
--url https://verification.didit.me/v3/questionnaires/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "Customer Onboarding",
"description": "Additional information needed for verification",
"default_language": "en",
"languages": [
"en"
],
"is_active": true,
"form_elements": [
{
"element_type": "short_text",
"label": {
"en": "What is your occupation?"
},
"is_required": true
},
{
"element_type": "multiple_choice",
"label": {
"en": "Source of funds"
},
"is_required": true,
"options": [
{
"label": {
"en": "Employment"
}
},
{
"label": {
"en": "Business"
}
},
{
"label": {
"en": "Investments"
}
},
{
"label": {
"en": "Other"
}
}
]
}
]
}
'{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"languages": [
"<string>"
],
"default_language": "<string>",
"is_active": true,
"is_simple_questionnaire": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"question_types": [
"<string>"
],
"workflow_names": [
"<string>"
]
}Create a new questionnaire with custom questions, branching logic, and multi-language translations.
curl --request POST \
--url https://verification.didit.me/v3/questionnaires/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "Customer Onboarding",
"description": "Additional information needed for verification",
"default_language": "en",
"languages": [
"en"
],
"is_active": true,
"form_elements": [
{
"element_type": "short_text",
"label": {
"en": "What is your occupation?"
},
"is_required": true
},
{
"element_type": "multiple_choice",
"label": {
"en": "Source of funds"
},
"is_required": true,
"options": [
{
"label": {
"en": "Employment"
}
},
{
"label": {
"en": "Business"
}
},
{
"label": {
"en": "Investments"
}
},
{
"label": {
"en": "Other"
}
}
]
}
]
}
'{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"languages": [
"<string>"
],
"default_language": "<string>",
"is_active": true,
"is_simple_questionnaire": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"question_types": [
"<string>"
],
"workflow_names": [
"<string>"
]
}