Get form

One form with its fields: ID, label and type of each.

GET https://cotlet.dev/api/v1/jotform/forms/{form_id}

read

Returns the form title and every field in order, with the field ID, the label shown to respondents, the field type and whether it is required. Use the field IDs when you read or edit answers. It reads the form as it is now, so a field added today is in the list.

Parameters

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

Request

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

Example response

JSON

{
  "form_id": "242831904782058",
  "title": "Event registration",
  "fields": [
    {
      "field_id": "3",
      "label": "Full name",
      "type": "text",
      "required": true
    },
    {
      "field_id": "7",
      "label": "Email",
      "type": "email",
      "required": true
    },
    {
      "field_id": "9",
      "label": "Ticket type",
      "type": "dropdown",
      "required": true
    }
  ]
}

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.