Browse contracts
assinafy_browse_contractsFind contracts with action list and filters, read terms or an amendment with get, or read the root and its amendments with related. Resolve names before writes. Apps-capable hosts show a contract browser; other clients receive the same JSON. Contract lifecycle dates are separate from signing deadlines. Reads remain available when the tracking plan lapses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number. | |
| sort | No | `end_date` or `updated_at`; prefix with `-` for descending (`-updated_at`, the default). Contracts without an end date come last either way. | |
| action | Yes | ||
| expand | No | `document` embeds each contract's document. | |
| search | No | Part of the document's name. | |
| status | No | Contract status; several, comma-separated, match any of them. | |
| per_page | No | Records per page (max 100). | |
| account_id | No | ||
| document_id | No | ||
| end_date_to | No | Contracts ending on or before this date. | |
| external_id | No | ID of an external reference in that system. | |
| counterparty | No | Part of the counterparty name, or its exact CPF/CNPJ. | |
| end_date_from | No | Contracts ending on or after this date. | |
| external_system | No | System of an external reference, e.g. `hubspot`. | |
| ending_within_days | No | Contracts ending from today (the API's calendar day, Brasília time) to that many days later, both included; `0` is today. Any status: add `status=active` for the ones still in force. |