call_api
Invoke endpoints in Brazilian government API catalog while base URLs and credentials are resolved for you. Send path, query, method, and JSON body; get status, URL, and parsed body.
Instructions
Call an endpoint of a catalog API; base URL and credentials are resolved for you.
path is relative to the API's base_url (e.g. '/estados/mg') and may carry a query
string; query overrides its keys, and a list value repeats a key. method is GET,
HEAD, POST, PUT, PATCH, DELETE or OPTIONS; send body (JSON) only with POST/PUT/PATCH.
Credential, Host, proxy and framing headers in headers are dropped and listed in
ignored_headers.
Returns {status, url, body} (JSON parsed, text cut at 60k chars); a 3xx is not followed
and carries its absolute location. Problems come back as {error}. Entries flagged
pii: true return personal data (CPF/CNPJ): call them only when the user asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| query | No | ||
| api_id | Yes | ||
| method | No | GET | |
| headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||