# Crear nota

POST `https://api.bydomu.com/v1/notes`

Crea una nota rápida, suelta o enganchada a un contacto, una propiedad o un negocio, con recordatorio opcional. Respeta el tope de notas del plan (`403 PLAN_LIMIT_REACHED`).

Permiso que pide

`notes:write`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 3 · con revisión de soporte

## Encabezados

1 · todos opcionales

`Idempotency-Key` string · opcional

Clave única de la operación (8-128 caracteres de `[a-zA-Z0-9._:-]`). Un reintento con la misma clave y el mismo cuerpo devuelve la respuesta original sin repetir la operación. Vive 24 horas. 8–128 chars

## Cuerpo (JSON)

13 · 1 obligatorios

`body` string · **obligatorio**

≤ 5000 chars

`contactId` string · opcional

`propertyId` string · opcional

`dealId` string · opcional

`companyId` string · opcional

`conversationId` string · opcional

**Ver los otros 7 parámetros**

`appointmentId` string · opcional

`taskId` string · opcional

`isPrivate` boolean · opcional

`pinned` boolean · opcional

`mentionUserIds` string[] · opcional

`capturedIn` object · opcional

`remindAt` string · opcional

date-time

## Respuesta 201

`Note` · 16 campos

**`data` id · body · pinned · contactId · propertyId · dealId · userId · capturedIn · remindAt · remindedAt · createdAt · updatedAt · contact · property · deal · suggestions**

`id` string

`body` string

`pinned` boolean

`contactId` string

`propertyId` string

`dealId` string

`userId` string Autor (quien creó la API key)

`capturedIn` any Contexto de captura

`remindAt` string

`remindedAt` string

`createdAt` string

`updatedAt` string

**`contact` id · name**

`id` string

`name` string

**`property` id · title · code**

`id` string

`title` string

`code` string

**`deal` id · title**

`id` string

`title` string

`suggestions` any Sugerencias de Noa; siempre `null` al crear

## Errores posibles

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

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

cURL:

```bash
curl -X POST "https://api.bydomu.com/v1/notes" \
  -H "X-API-Key: $BYDOMU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Llamó: quiere ver el apartamento el sábado en la mañana.",
  "contactId": "clx1con001",
  "remindAt": "2026-10-03T13:00:00.000Z"
}'
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.notes.create({
  "body": "Llamó: quiere ver el apartamento el sábado en la mañana.",
  "contactId": "clx1con001",
  "remindAt": "2026-10-03T13:00:00.000Z"
});
```

Python:

```python
import os, requests

r = requests.post(
    "https://api.bydomu.com/v1/notes",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]},
    json={
        "body": "Llamó: quiere ver el apartamento el sábado en la mañana.",
        "contactId": "clx1con001",
        "remindAt": "2026-10-03T13:00:00.000Z"
    }
)
data = r.json()
```

**Respuesta · 201 · ejemplo**

```json
{
  "data": {
    "id": "clx1not001",
    "body": "Llamó: quiere ver el apartamento el sábado en la mañana.",
    "pinned": false,
    "contactId": "clx1con001",
    "propertyId": "clx1prop001",
    "dealId": "clx1deal001",
    "userId": "clx1usr001",
    "capturedIn": null,
    "remindAt": "2026-10-03T13:00:00.000Z",
    "remindedAt": "2026-10-03T13:00:05.000Z",
    "createdAt": "2026-09-25T18:00:00.000Z",
    "updatedAt": "2026-09-25T18:00:00.000Z",
    "contact": {
      "id": "clx1con001",
      "name": "María González"
    },
    "property": {
      "id": "clx1prop001",
      "title": "Apartamento en Chapinero con vista",
      "code": "P-0042"
    },
    "deal": {
      "id": "clx1deal001",
      "title": "Venta Apto Chapinero"
    },
    "suggestions": null
  }
}
```
