---
title: "Create new direct message to a user"
method: POST
path: "/users/{id}/messages"
tags: ["Users"]
---

# Create new direct message to a user

`POST /users/{id}/messages`

## Path parameters

- `id` integer, required

## Query parameters

- `skipWebhook` boolean

## Headers

- `x-organization-id` integer

## Request body

- object
  - `content` string, required — Content of the message to post

## Response `201`

Successfully created the message

- object
  - `conversationId` number, required — ID of the conversation

## Other responses

- `400` — Failed to create the message
- `401` — Invalid token
- `403` — No conversation permissions
- `404` — Could not find the specified user.

---

[API](https://skmtc.net/getmaintainx/apis/maintainx-api.md) · [All operations](https://skmtc.net/getmaintainx/apis/maintainx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getmaintainx/maintainx-api/revisions/ef9153fcac7c/schema)
