get
https://api.toriihq.com/v1.0/contracts
Returns a list of contracts in the organization.
This endpoint has two versions: 1.0 and 1.1. The default version is 1.0 for API keys created before Aug 1st 2026 and 1.1 for keys created after Aug 1st 2026. You can specify the version via the
X-API-Version header to override.Filtering
Filter contracts by passing each field as its own query parameter. Multiple filters are combined with AND. Values are matched by exact equality — partial match, range, and comparator operators are not supported on this endpoint.
Supported filter fields:
id, idApp, createdBy, status, and any custom contract field system key.Example:
GET /contracts?fields=id,name,idApp,status,myCustomField&status=active&idApp=123&myCustomField=trueThe above returns contracts where
status=active AND idApp=123 AND myCustomField=true.Query params are different per version:
| Query param | Supported in version | Description | Default value |
|---|---|---|---|
| fields | v1.0, v1.1 | List of fields to return for each contract | (no value) |
| q | v1.1 only | The query to search | (no value) |
| sort | v1.1 only | Sort order | (no value) |
| size | v1.1 only | Number of results to return (max: 1000) | 1000 |
| cursor | v1.1 only | Cursor for pagination | (no value) |
| aggs | v1.1 only | Aggregation configuration | (no value) |
| filters | v1.1 only | The filters to apply (JSON string) | (no value) |
Multi-currency support
All currency fields are returned in their original amounts based on the contract currency. To get the contract currency, add
currency to fields.Example:
GET /contracts?fields=id,name,amount,currency- Rate limit: 100 requests per minute
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…