# Notas

## Registrar nota interna

`POST /v1/notes` · escopo `crm:write` · ferramenta MCP `add_note`

Registra uma nota interna (não vai para o cliente) num contato, oportunidade ou conversa.

| Campo | Onde | Tipo | Obrigatório |
|---|---|---|---|
| `target` | corpo | `contact` \| `opportunity` \| `conversation` | sim |
| `targetId` | corpo | integer | sim |
| `body` | corpo | string | sim |

```bash
curl -X POST https://api.digla.io/v1/notes \
  -H "Authorization: Bearer dg_seu_token" \
  -H "Content-Type: application/json" \
  -d '{"target":"contact","targetId":1,"body":"texto"}'
```

Resposta:

```json
{
  "id": 1,
  "target": "texto",
  "targetId": 1,
  "createdAt": "texto"
}
```
