# Detalle de tarea

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

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

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

Permission required

`tasks:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Path parameters

1 · required

`id` string · **required**

ID de la tarea

## Response 200

`TaskDetail` · 20 fields

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

## Possible errors

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

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