# Listar tareas

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

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

Tareas de toda la organización con filtros y paginación por página o por cursor (`pageSize` máximo 500). Por defecto solo las no archivadas. `status`, `type` y `priority` aceptan varios valores separados por comas.

Permission required

`tasks:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Query parameters

21 · all optional

`search` string · optional

Texto en el título, o prefijo del ID

`assigneeId` string · optional

Responsable

`unassigned` string · optional

true · 1

`contactId` string · optional

**See the other 17 parameters**

`dealId` string · optional

`propertyId` string · optional

`createdById` string · optional

Quién la creó

`status` string[] · optional

Estados, separados por comas. `OVERDUE` = abiertas con fecha vencida PENDING · IN_PROGRESS · COMPLETED · CANCELLED · OVERDUE · nullable

`type` string[] · optional

Tipos, separados por comas CALL · EMAIL · WHATSAPP · VISIT · MEETING · SEND_PROPOSAL · SEND_CONTRACT · FOLLOW_UP · SCHEDULE_SHOWING · COLLECT_DOCUMENTS · OTHER · nullable

`priority` string[] · optional

Prioridades, separadas por comas LOW · MEDIUM · HIGH · URGENT · nullable

`dateFrom` string · optional

Vencen desde esta fecha (ISO 8601) nullable

`dateTo` string · optional

Vencen hasta esta fecha (ISO 8601) nullable

`dueDateMode` string · optional

Solo con fecha (`WITH_DATE`) o sin fecha (`WITHOUT_DATE`) WITH_DATE · WITHOUT_DATE

`dueSoon` boolean · optional

Abiertas que vencen en las próximas 48 h. Cualquier valor no vacío (incluso `false`) cuenta como verdadero nullable

`archived` boolean · optional

SOLO las archivadas. Cualquier valor no vacío (incluso `false`) cuenta como verdadero: para las vivas, omítelo nullable

`page` integer · optional

Página, desde 1 default 1 · ≥ 1

`pageSize` integer · optional

Tareas por página (máximo 500) default 20 · 1–500

`cursor` string · optional

Paginación por cursor: el `meta.nextCursor` de la respuesta anterior

`includeTotal` boolean | string · optional

`false` para no contar el total (más rápido)

`sortBy` string · optional

Campo de orden default "createdAt"

`sortOrder` string · optional

Dirección del orden asc · desc · default "desc"

## Response 200

`TaskListItem[]` · 21 fields

**`data[]` id · title · description · type · status · priority · dueDate · completedAt · archivedAt · attachments · dealId · contactId · assigneeId · createdById · createdAt · updatedAt · assignee · createdBy · deal · contact · maintenanceRequest**

`id` string

`title` string

`description` string

`type` string CALL, EMAIL, WHATSAPP, VISIT, MEETING, SEND_PROPOSAL

`status` string PENDING, IN_PROGRESS, COMPLETED, CANCELLED, OVERDUE

`priority` string LOW, MEDIUM, HIGH, URGENT

`dueDate` string

`completedAt` string

`archivedAt` string

`attachments` any Adjuntos: `[{ url, name, size? }]`

`dealId` string

`contactId` string

`assigneeId` string

`createdById` string

`createdAt` string

`updatedAt` string

**`assignee` id · firstName · lastName · avatarUrl**

`id` string

`firstName` string

`lastName` string

`avatarUrl` string

**`createdBy` id · firstName · lastName**

`id` string

`firstName` string

`lastName` string

**`deal` id · title · contact**

`id` string

`title` string

**`contact` id · firstName · lastName**

`id` string

`firstName` string

`lastName` string

**`contact` id · firstName · lastName**

`id` string

`firstName` string

`lastName` string

**`maintenanceRequest` Solicitud de mantenimiento de la que nace la tarea**

`id` string

`title` string

`description` string

`category` string

`images` any Fotos

**`lease` property · tenant**

`property` object

`tenant` object

**`meta` Paginación por página (`page`) o por cursor (`cursor` = `nextCursor` de la respuesta anterior). Con cursor no se cuenta el total, que es lo más rápido para recorrer todo.**

`total` integer Total de registros. `null` al paginar con `cursor` o con `includeTotal=false`.

`page` integer

`pageSize` integer

`totalPages` integer `null` cuando no se contó el total.

`nextCursor` string Pásalo como `cursor` para pedir la página siguiente. `null` en la última.

`hasMore` boolean Hay más registros después de esta página.

## Possible errors

shaped as `{ "error": { "code", "message" } }`

- **400** Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/tasks" \
  -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, meta } = await bydomu.tasks.list();
```

Python:

```python
import os, requests

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

**Response · 200 · example**

```json
{
  "data": [
    {
      "id": "clx1tsk001",
      "title": "Llamar a María para confirmar la visita",
      "description": "Confirmar el jueves a las 10.",
      "type": "CALL",
      "status": "PENDING",
      "priority": "LOW",
      "dueDate": "2026-10-01T15:00:00.000Z",
      "completedAt": "2026-10-01T14:40:00.000Z",
      "archivedAt": "2026-10-15T00:00:00.000Z",
      "attachments": [],
      "dealId": "clx1deal001",
      "contactId": "clx1con001",
      "assigneeId": "clx1usr001",
      "createdById": "clx1usr002",
      "createdAt": "2026-09-25T10:00:00.000Z",
      "updatedAt": "2026-09-25T10:00:00.000Z",
      "assignee": {
        "id": "clx1usr001",
        "firstName": "Carlos",
        "lastName": "Rodríguez",
        "avatarUrl": "https://cdn.bydomu.com/avatars/carlos.jpg"
      },
      "createdBy": {
        "id": "clx1usr001",
        "firstName": "Carlos",
        "lastName": "Rodríguez"
      },
      "deal": {
        "id": "clx1deal001",
        "title": "Venta Apto Chapinero",
        "contact": {
          "id": "clx1con001",
          "firstName": "María",
          "lastName": "González"
        }
      },
      "contact": {
        "id": "clx1con001",
        "firstName": "María",
        "lastName": "González"
      },
      "maintenanceRequest": {
        "id": "clx1mnt001",
        "title": "Fuga en el baño",
        "description": "Gotea la llave del lavamanos.",
        "category": "PLUMBING",
        "images": [],
        "lease": {
          "property": {
            "id": "clx1prop002",
            "code": "P-0050",
            "title": "Apto 301 Laureles",
            "address": "Cra 76 #35-18"
          },
          "tenant": {
            "id": "clx1con001",
            "firstName": "María",
  …
```
