Listar clientes
Ordem `(name, id)`. `q` busca por nome, e-mail ou parte do telefone; `phone` é o celular exato.
/api/open/v1/clientsEm resumo
GET /api/open/v1/clients- Chave
readouread_write. - Lista paginada por cursor (
limit,cursor,hasMore). - 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.
limitintegerpadrão: 25Quantidade máxima de itens (1 a 100).
1 a 100
cursorstringCursor da próxima página (o `nextCursor` da resposta anterior).
até 500 caracteres
qstringBusca livre por nome, e-mail ou parte do telefone.
2 a 120 caracteres
phonestringTelefone com DDD (só dígitos; aceita +55).
até 30 caracteres
Resposta 200
application/jsondataobject[]obrigatórioItens desta página.
Mostrar 14 atributosEsconder atributos
idstring<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.
paginationobjectobrigatórioDados de paginação.
Mostrar 2 atributosEsconder atributos
nextCursorstringpode ser nuloobrigatórioCursor para buscar a próxima página; nulo quando acabou.
hasMorebooleanobrigatórioIndica se há mais páginas.
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' \
--header 'Authorization: Bearer <chave>'{
"data": [
{
"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
}
],
"pagination": {
"nextCursor": "texto",
"hasMore": true
}
}Os valores são ilustrativos.
