List Custom Fields

Returns the list of custom fields configured for your customers in each workspace, together with the available built-in fields.

GET https://api.platica.mx/v1/custom-fields

Response

{
  "workspaces": [
    {
      "id": "ws_123",
      "name": "Soporte Técnico",
      "customFields": [
        {
          "id": "estatus",
          "name": "estatus",
          "type": "text",
          "automatic": false,
          "overwritable": false,
          "description": "Utiliza este campo para indicar el estado actual del cliente",
          "status": "active"
        },
        {
          "id": "etapa_de_venta",
          "name": "Etapa de venta",
          "type": "select",
          "automatic": false,
          "overwritable": false,
          "description": "Etapa actual del cliente en el embudo",
          "status": "active",
          "ordered": true,
          "options": [
            { "id": "nuevo", "label": "Nuevo", "order": 0 },
            { "id": "contactado", "label": "Contactado", "order": 1 },
            { "id": "cerrado", "label": "Cerrado", "order": 2 }
          ]
        }
      ],
      "customFieldsCount": 2,
      "defaultFields": [
        {
          "name": "Nombre",
          "id": "name",
          "type": "text",
          "description": "Nombre completo del cliente"
        }
      ],
      "defaultFieldsCount": 12
    }
  ]
}

Response fields

FieldDescription
idUnique custom-field identifier (slug derived from the name)
nameOriginal field name as defined
typeField type (see Create custom field for the full list)
automaticWhether the AI should fill the field automatically from the conversation
overwritableWhether the AI can overwrite the field's existing value
descriptionDescription that helps contextualize how the field is used
statusField state: active
orderedselect only. Whether the options are an ordered sequence (stages/steps)
optionsselect only. Option catalog. Each option includes id, label, and optionally color, order, and archived. A customer's value for this field is an option id
defaultFieldsBuilt-in fields available for every customer