# Listar pipelines

GET `https://api.bydomu.com/v1/pipelines`

Pipelines de la organización con sus etapas en orden y la cantidad de negocios en cada una.

Permiso que pide

`deals:read`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

## Respuesta 200

`Pipeline[]` · 9 campos

**`data[]` id · name · description · isDefault · order · createdAt · updatedAt · _count · stages**

`id` string

`name` string

`description` string

`isDefault` boolean

`order` integer

`createdAt` string

`updatedAt` string

**`_count` stages**

`stages` integer

**`stages[]` id · name · order · color · isDefault · isWon · isLost · probability · maxDaysInStage · alertAfterDays · pipelineId · _count**

`id` string

`name` string

`order` integer

`color` string

`isDefault` boolean

`isWon` boolean

`isLost` boolean

`probability` integer Probabilidad de cierre que hereda el negocio (0-100)

`maxDaysInStage` integer

`alertAfterDays` integer

`pipelineId` string

**`_count` placements**

`placements` integer Negocios en la etapa

## 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/pipelines" \
  -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.pipelines.list();
```

Python:

```python
import os, requests

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

**Respuesta · 200 · ejemplo**

```json
{
  "data": [
    {
      "id": "clx1pip001",
      "name": "Ventas",
      "description": "Pipeline principal de ventas",
      "isDefault": true,
      "order": 0,
      "createdAt": "2025-06-01T10:00:00.000Z",
      "updatedAt": "2026-03-01T12:00:00.000Z",
      "_count": {
        "stages": 5
      },
      "stages": [
        {
          "id": "clx1stg001",
          "name": "Contacto inicial",
          "order": 0,
          "color": "#6366F1",
          "isDefault": true,
          "isWon": false,
          "isLost": false,
          "probability": 10,
          "maxDaysInStage": 7,
          "alertAfterDays": 5,
          "pipelineId": "clx1pip001",
          "_count": {
            "placements": 14
          }
        }
      ]
    }
  ]
}
```
