# Listar campos personalizados de contactos

GET `https://api.bydomu.com/v1/custom-fields`

Definiciones activas de campos personalizados de CONTACTOS, ordenadas por sección y orden.

Permiso que pide

`custom_fields:read`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

## Respuesta 200

`CustomField[]` · 14 campos

**`data[]` id · name · label · fieldType · options · section · entity · isRequired · order · isActive · placeholder · helpText · createdAt · updatedAt**

`id` string

`name` string

`label` string

`fieldType` string TEXT, NUMBER, SELECT, MULTI_SELECT, BOOLEAN, DATE

`options` any Opciones de SELECT / MULTI_SELECT

`section` string

`entity` string CONTACT, PROPERTY, DEAL

`isRequired` boolean

`order` integer

`isActive` boolean

`placeholder` string

`helpText` string

`createdAt` string

`updatedAt` string

## Errores posibles

con la forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/custom-fields" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.customFields.list();
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/custom-fields",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Respuesta · 200 · ejemplo**

```json
{
  "data": [
    {
      "id": "clx1cf001",
      "name": "tipo_credito",
      "label": "Tipo de crédito",
      "fieldType": "TEXT",
      "options": [
        "Hipotecario"
      ],
      "section": "financiero",
      "entity": "CONTACT",
      "isRequired": false,
      "order": 1,
      "isActive": true,
      "placeholder": "Selecciona el tipo de crédito",
      "helpText": "Financiación aprobada del cliente",
      "createdAt": "2025-06-01T10:00:00.000Z",
      "updatedAt": "2026-01-15T14:00:00.000Z"
    }
  ]
}
```
