List all Contracts
GET/api/contracts
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| client_id | Number | optional Optional filter by client ID |
| status | String | optional Optional filter by status (draft, sent, accepted, declined) |
curl -X GET "https://yoursite.com/api/contracts" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
[
{
"id": "1",
"title": "Contract A",
"client_id": "2",
"project_id": "1",
"contract_date": "2024-01-15",
"valid_until": "2024-12-31",
"status": "sent"
}
]