cURL
curl --request POST \ --url https://api.apitwitter.com/twitter/dm/{user_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "text": "<string>", "cookie": "<string>", "proxy": "<string>" } '
{ "status": "success", "message_id": "e1814743-4cdc-4151-916d-17cf2fa7771a", "conversation_id": "1693583885060202496-1818311005698678784", "delivered": true, "msg": "DM sent" }
Send a direct message on Twitter/X via ApiTwitter API. POST endpoint requiring recipient ID, cookies, and proxy.
Your API key
Numeric Twitter user ID of the recipient
Message text to send
Twitter auth cookie
Proxy URL to use for the request (HTTP or SOCKS5)
Message sent
Response status
"success"
Response message
Response data