---
title: "Send a direct message"
method: POST
path: "/twitter/send_dm_to_user"
tags: ["write"]
---

# Send a direct message

`POST /twitter/send_dm_to_user`

## Request

- Base URL: `https://api.relayxapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.relayxapi.com/twitter/send_dm_to_user`
- Auth: none declared

## Headers

- `x-api-key` string, nullable

## Request body

- SendDM
  - `login_cookie` string, required
  - `user_id` string, required: recipient's numeric user id (must accept DMs)
  - `text` string, required
  - `media_id` string, nullable
  - `reply_to_message_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/relayxapi/apis/relayx-x-data-api.md) · [All operations](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/revisions/6c9acb520594?raw)
