API aberta · Clientes
Detalhar cliente
get
/api/open/v1/clients/{id}Em resumo
GET /api/open/v1/clients/{id}- Chave
readouread_write. - Obrigatórios:
id. - Sucesso:
200. - Erros possíveis:
400,401,404,429.
AuthorizationstringheaderobrigatórioChave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read ou read_write.
idstringobrigatórioId do registro (UUID).
Resposta 200
application/jsonidstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
phoneMobilestringobrigatórioCelular com DDD (só dígitos; aceita +55). Único entre os clientes ativos.
emailstringpode ser nuloobrigatórioE-mail.
phoneOtherstringpode ser nuloobrigatórioOutro telefone com DDD.
birthDatestring<date>pode ser nuloobrigatórioData de nascimento (AAAA-MM-DD). Sem ano conhecido, use 1900.
notesstringpode ser nuloobrigatórioObservações livres.
hasAccountbooleanobrigatórioIndica se conta.
createdAtstring<date-time>obrigatórioData e hora em que foi criado (ISO 8601, UTC).
genderenum<string>pode ser nuloobrigatórioGênero.
Valores aceitos:
femalemaleotheraddressobjectobrigatórioEndereço.
Mostrar 7 atributosEsconder atributos
zipCodestringpode ser nuloobrigatórioCEP (8 dígitos).
streetstringpode ser nuloobrigatórioLogradouro.
numberstringpode ser nuloobrigatórioNúmero.
complementstringpode ser nuloobrigatórioComplemento.
districtstringpode ser nuloobrigatórioBairro.
citystringpode ser nuloobrigatórioCidade.
statestringpode ser nuloobrigatórioUF (2 letras).
instagramstringpode ser nuloobrigatórioUsuário ou URL do Instagram.
communicationobjectobrigatórioMostrar 2 atributosEsconder atributos
remindersbooleanobrigatóriomarketingbooleanobrigatório
activebooleanobrigatórioAtivo (`true`) ou inativo (`false`). Inativos somem das buscas e da agenda.
Erros
400Parâmetros ou corpo inválidos (`errors[]` traz o campo).401Chave de API ausente, inválida, revogada ou expirada.404Recurso não encontrado neste estabelecimento.429Limite de requisições da chave excedido (veja `Retry-After`).
Formato RFC 7807. Veja Erros.
curl --request GET \
--url 'https://qa-tratow.ips.app.br/api/open/v1/clients/{id}' \
--header 'Authorization: Bearer <chave>'{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"phoneMobile": "11987654321",
"email": "texto",
"phoneOther": "1133334444",
"birthDate": "2026-11-03",
"notes": "Prefere atendimento pela manhã.",
"hasAccount": true,
"createdAt": "2026-11-03T17:30:00.000Z",
"gender": "female",
"address": {
"zipCode": "texto",
"street": "texto",
"number": "texto",
"complement": "texto",
"district": "texto",
"city": "São Paulo",
"state": "SP"
},
"instagram": "texto",
"communication": {
"reminders": true,
"marketing": true
},
"active": true
}Os valores são ilustrativos.
