Create Custom Field
gorgias_create_custom_fieldCreate custom fields for tickets or customers with configurable data types (text, number, boolean) and input settings, enabling tailored data collection in Gorgias.
Instructions
POST /api/custom-fields — Create a new custom field for Ticket or Customer entities. The definition.data_type discriminator ('text', 'number', or 'boolean') determines which input_settings variant applies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The display name of the custom field (1–255 characters) | |
| priority | No | Controls display order. Lower values appear first (0–5000) | |
| required | No | Whether this field must be filled in by agents (default: false) | |
| definition | Yes | Defines the data type and input configuration for the field | |
| description | No | A human-readable description of the custom field (max 1024 characters) | |
| external_id | No | ID of the custom field in a foreign system (e.g., Zendesk) | |
| object_type | Yes | Type of entity this custom field applies to | |
| managed_type | No | Managed field type classification. Leave null for standard custom fields | |
| deactivated_datetime | No | ISO 8601 datetime to deactivate the field at creation. Typically null |