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.
| Setting | Value |
|---|---|
| Method | GET |
| 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
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
form_id | string | Yes | Form 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
- 200
- 401
- 403
- 404
- 500
- 502
- 503
The form's fields.
The access token is missing or wrong, or its user does not belong to this account.
Forms is not enabled for the account, or (new rules system) the role lacks Forms → read.
The form was not found in the Forms app.
An unexpected error while talking to the Forms app.
The Forms app returned an error. error describes it.
The Forms integration is not configured on the server.