Get form
A form's questions with ID and field type, plus calculations and URL parameters.
GET https://cotlet.dev/api/v1/fillout/forms/{form_id}
read
Returns the questions of one form in page order, each with its ID, label and field type, together with calculations, URL parameters and any quiz, scheduling or payment fields. Use the question IDs in update_question and set_question_logic. Logic is not part of this result; get_form_logic returns it.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id string required | string | Form ID from list_forms. |
Request
curl https://cotlet.dev/api/v1/fillout/forms/form_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fillout", "get_form", {"form_id":"form_8c41d2"}) const result = await cotlet.call('fillout', 'get_form', {"form_id":"form_8c41d2"}); cotlet call fillout get_form --data '{"form_id":"form_8c41d2"}' Example response
{
"form_id": "fpj3Kd9xQw2L",
"name": "Webinar registration",
"questions": [
{
"id": "q_full_name",
"name": "Full name",
"type": "ShortAnswer"
},
{
"id": "q_work_email",
"name": "Work email",
"type": "EmailInput"
},
{
"id": "q_company_size",
"name": "Company size",
"type": "Dropdown"
},
{
"id": "q_learn",
"name": "What do you want to learn?",
"type": "LongAnswer"
}
],
"calculations": [],
"url_parameters": [
{
"id": "utm_source",
"name": "utm_source"
}
]
}