> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Help Desk Message

> Creates a new help desk support ticket.

# Create Help Desk Message

Submits a new support ticket to the help desk. The message is assigned to the operator's configured department or default queue.

## Authentication

Requires a valid customer bearer token.

## Request Body

<ParamField body="Subject" type="string" required>
  Subject line for the support ticket.
</ParamField>

<ParamField body="MessageText" type="string" required>
  Full description of the issue or request.
</ParamField>

<ParamField body="DepartmentId" type="number">
  Optional department ID to route the ticket. See the departments endpoint.
</ParamField>

## Response

Returns a `200 OK` on success with the created message details.

## Examples

### Create a ticket

```http theme={null}
POST /api/public/helpdesk/messages
Authorization: Bearer {token}
Content-Type: application/json

{
  "Subject": "Wi-Fi not working",
  "MessageText": "The Wi-Fi on the 2nd floor has been down since this morning.",
  "DepartmentId": 3
}
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'

await httpClient.post(endpoints.helpDesk.create, {
  Subject: 'Wi-Fi not working',
  MessageText: 'The Wi-Fi on the 2nd floor has been down since this morning.',
  DepartmentId: 3,
})
```
