Search consultations
Searches the consultations of this deployment, newest first, one page at a time. It takes its filters in the request body: status, documentType, document, from and to. For an exact page sequence, set to a few seconds in the past before you read the first page.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Optional correlation id (UUID) propagated through logs/traces.
Body
Opaque pagination cursor from a previous page. An invalid cursor returns 400 SRC-0001. Paging is exact only inside a closed, lagged 'to' window — see the operation description.
Filter by consulted document, unmasked: CPF (11 numeric digits) or CNPJ (14 characters, 12 alphanumeric [0-9A-Z] plus 2 numeric check digits).
^([0-9]{11}|[0-9A-Z]{12}[0-9]{2})$Filter by document type: CPF | CNPJ. An unknown value returns 422 SRC-0002.
"CPF"
Inclusive lower bound on acceptance time (RFC3339 date-time). Unparseable returns 400 SRC-0001.
"2026-08-01T00:00:00Z"
Page size (1..200).
1 <= x <= 20050
Filter by lifecycle state: pending | completed | failed. An unknown value returns 422 SRC-0002.
"pending"
Inclusive upper bound on acceptance time (RFC3339 date-time). Unparseable returns 400 SRC-0001; earlier than from returns 422 SRC-0002. For an EXACT page sequence set it a few seconds in the past, closing the window before you start paging — see the operation description.
"2026-08-31T23:59:59Z"
Response
OK
The page's consultation summaries, newest first.
Effective page size this request was served with.
50
Opaque cursor for the following page; null on the last page.
Opaque cursor for the preceding page; null.

