# Detalle de tarea

GET `https://api.bydomu.com/v1/tasks/{id}`

La tarea con su responsable, quién la creó, y el negocio y el contacto asociados.

Permiso que pide

`tasks:read`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

## Parámetros de ruta

1 · obligatorios

`id` string · **obligatorio**

ID de la tarea

## Respuesta 200

`TaskDetail` · 20 campos

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

`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

## Errores posibles

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

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

cURL:

```bash
curl "https://api.bydomu.com/v1/tasks/clx1tsk001" \
  -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.tasks.get("clx1tsk001");
```

Python:

```python
import os, requests

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

**Respuesta · 200 · ejemplo**

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