Skip to main content
Glama
send_dm_v2.md1.02 kB
# Send Dm V2 Source: https://docs.twitterapi.io/api-reference/endpoint/send_dm_v2 ## Endpoint - Method: `POST` - Path: `/twitter/send_dm_to_user` - API URL: `https://api.twitterapi.io/twitter/send_dm_to_user` ## Description Send a direct message to a user. You must set the login_cookie.. You can get the login_cookie from /twitter/user_login_v2. You can only send DMs to those who have enabled DMs. Sometimes it may fail, so be prepared to retry. Trial operation price: $0.003 per call. ## Example (curl) ```bash curl --request POST \ --url https://api.twitterapi.io/twitter/send_dm_to_user \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "login_cookies": "<string>", "user_id": "<string>", "text": "<string>", "proxy": "<string>", "media_ids": "<array>", "reply_to_message_id": "<string>" } ' ``` ## Example Response ```json { "message_id": "<string>", "status": "<string>", "msg": "<string>" } ``` _Scraped at: 2025-12-18T10:06:27.160Z_

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dorukardahan/twitterapi-io-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server