v1
Contatos

Listar contatos

GET/api/v1/contacts

Devolve os contatos da empresa, paginados e do mais recente para o mais antigo.

Os filtros se somam: um contato só entra na página se atender a todos os que você enviar. O campo total conta o filtro inteiro, não só a página.

A chave de API precisa do escopoVisualizar contatoscontacts.read

Parâmetros

NomeOndeDescrição
pageintegerqueryPágina, a partir de 1.Padrão: 1
pageSizeintegerqueryQuantos contatos por página.Padrão: 50
ownerIdstring (uuid)querySó os contatos deste responsável: o id de um usuário da empresa.
statusesstringqueryStatus aceitos, separados por vírgula: New, Contacted, Qualified, Converted e Lost.
searchstringqueryTexto de busca no cadastro: nome, telefone ou e-mail.
sortBystringqueryCampo da ordenação.CreatedAtNameScoreStatusSourceOriginGroupPadrão: CreatedAt
sortDirstringquerySentido da ordenação.AscDescPadrão: Desc
tagIdsstringquerySó os contatos com alguma destas tags: ids separados por vírgula.

Respostas

200A página de contatos e o total do filtro.
application/json
{
  "items": [
    {
      "id": "af147888-ebb0-4ec9-92e5-da66cd561461",
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "name": "Fulano de Tal",
      "firstName": "Fulano",
      "phoneNumber": "5511988887777",
      "instagramUsername": null,
      "tikTokUsername": null,
      "telegramUsername": null,
      "email": "[email protected]",
      "emailBouncedAt": null,
      "messagingOptedOutAt": null,
      "emailOptedOutAt": null,
      "tags": null,
      "customFields": null,
      "profileImageUrl": null,
      "pipelineStageId": "14592c48-f334-4d8c-b318-8d95b6bc1831",
      "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
      "teamId": null,
      "source": "SiteForm",
      "score": 72,
      "status": "Qualified",
      "convertedAt": null,
      "lossReason": null,
      "lossReasonId": null,
      "stageEnteredAt": "2026-11-23T00:58:52.335976Z",
      "lastActivityAt": "2026-11-23T11:44:19.871857Z",
      "lastInboundMessageAt": null,
      "lastOutboundMessageAt": null,
      "firstTouchAt": null,
      "firstContactAt": null,
      "documentNumber": null,
      "addressZipcode": null,
      "addressStreet": null,
      "addressNumber": null,
      "addressComplement": null,
      "addressNeighborhood": null,
      "addressCity": "São Paulo",
      "addressState": "SP",
      "addressCountry": "BR",
      "createdAt": "2026-11-23T00:58:52.335976Z",
      "updatedAt": "2026-11-23T11:44:19.888105Z"
    },
    {
      "id": "0b6f2d1c-4e7a-4f39-8a15-9c2d7e3b6a48",
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "name": "Beltrano de Tal",
      "firstName": "Beltrano",
      "phoneNumber": "5521977776666",
      "instagramUsername": null,
      "tikTokUsername": null,
      "telegramUsername": null,
      "email": "[email protected]",
      "emailBouncedAt": null,
      "messagingOptedOutAt": null,
      "emailOptedOutAt": null,
      "tags": null,
      "customFields": null,
      "profileImageUrl": null,
      "pipelineStageId": "14592c48-f334-4d8c-b318-8d95b6bc1831",
      "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
      "teamId": null,
      "source": "WhatsApp",
      "score": 18,
      "status": "New",
      "convertedAt": null,
      "lossReason": null,
      "lossReasonId": null,
      "stageEnteredAt": "2026-11-22T14:10:27.118204Z",
      "lastActivityAt": null,
      "lastInboundMessageAt": null,
      "lastOutboundMessageAt": null,
      "firstTouchAt": null,
      "firstContactAt": null,
      "documentNumber": null,
      "addressZipcode": null,
      "addressStreet": null,
      "addressNumber": null,
      "addressComplement": null,
      "addressNeighborhood": null,
      "addressCity": "Rio de Janeiro",
      "addressState": "RJ",
      "addressCountry": "BR",
      "createdAt": "2026-11-22T14:10:27.118204Z",
      "updatedAt": null
    }
  ],
  "total": 248,
  "page": 1,
  "pageSize": 50
}
400Requisição inválida: corpo que não é JSON, campo obrigatório ausente ou valor fora do formato.
application/json
{
  "error": "validation_failed",
  "message": "O campo name é obrigatório."
}
401Credenciais ausentes ou inválidas. A resposta é a mesma para chave inexistente e secret errada; sem o cabeçalho X-API-KEY, ela chega sem corpo.
application/json
{
  "error": "unauthorized",
  "message": "Credenciais de API inválidas."
}
403A chave autenticou, mas não tem o escopo que a rota exige, ou o plano não inclui o recurso.
application/json
{
  "error": "forbidden",
  "message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}
429O limite de requisições por minuto foi atingido. Aguarde o tempo do cabeçalho Retry-After.
application/json
{
  "error": "too_many_requests",
  "message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}
curl -X GET "https://api.guria.io/api/v1/contacts?page=1&pageSize=50" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET"
Resposta · 200
{
  "items": [
    {
      "id": "af147888-ebb0-4ec9-92e5-da66cd561461",
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "name": "Fulano de Tal",
      "firstName": "Fulano",
      "phoneNumber": "5511988887777",
      "instagramUsername": null,
      "tikTokUsername": null,
      "telegramUsername": null,
      "email": "[email protected]",
      "emailBouncedAt": null,
      "messagingOptedOutAt": null,
      "emailOptedOutAt": null,
      "tags": null,
      "customFields": null,
      "profileImageUrl": null,
      "pipelineStageId": "14592c48-f334-4d8c-b318-8d95b6bc1831",
      "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
      "teamId": null,
      "source": "SiteForm",
      "score": 72,
      "status": "Qualified",
      "convertedAt": null,
      "lossReason": null,
      "lossReasonId": null,
      "stageEnteredAt": "2026-11-23T00:58:52.335976Z",
      "lastActivityAt": "2026-11-23T11:44:19.871857Z",
      "lastInboundMessageAt": null,
      "lastOutboundMessageAt": null,
      "firstTouchAt": null,
      "firstContactAt": null,
      "documentNumber": null,
      "addressZipcode": null,
      "addressStreet": null,
      "addressNumber": null,
      "addressComplement": null,
      "addressNeighborhood": null,
      "addressCity": "São Paulo",
      "addressState": "SP",
      "addressCountry": "BR",
      "createdAt": "2026-11-23T00:58:52.335976Z",
      "updatedAt": "2026-11-23T11:44:19.888105Z"
    },
    {
      "id": "0b6f2d1c-4e7a-4f39-8a15-9c2d7e3b6a48",
      "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
      "name": "Beltrano de Tal",
      "firstName": "Beltrano",
      "phoneNumber": "5521977776666",
      "instagramUsername": null,
      "tikTokUsername": null,
      "telegramUsername": null,
      "email": "[email protected]",
      "emailBouncedAt": null,
      "messagingOptedOutAt": null,
      "emailOptedOutAt": null,
      "tags": null,
      "customFields": null,
      "profileImageUrl": null,
      "pipelineStageId": "14592c48-f334-4d8c-b318-8d95b6bc1831",
      "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
      "teamId": null,
      "source": "WhatsApp",
      "score": 18,
      "status": "New",
      "convertedAt": null,
      "lossReason": null,
      "lossReasonId": null,
      "stageEnteredAt": "2026-11-22T14:10:27.118204Z",
      "lastActivityAt": null,
      "lastInboundMessageAt": null,
      "lastOutboundMessageAt": null,
      "firstTouchAt": null,
      "firstContactAt": null,
      "documentNumber": null,
      "addressZipcode": null,
      "addressStreet": null,
      "addressNumber": null,
      "addressComplement": null,
      "addressNeighborhood": null,
      "addressCity": "Rio de Janeiro",
      "addressState": "RJ",
      "addressCountry": "BR",
      "createdAt": "2026-11-22T14:10:27.118204Z",
      "updatedAt": null
    }
  ],
  "total": 248,
  "page": 1,
  "pageSize": 50
}