# POST /api/contracts > Contracts - Add New Contract - **Endpoint:** `POST /api/contracts` - **Group:** Contracts - **Since:** v1.0.0 - **Defined in:** `RestApi/Controllers/ContractsController.php` ## Headers | Field | Type | Description | | --- | --- | --- | | `authtoken` | String | Authentication token, generated from admin area | ## Parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `title` | string | yes | Mandatory Contract title | | `client_id` | number | yes | Mandatory Client ID | | `project_id` | number | yes | Mandatory Project ID | | `contract_date` | string | yes | Mandatory Contract date (Y-m-d) | | `valid_until` | string | yes | Mandatory Valid until date (Y-m-d) | | `status` | string | no | Optional Status (draft, sent, accepted, declined) | | `content` | string | no | Optional Contract content | ## Request example ```bash curl -X POST "https://yoursite.com/index.php/api/contracts" \ -H "authtoken: YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "title": "...", "client_id": "...", "project_id": "...", "contract_date": "...", "valid_until": "..." }' ``` ## Responses ### Success - Success-Response: ```json HTTP/1.1 201 Created { "status": 200, "messages": {"success": "Contract add success"}, "id": 1 } ``` --- Part of the [REST API for RISE CRM](https://risecrm.themesic.com/apiguide/) documentation. Full page: https://risecrm.themesic.com/apiguide/contracts/create-contract/