> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchski-attract.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List forms

> Retrieve a paginated list of forms.

```php Laravel wrap theme={"dark"}
use Fetchski\AttractCmsLaravel\Facades\Attract;

$formList = Attract::forms()->listForms();
```

```json 200 wrap theme={"dark"}
{
  "results": [
    {
      "title": "Example title",
      "contents": {
        "metaType": "area",
        "_id": "clx8m2k4p0000a1b2c3d4e5f6",
        "items": [
          {
            "type": "form-section",
            "_id": "clx8m2k4p0000a1b2c3d4e5f6",
            "metaType": "widget",
            "formFontOverrides": [],
            "formEyebrowEnabled": true,
            "formEyebrow": "Get in touch",
            "formEyebrowColor": "Example form eyebrow color",
            "formEyebrowColorLight": "Example form eyebrow color light",
            "formEyebrowWeight": "bold",
            "formEyebrowSize": "normal",
            "formHeading": "Send us a message",
            "formHeadingColor": "Example form heading color",
            "formHeadingColorLight": "Example form heading color light",
            "formHeadingWeight": "extrabold",
            "formHeadingSize": "normal",
            "formIntro": "Fill out the form below and we’ll get back to you shortly.",
            "formIntroColor": "Example form intro color",
            "formIntroColorLight": "Example form intro color light",
            "formIntroWeight": "normal",
            "formIntroSize": "normal",
            "formBand": "raised",
            "formAccentColor": "Example form accent color",
            "formAccentColorLight": "Example form accent color light",
            "formAlign": "center",
            "formWidth": "normal",
            "formLabelGap": "normal",
            "formBg": "transparent",
            "formBgCustom": "Example form bg custom",
            "formBgLight": "inherit",
            "formBgLightCustom": "Example form bg light custom",
            "formSubmitLabel": "Submit",
            "formSubmitVariant": "solid",
            "formSubmitSize": "normal",
            "formSubmitRadius": "slight",
            "formSubmitColor": "--fetchski-accent",
            "formSubmitColorLight": "Example form submit color light",
            "formSubmitTextColor": "--fetchski-ink",
            "formSubmitTextColorLight": "Example form submit text color light",
            "formSubmitHoverColor": "Example form submit hover color",
            "formSubmitHoverColorLight": "Example form submit hover color light",
            "formSubmitStyle": "sweep",
            "formSubmitShadowColor": "Example form submit shadow color",
            "formSubmitShadowColorLight": "Example form submit shadow color light",
            "formSubmitAnimation": "lift-scale",
            "formSubmitIcon": "Example form submit icon",
            "formSubmitIconFamily": "classic-regular",
            "formSubmitIconPosition": "before",
            "formSubmitIconNudge": false,
            "_form": [],
            "sectionCss": {},
            "fields": {}
          }
        ]
      },
      "slug": "example-slug",
      "visibility": "public",
      "scheduledPublish": "Example scheduled publish",
      "scheduledUnpublish": "Example scheduled unpublish",
      "thankYouHeading": "Example thank you heading",
      "thankYouBody": {
        "metaType": "area",
        "_id": "clx8m2k4p0000a1b2c3d4e5f6",
        "items": [
          {
            "type": "@apostrophecms/rich-text",
            "_id": "clx8m2k4p0000a1b2c3d4e5f6",
            "metaType": "widget",
            "content": "<p>Hello from the API.</p>",
            "sectionCss": {}
          }
        ]
      },
      "sendConfirmationEmail": true,
      "emailConfirmationField": "jo@acme.example",
      "emails": [],
      "email": "jo@acme.example",
      "googleSheetSubmissions": true,
      "googleSpreadsheetId": "clx8m2k4p0000a1b2c3d4e5f6",
      "googleSheetName": "Example google sheet name",
      "submitLabel": "Example submit label",
      "enableRecaptcha": true,
      "enableQueryParams": true,
      "queryParamList": [],
      "formActions": [],
      "archived": false,
      "_id": "clx8m2k4p0000a1b2c3d4e5f6",
      "type": "Example type",
      "createdAt": "2026-10-24T09:30:00.000Z",
      "updatedAt": "2026-10-24T09:30:00.000Z",
      "aposShareKey": "k3v9x2m7q1z8w4p6"
    }
  ],
  "pages": 1,
  "currentPage": 1
}
```

## In your app

A controller answers a route on your app: it calls `listForms()` and returns the answer.

**1. Add the controller**

```php app/Http/Controllers/ListFormsController.php theme={"dark"}
<?php

declare(strict_types=1);

namespace App\Http\Controllers;

use Fetchski\AttractCmsLaravel\Data\FormList;
use Fetchski\AttractCmsLaravel\Facades\Attract;

final class ListFormsController
{
    public function __invoke(): FormList
    {
        return Attract::forms()->listForms();
    }
}
```

**2. Add the route**

```php routes/web.php theme={"dark"}
use App\Http\Controllers\ListFormsController;
use Illuminate\Support\Facades\Route;

Route::get('/form', ListFormsController::class);
```

**3. Call it**

```bash Terminal theme={"dark"}
curl http://localhost:8000/form
```

With `php artisan serve` running, it prints its answer as JSON.

> [!TIP]
>
> To keep the call in an Action instead, this writes `app/Actions/Attract/ListForms.php` (an invokable Action that calls `listForms()`) and its test under `tests/Feature/Actions/Attract/` (Pest when your app has it):
>
> ```bash Terminal theme={"dark"}
> php artisan make:attract-action forms.listForms
> ```

## Call it from the terminal

```bash Terminal theme={"dark"}
php artisan attract:call forms.listForms
```

It calls `listForms()` on your default site and prints its answer as JSON. See [Call any method from the terminal](https://docs.fetchski-attract.com/call-command.md) for every argument type.

```bash Terminal theme={"dark"}
php artisan attract:call forms.listFormsPick fields=title,slug
```

Only the fields you name, for every document across every page: [Find an id](https://docs.fetchski-attract.com/find-an-id.md).

> [accordion] Optional parameters
>
> Named arguments, e.g. `listForms(page: …)`; leave out the optional ones.
>
> **page** `?int`
>
> **Optional.** Leave it out and the site uses `1`. Page number for pagination (1-based)
>
> **perPage** `?int`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Documents per page. Each content type has its own default (core’s is 50; a type may set another). There is no upper limit: a large value answers the whole list at once, which is slow on a big one. At least 1.
>
> **search** `?string`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Matches documents by their text. Ignored for the public and API keys on a type whose public fields leave some out (a search would match the hidden ones).
>
> **aposMode** `Enums\\AposMode|string|null`
>
> **Optional.** Leave it out and the site uses `"published"`. `published` (the default) or `draft`. Drafts need a credential that may see them: an API key with the type’s write scope (`content:<type>:write`), or a signed-in editor. The public and a key with only the read scope get 403. One of `draft`, `published`.
>
> **aposLocale** `?string`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. The locale to read or write, e.g. `en` (default: the site’s default locale).
>
> **renderAreas** `?bool`
>
> **Optional.** Leave it out and the site uses `false`. true: each area’s widgets come back rendered as HTML (`_rendered`), beside their data.
>
> **slug** `?string`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Only the document with exactly this slug: a list of one, or an empty list when none has it. Use it to find a document by the name in its URL.

> [accordion] Returns
>
> A `FormList` (`Fetchski\AttractCmsLaravel\Data\FormList`). A page of Form documents. Read its properties (`$formList->results`): each says whether the site always sends it. The example answer is the site’s wire JSON: some keys differ from the property names (`_id` → `id`, `_form` → `form`, `_destination` → `destination`).
>
> **results** `Collection\<int, Form\>`
>
> **Always sent.** A list of `Form`. This page’s documents; empty past the last page.
>
> **Form (Fetchski\AttractCmsLaravel\Data\Form)**
>
> Form content type
>
> **title** `string`
>
> **Always sent.** Its title: the name it goes by in every list, and the heading of its page where it has one.
>
> **slug** `string`
>
> **Always sent.** The URL name: lowercase words joined by hyphens (letters outside a–z, even emoji, are kept).
>
> **visibility** `Enums\\Visibility|string`
>
> **Always sent.** Select whether this content is public or private. One of `public`, `loginRequired`; a newer site may send others, so keep a fallback.
>
> **email** `string`
>
> **Always sent.** The "from" address on this form's emails. A new form starts with the Email in Site settings → Brand; change it here for this form.
>
> **id** `string`
>
> **Always sent.** The document’s id. On a type with drafts it ends in its locale and mode (`…:en:published`, `…:en:draft`): the part before the first colon is its `aposDocId`, shared by both copies. The `{_id}` the type’s routes take.
>
> **type** `string`
>
> **Always sent.** The document type’s name: always this type’s.
>
> **createdAt** `CarbonImmutable`
>
> **Always sent.** When it was created (ISO 8601). Format: an ISO 8601 date and time.
>
> **updatedAt** `CarbonImmutable`
>
> **Always sent.** When it last changed (ISO 8601). Format: an ISO 8601 date and time.
>
> **contents** `?FormSectionArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormSectionArea`. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area. A new document starts with `form-section`.
>
> **FormSectionArea (Fetchski\AttractCmsLaravel\Data\FormSectionArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormSectionWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionWidget`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). At most 1 items.
>
> **FormSectionWidget (Fetchski\AttractCmsLaravel\Data\FormSectionWidget)**
>
> A `form-section` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormSectionWidgetType|string`
>
> **Always sent.** The widget’s type: always `form-section`. One of `form-section`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **formFontOverrides** `Collection\<int, FormSectionWidgetFormFontOverridesItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionWidgetFormFontOverridesItem`. Optional. Set part of this form in a different typeface. Leave empty to follow the site’s fonts (Site design → Typography). At most 4 items.
>
> **FormSectionWidgetFormFontOverridesItem (Fetchski\AttractCmsLaravel\Data\FormSectionWidgetFormFontOverridesItem)**
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **target** `Enums\\Target|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Which text this typeface replaces. Rows apply in order, so a broad row (Everything) followed by a narrow one (Headings) gives the section a base face plus an exception. One of `all`, `heading`, `body`, `eyebrow`, `button`, `code`; a newer site may send others, so keep a fallback.
>
> **source** `Enums\\Source|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Where the typeface comes from. The first option costs nothing extra — those faces are already loaded. The others load an additional font on pages that use this section. One of `slot`, `curated`, `cdn`, `upload`; a newer site may send others, so keep a fallback.
>
> **slot** `Enums\\Slot|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Set in Site design → Typography. Following the site’s own faces keeps a section on-brand and adds no download. One of `display`, `body`, `accent`; a newer site may send others, so keep a fallback.
>
> **curated** `Enums\\Curated|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Vetted families from Bunny Fonts and Fontshare, with their available weights already verified. One of `archivo`, `bricolage-grotesque`, `clash-display`, `courier-prime`, `dm-mono`, `dm-sans`, `fira-code`, `fraunces`, `general-sans`, `ibm-plex-mono`, `ibm-plex-sans`, `inconsolata`, `inter`, `jetbrains-mono`, `karla`, `lora`, `manrope`, `nunito-sans`, `outfit`, `playfair-display`, `public-sans`, `red-hat-mono`, `satoshi`, `sentient`, `sora`, `source-code-pro`, `source-sans-3`, `source-serif-4`, `space-grotesk`, `space-mono`, `spline-sans-mono`, `supreme`, `switzer`, `syne`, `ubuntu-mono`, `unbounded`, `victor-mono`, `work-sans`, `zodiak`; a newer site may send others, so keep a fallback.
>
> **cdnProvider** `Enums\\CdnProvider|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Where to browse for the family. Pick one, then follow the link below to find the exact name. One of `bunny`, `fontshare`; a newer site may send others, so keep a fallback.
>
> **cdnFamily** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Exactly as the provider’s catalog spells it, e.g. "Space Grotesk" or "Clash Display". A name the provider doesn’t have loads nothing and this row is ignored.
>
> **cdnWeights** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Comma-separated weights to load, e.g. 400, 700. Empty loads 400, 500, 700. Weights the family doesn’t ship are skipped by the CDN and synthesized by the browser (faux bold) — but a family that ships only ONE weight (Acme, for instance) loads nothing at all unless that weight is among these, so set it explicitly if the typeface doesn’t appear.
>
> **uploads** `Collection\<int, FormSectionWidgetFormFontOverridesItemUploadsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionWidgetFormFontOverridesItemUploadsItem`. One file per weight/style of the SAME typeface. woff2 strongly recommended (smallest, universally supported); woff/ttf/otf also accepted. At most 4 items.
>
> **FormSectionWidgetFormFontOverridesItemUploadsItem (Fetchski\AttractCmsLaravel\Data\FormSectionWidgetFormFontOverridesItemUploadsItem)**
>
> **file** `array\<string, mixed\>`
>
> **Always sent.** File attachment reference.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **weight** `Enums\\Weight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Weight. One of `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`; a newer site may send others, so keep a fallback.
>
> **style** `Enums\\Style|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Style. One of `normal`, `italic`; a newer site may send others, so keep a fallback.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fallback** `Enums\\Fallback|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Generic system font shown while this typeface loads (and if it fails). Curated picks set this automatically. One of `sans`, `serif`, `mono`; a newer site may send others, so keep a fallback.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **formEyebrowEnabled** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Show eyebrow.
>
> **formEyebrow** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Small label shown above the title.
>
> **formEyebrowColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional. Overrides the eyebrow + its dash. Leave empty to use the secondary (mint) color.
>
> **formEyebrowColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color, then the mint default.
>
> **formEyebrowWeight** `Enums\\FormEyebrowWeight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Eyebrow weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`; a newer site may send others, so keep a fallback.
>
> **formEyebrowSize** `Enums\\FormEyebrowSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Eyebrow size. One of `small`, `normal`, `large`, `xlarge`; a newer site may send others, so keep a fallback.
>
> **formHeading** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Heading.
>
> **formHeadingColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional — leave empty to track the theme text color.
>
> **formHeadingColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color.
>
> **formHeadingWeight** `Enums\\FormHeadingWeight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`; a newer site may send others, so keep a fallback.
>
> **formHeadingSize** `Enums\\FormHeadingSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Size. One of `small`, `normal`, `large`, `xlarge`, `xxlarge`; a newer site may send others, so keep a fallback.
>
> **formIntro** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional short sentence under the heading.
>
> **formIntroColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional — leave empty to use the muted text color.
>
> **formIntroColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color.
>
> **formIntroWeight** `Enums\\FormIntroWeight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`; a newer site may send others, so keep a fallback.
>
> **formIntroSize** `Enums\\FormIntroSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Size. One of `small`, `normal`, `large`, `xlarge`, `xxlarge`; a newer site may send others, so keep a fallback.
>
> **formBand** `Enums\\FormBand|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Plain sits on the page; Raised is a contained card; Accent is a solid brand-color band. One of `plain`, `raised`, `accent`; a newer site may send others, so keep a fallback.
>
> **formAccentColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The accent band color. Leave empty to use the site accent color.
>
> **formAccentColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color, then the accent.
>
> **formAlign** `Enums\\FormAlign|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Alignment of the section header (the form fields stay left-aligned for legibility). One of `center`, `left`; a newer site may send others, so keep a fallback.
>
> **formWidth** `Enums\\FormWidth|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Content width. One of `narrow`, `normal`, `wide`; a newer site may send others, so keep a fallback.
>
> **formLabelGap** `Enums\\FormLabelGap|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Vertical space between each field’s label and its input. One of `compact`, `normal`, `roomy`, `spacious`; a newer site may send others, so keep a fallback.
>
> **formBg** `Enums\\FormBg|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The section’s full-width background band in dark mode. Transparent lets the page background show through. The palette options track the site colors; choose “Custom color…” for a specific color. One of `transparent`, `surface`, `raised`, `sunken`, `hill`, `accent-soft`, `custom`; a newer site may send others, so keep a fallback.
>
> **formBgCustom** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Used when “Section background (dark theme)” is set to Custom color.
>
> **formBgLight** `Enums\\FormBgLight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. “Match dark theme” reuses the dark-theme choice; otherwise set the light-mode band independently. One of `inherit`, `transparent`, `surface`, `raised`, `sunken`, `hill`, `accent-soft`, `custom`; a newer site may send others, so keep a fallback.
>
> **formBgLightCustom** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Used when “Section background (light theme)” is set to Custom color.
>
> **formSubmitLabel** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The visible button text. Leave empty to hide the button.
>
> **formSubmitVariant** `Enums\\FormSubmitVariant|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Solid fills with the color; Outline / Soft / Text link use it for the border + text. One of `solid`, `outline`, `soft`, `link`; a newer site may send others, so keep a fallback.
>
> **formSubmitSize** `Enums\\FormSubmitSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Button size. One of `small`, `normal`, `large`; a newer site may send others, so keep a fallback.
>
> **formSubmitRadius** `Enums\\FormSubmitRadius|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Corner radius. One of `pill`, `rounded`, `slight`, `square`; a newer site may send others, so keep a fallback.
>
> **formSubmitColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Solid fill, or the border + text for the other styles. Defaults to the brand accent; CLEAR it for a transparent, outline-only button.
>
> **formSubmitColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color. (Brand tokens already flip per theme.)
>
> **formSubmitTextColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The text/icon color. Clear it to derive from the button color (readable on solid fills).
>
> **formSubmitTextColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme label color.
>
> **formSubmitHoverColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional. Drives the hover treatment. Leave empty to derive it from the button color.
>
> **formSubmitHoverColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme hover color.
>
> **formSubmitStyle** `Enums\\FormSubmitStyle|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The hover treatment: a soft shadow, a colored offset shadow, a glow, a fill sweep, or a thicker border. One of `none`, `single`, `dual`, `glow`, `sweep`, `thicken`; a newer site may send others, so keep a fallback.
>
> **formSubmitShadowColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional. The offset-shadow or glow color on hover. Leave empty to use the site secondary color.
>
> **formSubmitShadowColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme shadow color.
>
> **formSubmitAnimation** `Enums\\FormSubmitAnimation|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Hover motion. One of `lift`, `scale`, `lift-scale`, `none`; a newer site may send others, so keep a fallback.
>
> **formSubmitIcon** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Any Font Awesome icon name, e.g. star, bolt, arrow-left-to-bracket (no “fa-” prefix). Browse at fontawesome.com/icons.
>
> **formSubmitIconFamily** `Enums\\FormSubmitIconFamily|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Icon family. One of `classic-regular`, `duotone-regular`, `brands`, `jelly`, `jelly-duo`, `whiteboard`; a newer site may send others, so keep a fallback.
>
> **formSubmitIconPosition** `Enums\\FormSubmitIconPosition|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Which side of the label the icon sits on (when an icon name is set). One of `before`, `after`; a newer site may send others, so keep a fallback.
>
> **formSubmitIconNudge** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. The icon slides toward its side on hover (e.g. an arrow edges outward).
>
> **form** `Collection\<int, array\<string, mixed\>\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The Form record that stores this form’s submissions and routes them (its Actions / integrations / Google Sheet). Create one in the Forms manager. The fields themselves are built right here on the page. The related `@apostrophecms/form` documents, in order (empty when none). To set it, send a list of `{ "_id": "…" }`, one per document (one at most); a document the site can’t find is left out. At most 1 items.
>
> **sectionCss** `?CustomCSS`
>
> **Sometimes sent:** `null` when the site leaves it out. A `CustomCSS`. CSS for this one section, typed into the slot of the part it styles. It wins over Site design → Custom CSS. Nested rules like &:hover, @media (width >= 48rem) and \[data-theme="light"] & work inside a slot.
>
> **CustomCSS (Fetchski\AttractCmsLaravel\Data\CustomCSS)**
>
> **slots** `array\<string, string\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The CSS typed into each part slot, by slot name.
>
> **css** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The compiled CSS (read only: rebuilt from `slots`).
>
> **mark** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The site’s check mark for `css` (read only).
>
> **fields** `?FormSectionFieldsArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormSectionFieldsArea`. Add and arrange the form’s fields here — edited live on the page. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormSectionFieldsArea (Fetchski\AttractCmsLaravel\Data\FormSectionFieldsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormConditionalWidget|FormGroupWidget|FormDividerWidget|RichTextWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionFieldsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them).
>
> **FormSectionFieldsAreaItem (Fetchski\AttractCmsLaravel\Data\FormSectionFieldsAreaItem)**
>
> A widget in an area that takes `@apostrophecms/form-text-field`, `@apostrophecms/form-textarea-field`, `@apostrophecms/form-file-field`, `@apostrophecms/form-boolean-field`, `@apostrophecms/form-select-field`, `@apostrophecms/form-radio-field`, `@apostrophecms/form-checkboxes-field`, `@apostrophecms/form-conditional`, `@apostrophecms/form-group`, `@apostrophecms/form-divider`, `@apostrophecms/rich-text`: the one its `type` names.
>
> **FormTextFieldWidget (Fetchski\AttractCmsLaravel\Data\FormTextFieldWidget)**
>
> A `@apostrophecms/form-text-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormTextFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-text-field`. One of `@apostrophecms/form-text-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **inputType** `Enums\\InputType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. If you are requesting certain formatted information (e.g., email, url, phone number), select the relevant input type here. If not, use "Text". One of `text`, `email`, `tel`, `url`, `date`, `password`; a newer site may send others, so keep a fallback.
>
> **placeholder** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Text to display in the field before someone uses it (e.g., to provide additional directions).
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormTextareaFieldWidget (Fetchski\AttractCmsLaravel\Data\FormTextareaFieldWidget)**
>
> A `@apostrophecms/form-textarea-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormTextareaFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-textarea-field`. One of `@apostrophecms/form-textarea-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **placeholder** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Text to display in the field before someone uses it (e.g., to provide additional directions).
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormFileFieldWidget (Fetchski\AttractCmsLaravel\Data\FormFileFieldWidget)**
>
> A `@apostrophecms/form-file-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormFileFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-file-field`. One of `@apostrophecms/form-file-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Allow multiple file attachments.
>
> **limitSize** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Limit file size?
>
> **maxSize** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. In Bytes.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormBooleanFieldWidget (Fetchski\AttractCmsLaravel\Data\FormBooleanFieldWidget)**
>
> A `@apostrophecms/form-boolean-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormBooleanFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-boolean-field`. One of `@apostrophecms/form-boolean-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **checked** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. If "yes," the checkbox will start in the checked state.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormSelectFieldWidget (Fetchski\AttractCmsLaravel\Data\FormSelectFieldWidget)**
>
> A `@apostrophecms/form-select-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormSelectFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-select-field`. One of `@apostrophecms/form-select-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **choices** `Collection\<int, FormSelectFieldWidgetChoicesItem\>`
>
> **Always sent.** A list of `FormSelectFieldWidgetChoicesItem`. Select input options. Its fields are listed under the first `FormSelectFieldWidgetChoicesItem` above.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Allow multiple options to be selected.
>
> **size** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. Number of options in the list that should be visible. At least 0.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormRadioFieldWidget (Fetchski\AttractCmsLaravel\Data\FormRadioFieldWidget)**
>
> A `@apostrophecms/form-radio-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormRadioFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-radio-field`. One of `@apostrophecms/form-radio-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **choices** `Collection\<int, FormRadioFieldWidgetChoicesItem\>`
>
> **Always sent.** A list of `FormRadioFieldWidgetChoicesItem`. Radio input options. At least 1 items. Its fields are listed under the first `FormRadioFieldWidgetChoicesItem` above.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Allow multiple options to be selected.
>
> **size** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. Number of options in the list that should be visible. At least 0.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormCheckboxesFieldWidget (Fetchski\AttractCmsLaravel\Data\FormCheckboxesFieldWidget)**
>
> A `@apostrophecms/form-checkboxes-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormCheckboxesFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-checkboxes-field`. One of `@apostrophecms/form-checkboxes-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **choices** `Collection\<int, FormCheckboxesFieldWidgetChoicesItem\>`
>
> **Always sent.** A list of `FormCheckboxesFieldWidgetChoicesItem`. Checkbox input options. At least 1 items. Its fields are listed under the first `FormCheckboxesFieldWidgetChoicesItem` above.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormConditionalWidget (Fetchski\AttractCmsLaravel\Data\FormConditionalWidget)**
>
> A `@apostrophecms/form-conditional` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormConditionalWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-conditional`. One of `@apostrophecms/form-conditional`; a newer site may send others, so keep a fallback.
>
> **conditionName** `string`
>
> **Always sent.** Form field to check.
>
> **conditionValue** `string`
>
> **Always sent.** Value that activates this group.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **contents** `?FormConditionalContentsArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormConditionalContentsArea`. aposForm:conditionalContentsHelp Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area. Its fields are listed under the first `FormConditionalContentsArea` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormGroupWidget (Fetchski\AttractCmsLaravel\Data\FormGroupWidget)**
>
> A `@apostrophecms/form-group` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormGroupWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-group`. One of `@apostrophecms/form-group`; a newer site may send others, so keep a fallback.
>
> **label** `string`
>
> **Always sent.** Group Label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **contents** `?FormGroupContentsArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormGroupContentsArea`. aposForm:groupContentsHelp Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area. Its fields are listed under the first `FormGroupContentsArea` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormDividerWidget (Fetchski\AttractCmsLaravel\Data\FormDividerWidget)**
>
> A `@apostrophecms/form-divider` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormDividerWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-divider`. One of `@apostrophecms/form-divider`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **RichTextWidget (Fetchski\AttractCmsLaravel\Data\RichTextWidget)**
>
> A `@apostrophecms/rich-text` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\RichTextWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/rich-text`. One of `@apostrophecms/rich-text`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **content** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The text as HTML, e.g. `<h2>Our story</h2><p>It began with <strong>one</strong> idea.</p>`. The site keeps the tags and styles this area’s editor offers (paragraphs, headings, bold, italic, links, lists…) and removes the rest.
>
> **sectionCss** `?CustomCSS`
>
> **Sometimes sent:** `null` when the site leaves it out. A `CustomCSS`. CSS for this one section, typed into the slot of the part it styles. It wins over Site design → Custom CSS. Nested rules like &:hover, @media (width >= 48rem) and \[data-theme="light"] & work inside a slot. Its fields are listed under the first `CustomCSS` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **scheduledPublish** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. An ISO 8601 date and time, e.g. `2026-10-21T14:30:00.000Z`.
>
> **scheduledUnpublish** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. An ISO 8601 date and time, e.g. `2026-10-21T14:30:00.000Z`.
>
> **thankYouHeading** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Thank you message title.
>
> **thankYouBody** `?RichTextArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `RichTextArea`. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **RichTextArea (Fetchski\AttractCmsLaravel\Data\RichTextArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, RichTextWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `RichTextWidget`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `RichTextWidget` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **sendConfirmationEmail** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Enable this to send a message to the person who submits this form.
>
> **emailConfirmationField** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Enter the "name" value of the field where people with enter their email address. For best results, make sure this field only accepts email addresses.
>
> **emails** `Collection\<int, FormEmailsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormEmailsItem`. Email Address(es) for Results.
>
> **FormEmailsItem (Fetchski\AttractCmsLaravel\Data\FormEmailsItem)**
>
> **email** `string`
>
> **Always sent.** Email Address for Results. Format: an email address.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **conditions** `Collection\<int, FormEmailsItemConditionsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormEmailsItemConditionsItem`. For example, if you only notify this email address if the "country" field is set to "Austria". All conditions must be met. Add the email again with another conditional set if needed.
>
> **FormEmailsItemConditionsItem (Fetchski\AttractCmsLaravel\Data\FormEmailsItemConditionsItem)**
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **field** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Only select (drop-down) and checkbox fields can be used for this condition.
>
> **value** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Enter the value an end-user will enter to meet this conditional.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **googleSheetSubmissions** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Submit to Google Spreadsheets.
>
> **googleSpreadsheetId** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Google Spreadsheet ID.
>
> **googleSheetName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The name of the sheet tab in your Google spreadsheet where you want the submission appended. If not provided, the first sheet of the spreadsheet will be used.
>
> **submitLabel** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Submit button label.
>
> **enableRecaptcha** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. To use, reCAPTCHA a site ID and secret key must be configured in website code or the website global settings.
>
> **enableQueryParams** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Enable query parameter capture.
>
> **queryParamList** `Collection\<int, FormQueryParamListItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormQueryParamListItem`. Create an array item for each query parameter value you wish to capture.
>
> **FormQueryParamListItem (Fetchski\AttractCmsLaravel\Data\FormQueryParamListItem)**
>
> **key** `string`
>
> **Always sent.** Key.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **lengthLimit** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. Enter a whole number to limit the length of the value saved. At least 1.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **formActions** `Collection\<int, FormFormActionsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormFormActionsItem`. What happens to each submission, beyond being stored in the CMS. Add one row per destination; several can run for one form. Storage always happens regardless.
>
> **FormFormActionsItem (Fetchski\AttractCmsLaravel\Data\FormFormActionsItem)**
>
> **actionType** `Enums\\ActionType|string`
>
> **Always sent.** Action. One of `webhook`, `emailNotify`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **enabled** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Enabled.
>
> **destination** `Collection\<int, array\<string, mixed\>\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Where each submission is sent (⌘K → Webhook Destinations). It is signed with that destination’s secret, retried if the receiver is down, and listed on its Deliveries tab. The related `webhook-destination` documents, in order (empty when none). To set it, send a list of `{ "_id": "…" }`, one per document (one at most); a document the site can’t find is left out. At most 1 items.
>
> **notifyEmail** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Where a copy of each submission is emailed (sent through Connections → Email). Replying answers the visitor. When set, an email address; empty or null when not.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **archived** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. In the archive: kept, but out of every list and off the site until it is restored. `false` (or null) for a live document.
>
> **aposShareKey** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The draft’s preview share key, while its share link is on: the link is the draft’s `_url` with `aposShareKey` and `aposShareId` (the draft’s `_id`) in its query. Absent otherwise, and on published documents.
>
> **pages** `int`
>
> **Always sent.** Pages in the whole list (0 when it is empty).
>
> **currentPage** `int`
>
> **Always sent.** This page, from 1.

> [accordion] Errors
>
> Nothing to catch: the SDK retries what is safe, and Laravel logs and renders the rest (see [Errors and testing](https://docs.fetchski-attract.com/laravel/errors.md)).
>
> **ValidationFailed** `400`
>
> The site refused what was sent: `errors()` lists each field’s problem, `siteMessage()` the first.
>
> **Retried first:** No. **Read:** `errors()` (field → messages), `siteMessage()`.
>
> **AuthenticationFailed** `401`
>
> The API key is missing or refused (malformed, revoked, expired), or a signature its signing mode needs is missing or stale.
>
> **Retried first:** No. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **Forbidden** `403`
>
> The key may not do this: a scope it lacks, or an address outside its allowlist. `siteMessage()` names it.
>
> **Retried first:** No. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **NotFound** `404`
>
> Nothing matches, or the caller may not see it.
>
> **Retried first:** No. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **SiteError** `500`
>
> The site failed. Its logs say why.
>
> **Retried first:** No (only a 502, 503 or 504 is retried). **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **SiteUnreachable** `no answer`
>
> No answer: DNS, a refused connection, TLS, or the timeout (15 s per attempt by default).
>
> **Retried first:** Yes, after 0.5 s then 1 s. **Read:** `reason()`, `neverConnected()`.
>
> **RequestNotSent** `not sent`
>
> The client refused to send it (e.g. a path segment of `..`); the site never saw it.
>
> **Retried first:** No. **Read:** `reason()` (what to change).
>
> **SiteRequestFailed** `any other`
>
> Any other status, or a success whose JSON doesn’t match this SDK version’s types (update the SDK).
>
> **Retried first:** No. **Read:** `reason()`, `status()`.
>
> **UnknownSite** `setup`
>
> `Attract::site('acme')` named a slug that isn’t under `sites` in `config/fetchski-attract.php`.
>
> **Retried first:** No: nothing was sent. **Read:** `getMessage()`, `$e->slug`.
>
> **SiteConfigurationError** `setup`
>
> The site’s config entry is wrong: no `url`, a malformed `api_key`, a key filed under another slug, or no default site.
>
> **Retried first:** No: nothing was sent. **Read:** `getMessage()` (what to fix).

## Behavior

* **Access:** an API key with `content:forms:read` (or a master above it: `content:forms:all`, `content:all`, `admin:all`) reads the published documents; drafts (`aposMode=draft`) need `content:forms:write` (or a master above it). A signed-in person may call it as far as their own permissions allow; anyone else gets 404.
* **Rate limit:** the key’s own reads-per-minute limit, set when the key is created (default 600); over it, 429 with `Retry-After`. The client waits and retries for you; you see `RateLimited` only if that runs out.
* **Retries:** a read is safe to repeat: the client retries it on no answer, a 502/503/504 and a 429.
* **Timeout:** 15 s per attempt by default; raise `timeout` in `config/fetchski-attract.php` for longer.
* **Paging:** one page per call. To walk them all, use `listFormsAll()` (see More examples): it asks for the next page as you iterate, and stops after page `pages`.

## More examples

`listFormsAll()` takes `listForms()`’s arguments except `page`. `listFormsPick()` takes the same arguments except `page`, after the fields to answer: each row is the document’s `id` and those fields.

```php Every page wrap theme={"dark"}
use Fetchski\AttractCmsLaravel\Facades\Attract;

$forms = Attract::forms()->listFormsAll(); // LazyCollection<int, Form>: the next page is fetched as you iterate
```

```php Only some fields wrap theme={"dark"}
use Fetchski\AttractCmsLaravel\Facades\Attract;

$rows = Attract::forms()->listFormsPick(fields: ['title', 'slug']); // LazyCollection of ['id' => …, 'title' => …, 'slug' => …]: every form, across every page
```

## Test it

It calls the route above with the SDK faked: the fake answers every call with a valid example, so nothing leaves your machine and no config or key is needed. Save it as `tests/Feature/ListFormsTest.php`, then run your tests:

```php tests/Feature/ListFormsTest.php theme={"dark"}
<?php

declare(strict_types=1);

namespace Tests\Feature;

use Fetchski\AttractCmsLaravel\Facades\Attract;
use Tests\TestCase;

final class ListFormsTest extends TestCase
{
    public function test_list_forms(): void
    {
        Attract::fake();

        $this->getJson('/form')->assertOk();

        Attract::assertCalled('forms.listForms');
    }
}
```

```bash Terminal theme={"dark"}
php artisan test
```

**Answer with your own values:** fake `forms.listForms` with a `sequence()` of pages, each `FormList::factory()->make([...])`, and walk `listFormsAll()`.

```php tests/Feature/ListFormsAnswerTest.php theme={"dark"}
<?php

declare(strict_types=1);

namespace Tests\Feature;

use Fetchski\AttractCmsLaravel\Data\FormList;
use Fetchski\AttractCmsLaravel\Facades\Attract;
use Tests\TestCase;

final class ListFormsAnswerTest extends TestCase
{
    public function test_list_forms_answers_your_values(): void
    {
        Attract::fake([
            'forms.listForms' => Attract::sequence(
                FormList::factory()->make(['currentPage' => 1, 'pages' => 2]),
                FormList::factory()->make(['currentPage' => 2, 'pages' => 2]),
            ),
        ]);

        $forms = Attract::forms()->listFormsAll();

        $this->assertCount(2, $forms->all());
    }
}
```

To fake `listFormsAll()`, answer `forms.listForms` (the walk calls it page by page): a `sequence()` of answers for several pages.

## Related

> [card] [List a form’s locales](https://docs.fetchski-attract.com/laravel/reference/forms/get-form-locales.md)
>
> `Attract::forms()->getFormLocales()`

> [card] [Create a form](https://docs.fetchski-attract.com/laravel/reference/forms/create-form.md)
>
> `Attract::forms()->createForm()`

> [card] [Get a form](https://docs.fetchski-attract.com/laravel/reference/forms/get-form.md)
>
> `Attract::forms()->getForm()`

> [card] [Replace a form](https://docs.fetchski-attract.com/laravel/reference/forms/replace-form.md)
>
> `Attract::forms()->replaceForm()`

> [card] [Delete a form](https://docs.fetchski-attract.com/laravel/reference/forms/delete-form.md)
>
> `Attract::forms()->deleteForm()`

> [card] [Update a form](https://docs.fetchski-attract.com/laravel/reference/forms/update-form.md)
>
> `Attract::forms()->updateForm()`

> [card] [GET /@apostrophecms/form](https://docs.fetchski-attract.com/api-reference/forms/list-forms.md)
>
> The endpoint this calls, in the API reference: the HTTP request and answer, and every rule the site checks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.