> For the complete documentation index, see [llms.txt](https://docs.vntranslator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vntranslator.com/advanced/custom-mt/schema.md).

# Schema

This is a configuration section of [Custom MT](/advanced/custom-mt.md). Use this configuration to declare variables that will be stored locally, such as API keys for Machine Translation services.

## Object Structure

* **type**: `string`
* **name**: `string`
* **default**: `string|number`
* **required**: `boolean`
* **message**: `string` - error message displayed when validation fails

```json
{
    "schema": [
        { "type": "string", "name": "api_key", "default": "", "required": true, "message": "Required an API Key" },
        { "type": "string", "name": "formality", "default": "default", "required": true },
        { "type": "number", "name": "preserve_formatting", "default": 0, "required": true },            
    ]
}
```
