Uses webhooks instead of polling — the recommended pattern for production integrations where contracts are processed asynchronously.Documentation Index
Fetch the complete documentation index at: https://docs.anyformat.ai/llms.txt
Use this file to discover all available pages before exploring further.
Workflow fields
| Field | Type | Description |
|---|---|---|
contract_type | enum | Type of agreement |
effective_date | date | When the contract takes effect |
expiration_date | date | When the contract expires |
auto_renewal | boolean | Whether the contract renews automatically |
governing_law | string | Jurisdiction governing the contract |
termination_notice_days | integer | Required notice period for termination |
key_clauses | multi_select | Which standard clauses are present |
liability_cap | float | Maximum liability amount if specified |
Setup and submit
Python package + class names are provisional.
pip install anyformat-sdk and from anyformat.sdk import Client work today, but both are expected to change before the official launch — pin the version you ship with.- curl
- TypeScript
- Python
Handle the webhook callback
When processing completes, your server receives a POST with thecollection_id and workflow_id. Verify the HMAC signature, then fetch the results from GET /v2/workflows/{workflow_id}/files/{collection_id}/results/. See Webhooks overview for the full payload schema and the verification recipe.
A minimal Python (Flask) handler:
crypto.createHmac("sha256", secret), then fetch the results via fetch() or the SDK’s low-level client.
Tips
- Webhooks eliminate polling overhead and rate-limit consumption.
integerfor notice periods lets you do calendar math directly.
Next steps
Webhooks
Set up, sign, and verify webhook deliveries
Field types
multi_select, enum, and other field shapes