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

Parameters: get_form
NameTypeDescription
form_id string required string Form ID from list_forms.

Request

cURL
curl https://cotlet.dev/api/v1/fillout/forms/form_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("fillout", "get_form", {"form_id":"form_8c41d2"})
Node.js
const result = await cotlet.call('fillout', 'get_form', {"form_id":"form_8c41d2"});
CLI
cotlet call fillout get_form --data '{"form_id":"form_8c41d2"}'

Example response

JSON

{
  "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"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.