# POST /api/messages > Messages - Add New Message - **Endpoint:** `POST /api/messages` - **Group:** Messages - **Since:** v1.0.0 - **Defined in:** `RestApi/Controllers/MessagesController.php` ## Headers | Field | Type | Description | | --- | --- | --- | | `authtoken` | String | Authentication token, generated from admin area | ## Parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `subject` | string | yes | Mandatory Message subject | | `message` | string | yes | Mandatory Message content | | `from_user_id` | number | yes | Mandatory Sender user ID | | `to_user_id` | number | yes | Mandatory Recipient user ID | ## Request example ```bash curl -X POST "https://yoursite.com/index.php/api/messages" \ -H "authtoken: YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "subject": "...", "message": "...", "from_user_id": "...", "to_user_id": "..." }' ``` ## Responses ### Success - Success-Response: ```json HTTP/1.1 201 Created { "status": 200, "messages": {"success": "Message 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/messages/create-message/