Resgata icon

Resgata

Integracao completa com a API Resgata para gestao de credito consignado

Atendimento → Listar Atendimentos

AI-generated

Summary

Retrieve a paginated list of customer attendances filtered by various optional criteria such as protocol number, status, priority, channel, operator ID, customer ID, creation date range, or a generic search term.

Inputs

  • Pagina — The page number of results to retrieve, defaulting to 1.
  • Limite — The maximum number of attendance records to return per page, with a minimum value of 1 and defaulting to 50.
  • Filtros — Optional filters to narrow the returned attendances including protocol number, status (open, in_progress, resolved, closed, cancelled), priority (low, normal, high, urgent), channel (whatsapp, chatwoot, phone, email, system), assigned user ID, customer ID, creation date range (createdAfter, createdBefore), and a search string matching customer name, email, phone, or CPF.

Output shape

a list of attendance records matching the specified filters and pagination parameters, possibly including a pagination info object.

The response includes an array of attendance objects each representing a customer service attendance. If pagination data is present, an additional item with key _pagination may be included indicating total pages, current page, etc. Errors result in structured error objects if 'continueOnFail' is enabled.

Examples

Example 1: List the second page of attendances with status 'open' and priority 'high', up to 50 records per page.

Set Pagina to 2, Limite to 50, and Filtros with status='open' and priority='high'.

Discussion