Skip to main content

List Form Fields

GET 

/accounts/:account_id/forms/:form_id/fields

Returns the form's fields in a normalised format, as used by automation rules.

This is the format of the "Form response" conditions of automation rules, for the form_response_submitted event. For the fields as the form defines them, use Get a Form. How forms work, and the errors every Forms endpoint can return, are explained in List Forms.

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/forms/{form_id}/fields

Permissions:

  • User token: on accounts with the new rules system, Forms → read. Accounts on the legacy role system are not restricted.
  • Agent-bot token: allowed.

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
form_idstringYesForm publicId.

Example request

curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/fields' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Example response (200 OK)

{
"fields": [
{ "key": "text", "name": "Full name", "type": "plain_text", "options": [] },
{ "key": "number", "name": "Age", "type": "number", "options": [] },
{ "key": "email", "name": "Email", "type": "plain_text", "options": [] }
]
}

type is the automation-condition type (plain_text, number, list, ...); options lists the choices of select-type fields.

Error responses: the common Forms errors (403, 404, 500, 502, 503) listed in List Forms.

Request​

Responses​

The form's fields.