For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Custom fields API

Create and manage custom fields for people and tickets.

Define custom fields for the teamspace and set their values on tickets.


Create a custom field

Creates a custom field for people, with its type, name, description, default value, and the option list for select fields.

URL
POST https://v3-api.proto.cx/api/platform/v1/custom-fields/{subcompany_id}/create-custom-field
Body
{
  "type": ""text" | "number" | "boolean" | "select" | "single_select" | "datetime"" (required),
  "name": "string" (required),
  "description": "string",
  "select_options": "array",
  "single_select_options": "array",
  "default_value": "string"
}
Returns
{
  "id": "string",
  "entity": "customer",
  "type": ""text" | "number" | "boolean" | "select" | "single_select" | "datetime"",
  "name": "string",
  "description": "string",
  "select_options": "array",
  "single_select_options": "array",
  "default_value": "string"
}

This endpoint only creates people (customer) fields, so entity is always "customer" in the response. To create a field used on livechats and tickets, use the Custom fields settings page.


List custom fields

Lists all custom fields defined for the teamspace.

Each custom field's entity is "customer" for people fields, or "conversation" for fields shared between livechats and tickets. Fields created before livechat and ticket custom fields were unified may still report their original legacy value, "ticket" or "livechat", instead of "conversation" — treat all three the same way, since they behave identically.


Set ticket custom field values

Sets custom field values on a ticket. These are the same conversation custom fields shared with livechats, identified by id as returned from List custom fields.


Delete custom fields

Deletes one or more custom fields by ID.


Delete custom fields (earlier platform)

Deletes custom fields. Serves the earlier platform edition.

Last updated