TratowAPI
API aberta · Clientes

Criar anotação no cliente

post/api/open/v1/clients/{id}/notes

Em resumo

  • POST /api/open/v1/clients/{id}/notes
  • Precisa de chave read_write.
  • Obrigatórios: id, text.
  • Sucesso: 201.
  • Authorizationstringheaderobrigatório

    Chave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read_write.

  • idstringobrigatório

    Id do registro (UUID).

Corpo

application/json
  • textstringobrigatório

    Texto.

    1 a 2000 caracteres

  • pinnedbooleanpadrão: false

    Fixado no topo.

Resposta 201

application/json
  • idstring<uuid>obrigatório

    Identificador único (UUID).

  • textstringobrigatório

    Texto.

  • pinnedbooleanobrigatório

    Fixado no topo.

  • authorNamestringpode ser nuloobrigatório

    Nome de author (só leitura).

  • createdAtstring<date-time>obrigatório

    Data e hora em que foi criado (ISO 8601, UTC).

  • updatedAtstring<date-time>obrigatório

    Data e hora em que foi atualizado (ISO 8601, UTC).

curl --request POST \  --url 'https://qa-tratow.ips.app.br/api/open/v1/clients/{id}/notes' \  --header 'Authorization: Bearer <chave>' \  --header 'Content-Type: application/json' \  --data '{    "text": "texto",    "pinned": false  }'
Resposta
{  "id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",  "text": "texto",  "pinned": true,  "authorName": "texto",  "createdAt": "2026-11-03T17:30:00.000Z",  "updatedAt": "2026-11-03T17:30:00.000Z"}

Os valores são ilustrativos.