Contracts
Read contracts and proposals created in EsperWorks. Contract creation and signing is managed through the EsperWorks dashboard; the API provides read access for integration purposes.
Endpoints
GET
https://api.tryesperworks.com/api/v1/contractscontracts:readList contracts. Supports ?type=, ?status=, ?per_page=.
GET
https://api.tryesperworks.com/api/v1/contracts/:idcontracts:readGet a single contract with client details.
List contracts
curl "https://api.tryesperworks.com/api/v1/contracts?status=signed&per_page=10" \ -H "Authorization: Bearer ew_live_xxxx"
Response
{
"contract": {
"id": 7,
"title": "Website Redesign Agreement",
"type": "contract",
"status": "signed",
"currency": "GHS",
"client": { "id": 42, "name": "Kofi Mensah", "email": "kofi@example.com" },
"business_signed_at": "2026-04-20T09:00:00Z",
"client_signed_at": "2026-04-21T14:32:00Z",
"created_at": "2026-04-19T08:00:00Z"
}
}Contract types
| Type | Description |
|---|---|
contract | A standard service or work agreement. |
proposal | A proposal sent to a prospective client. |
Contract statuses
| Status | Description |
|---|---|
draft | Not yet sent to the client. |
sent | Sent to the client for review. |
accepted | Client has accepted (proposals). |
signed | Both parties have signed. |
declined | Client declined. |
expired | Signing token expired before client signed. |