Create a CRM custom field
create_custom_fieldDefine a new custom field for contacts (text, number, date, boolean yes/no, or select with a list of options) so the bot and the team can store a value per person. Returns every field afterwards, including the new one's slug, which set_contact_field uses to write a value. Check list_custom_fields first: a field whose slug already exists is left as it was. It only adds the definition; no contact is changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name shown to the team, e.g. "Birthday"; the slug is derived from it. | |
| type | Yes | text, number, date, boolean (yes/no) or select (one of `options`). | |
| options | No | For type select: the allowed values (at least one). | |
| workspaceId | No | Workspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |