Get form

One form with its fields in order: label, type, required and instructions.

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

read

Opens the form in the Form Editor and returns its fields from top to bottom with their label, field type as named in the Fields panel, whether they are required and the text in the Instructions box. Use the labels with update_submission and add_form_field.

Parameters

Parameters: get_form
NameTypeDescription
form_id integer required integer Form id from list_forms.

Request

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

Example response

JSON

{
  "form_id": 5128977,
  "name": "Spring open day",
  "fields": [
    {
      "label": "Full name",
      "type": "Name",
      "required": true,
      "instructions": ""
    },
    {
      "label": "Email",
      "type": "Email",
      "required": true,
      "instructions": "We send the confirmation here"
    },
    {
      "label": "Phone",
      "type": "Phone",
      "required": false,
      "instructions": ""
    }
  ]
}

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.