> For the complete documentation index, see [llms.txt](https://docs.wproofreader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wproofreader.com/v6.12.0/api-reference/custom-dictionary-api/parameters-reference.md).

# Parameters reference

Requests use the standard HTTP API pattern.

See [HTTP API Overview](/v6.12.0/api-reference/overview.md) for endpoint details and GET vs POST.

These parameters work with any `cmd`.

| Name           | Type    | Required   | Description                                                                                                                                                                        |
| -------------- | ------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `serviceid`    | string  | Cloud only | Cloud API key. Required for Cloud requests. Not used on-premises.                                                                                                                  |
| `format`       | string  | No         | Response format. Values: `json` (default), `xml`.                                                                                                                                  |
| `callback`     | string  | No         | JSONP wrapper function name. Use only with `format=json`.                                                                                                                          |
| `short_answer` | boolean | No         | <p>JSON only. When <code>true</code>, shortens JSON keys to reduce payload size.<br>See <a href="/pages/VXTsQ0sY5BFRLUsqxnbL#boolean-parameter-values">boolean parameters</a>.</p> |

See [Overview](/v6.12.0/api-reference/overview.md#common-parameters) for details.

### Parameters

| Parameter     | Type                                | Used by                             | Required      | Notes                                                                                                                                                                                              |
| ------------- | ----------------------------------- | ----------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cmd`         | string                              | All                                 | Yes           | Always `custom_dictionary`.                                                                                                                                                                        |
| `action`      | string                              | All                                 | Yes           | One of: `create`, `delete`, `addwords`, `deletewords`, `getwords`, `getdicts`, `edit`.                                                                                                             |
| `id`          | integer or comma-separated integers | All except `create`                 | Depends       | `delete` and `getdicts` accept multiple IDs. Other actions require exactly one ID.                                                                                                                 |
| `lang`        | string                              | `create`                            | Yes           | Language code like `en_US`.                                                                                                                                                                        |
| `description` | string                              | `create`, `edit`                    | `create`: Yes | Must be unique per account.                                                                                                                                                                        |
| `wordlist`    | string (comma-separated)            | `create`, `addwords`, `deletewords` | Depends       | Optional for `create`. Required for `addwords` and `deletewords`.                                                                                                                                  |
| `state`       | boolean                             | `edit`                              | Optional      | `true` enables. `false` disables.                                                                                                                                                                  |
| `overwrite`   | boolean                             | `addwords`                          | Optional      | <p>When <code>true</code>, replaces the entire dictionary wordlist. Default: <code>false</code>.<br>See <a href="/pages/VXTsQ0sY5BFRLUsqxnbL#boolean-parameter-values">boolean parameters</a>.</p> |

### Validation rules

#### Words (`wordlist`)

* Max **63** characters per word
* No spaces
* No punctuation or special characters

{% hint style="info" %}
Words already recognized as correct by the spellcheck engine for the dictionary language are filtered out.

They won’t be stored in the dictionary.
{% endhint %}

#### Description (`description`)

* Required for `create`.
* Must be unique per account.
* For `edit`, setting the same description can still conflict.

#### State (`state`)

* `true`: enabled and used in spellcheck.
* `false`: disabled and excluded from spellcheck.

#### `overwrite`

When `overwrite=true` for `addwords`, the server replaces the whole dictionary wordlist.

{% hint style="warning" %}
`overwrite=true` is destructive.

It removes all existing words not present in the request.
{% endhint %}
