# Listar pipelines

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

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

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

Permission required

`deals:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Response 200

`Pipeline[]` · 9 fields

**`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

## Possible errors

shaped as `{ "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()
```

**Response · 200 · example**

```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
          }
        }
      ]
    }
  ]
}
```
