The bureau query configuration (query-config) defines which bureau/AgRisk products will be automatically queried when a card enters a phase — for example, restrictive-records lookups, protests, or credit score checks associated with a CPF/CNPJ.This configuration defines WHAT will be queried. Actually triggering the query on the phase is done by an agrisk phase action, a resource from the phase actions domain — it should not be confused with this configuration.
Endpoints in this domain#
| Method | Path | Description |
|---|
GET | /v1/flows/{flowId}/phases/{phaseId}/query-config | Gets the phase's bureau query configuration |
POST | /v1/flows/{flowId}/phases/{phaseId}/query-config | Creates the phase's bureau query configuration |
PUT | /v1/flows/{flowId}/phases/{phaseId}/query-config | Updates the phase's bureau query configuration |
Recommended configuration pattern#
1.
Check (GET) whether a query configuration already exists for the phase.
2.
Create (POST) the configuration, providing title and the products[] list with the desired bureau/AgRisk product identifiers.
3.
Create the phase action of type agrisk (phase actions domain), so the query is actually triggered when a card enters the phase.
Important behaviors#
The payload accepted by POST/PUT is {title, products[]}. Both fields are required.
products[] contains identifiers of the bureau/AgRisk products to be queried — available identifiers vary by environment and by the client's contracted products.
If a query configuration already exists for the phase, a new submission via POST is treated as an update: the API returns an error (409 or 422), and the same payload must be resubmitted via PUT on the same path to complete the update.
Updating via PUT fully replaces the previous title and product list — this is not a partial merge.
This configuration is opt-in — a phase does not have bureau queries enabled by default.
We recommend creating the query configuration before the corresponding agrisk phase action. Creating the phase action without a previously defined query configuration is not blocked by the API, but the query will have no products defined to look up.
This configuration is distinct from the agrisk phase action: the query-config defines which products will be queried; the agrisk phase action (part of the phase actions domain) enables the actual triggering of those queries when the card enters the phase.
Modificado em 2026-07-28 20:38:32