> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: About the Action Input Schema ## Article: About the Action Input Schema ## Article Link: https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/actions/about-the-action-input-schema.md ## Article Content: # About the Action Input Schema When an automation is triggered, Wix passes data from the trigger payload to your service so it can perform your action. You tell Wix exactly what data your action requires by defining the input schema. The input schema is a [JSON Schema](https://json-schema.org/) that allows you to define the data types your action needs. You must provide the input schema when you configure your action in your [app's dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). If the trigger payload fields do not match the fields in your input schema, your action will not run when the automation is triggered. ## Schema types and structure The input schema supports the following data types: + Strings. You can also [format](https://json-schema.org/understanding-json-schema/reference/string#built-in-formats) strings as emails, dates, etc. + Numbers + Integers + Booleans + Arrays + Objects Each key-value pair in the schema defines a field or set of fields in the action UI. The basic schema below shows a string, integer, and boolean property: ```json { "type": "object", "properties": { "name": { "type": "string", "title": "Name" }, "age": { "type": "integer", "title": "Age" }, "employed": { "type": "boolean", "title": "Employed" } }, "required": [ "name", "age" ] } ``` The default UI created by the properties defined above looks like this:  All input schema must have a top-level `type` key with a value ”`object`”, a [`properties`](#the-properties-object) object that contains all the field definitions, and a `required` array that contains the fields which are required for the action configuration (such as the name and age fields in the example above). Each key in `properties` must have, at minimum, a `type` and `title` key defined. Object and array fields require additional keys. See the tables below for the expected input schema structure.
__Tip:__ To create a starter schema using sample values and required properties, use the **Generate from Sample Data** option. You can then fill in the rest of the schema as needed.### Root-level properties These properties are at the schema's root level. The input schema supports [schema composition](https://json-schema.org/understanding-json-schema/reference/combining.html#schema-composition) keywords such as `allOf`, `anyOf`, and `oneOf`.
__Important:__ Wix does not validate breaking changes to an input schema that uses composition. To ensure the user does not make errors when configuring an action that uses composition in its schema, we recommend performing the validation on your end.| Property | Data Type | Description | | ------ | ------ | ------ | | `$schema` | string | When you save the action configuration, Wix overrides this property to set it to `"http://json-schema.org/draft-07/schema"`. | `type` | string| _Required_. Must be `"object"`.| | `properties` | object | _Required_. Object containing the key-object pairs that define the fields in the action configuration. See the [properties](#the-properties-object) object below for details.| | `required` | array | List of property keys that must be provided to the action. In the action configuration UI on the user's site, these will be marked as required fields. | | `additionalProperties` | boolean | When you save the action configuration, Wix overrides this property to set the value to `true`, which allows additional, unspecified properties to be sent in the payload.| ### The `properties` object The `properties` object contains the key-object pairs that make up the bulk of the data passed to the action. The key name can include only alphanumeric characters or underscores (A-Z, a-z, 0-9, _). It cannot start with an underscore. Each paired object contains display and validation metadata. This table gives the expected data structure for an object in `properties`: | Property | Data Type | Description | | ------ | ------ | ------ | | `type` | string | _Required_. Supported values: `"string"`, `"number"`, `"integer"`, `"boolean"`, `"array"`, `"object"`.