Platform API reference
List Contracts
List contracts on jobs linked by this install, newest first. Filter by project link or status.
GET
Returns contracts whose job is referenced by at least one project link on the calling token’s install, newest first. This is the pull-side complement to the
contract.started / contract.ended webhooks — poll it to reconcile state after downtime, since events are never replayed.
Requirements: contracts:read scope.
Request
Restrict to contracts on the job linked by this project link. Returns
404 if no link with this ID exists on the install.Filter by contract status:
active or ended.Maximum number of contracts to return (1–200).
Response
Array of contracts, newest first.
Errors
| Status | code | Meaning |
|---|---|---|
400 | BAD_REQUEST | Invalid status value or limit out of range |
401 | UNAUTHORIZED | Missing, invalid, or revoked token |
403 | FORBIDDEN | Token lacks contracts:read |
404 | NOT_FOUND | projectLinkId does not match a link on this install |