List forms

Forms under Components with type, published state and fields.

GET https://cotlet.dev/api/v1/mautic/forms

read

Lists the forms of your Mautic. type is campaign or standalone. fields are the field names and types of each form. It lists the forms only; it does not read their submissions.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/mautic/forms \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("mautic", "list_forms")
Node.js
const result = await cotlet.call('mautic', 'list_forms');
CLI
cotlet call mautic list_forms

Example response

JSON

{
  "forms": [
    {
      "form_id": 4,
      "name": "Webinar signup",
      "type": "standalone",
      "published": true,
      "fields": [
        "Email",
        "Text: Short answer",
        "Select: Single or multiple choices"
      ]
    }
  ]
}

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.