Easymailing
Booking pages

List fields a booking form can ask

GET /booking_fields

GET/booking_fields

Lists the contact and company fields (built-in and custom attributes) that a booking page form can ask the person booking, with the reference, control and options each one needs.

When to use: Before building or changing configuration.fields of a booking page, to copy the field_reference and control of each field.

When not to use: To read the fields of a page you already have, use get_booking_page. To manage the attributes themselves, use the contact and company attribute operations (list_contact_attributes, list_company_attributes). Free questions that save to no record do not appear here: add them as source question.

Filters: The list is not paginated and has a fixed order: contact fields, then company fields. Fields that a visitor cannot fill (secondary emails, consent, creation dates, audience data) and selects without options are left out.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found. Only fields the user can write are listed.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/booking_fields" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "id": "string",    "field_reference": {      "entity": "contact",      "kind": "structural",      "key": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    },    "contract_version": 0,    "source": "contact",    "label": {      "kind": "i18n",      "key": "string",      "text": "string",      "resource_type": "string",      "resource_id": "string",      "resource_version": 0    },    "semantic_type": "string",    "control": "string",    "options": [      {        "value": "string",        "label": "string"      }    ],    "currency": "string",    "required": true  }]