Direct Messages

Send DM

Send a direct message to a user as the authenticated account. Requires a logged-in session for the acting account. Billed at $0.0016 per call. Cost: $0.0016 per call.

post/dm/send

Request

  • Base URL: https://api.twitterapis.com/twitter
  • URL: https://api.twitterapis.com/twitter/dm/send
  • Auth: HTTP bearer

Request body

recipient_idstring required

Numeric Twitter user ID of the recipient.

textstring required

The message body. Also accepted in a JSON request body.

Example request

{
  "recipient_id": "44196397",
  "text": "Hello from the TwitterAPIs DM API"
}

Response

Send a direct message from your authenticated account.

okboolean

True when the message was sent.

message_idstring nullable

ID of the sent message, or null if it failed.

conversation_idstring nullable

ID of the conversation the message landed in, or null if the upstream response did not include it.

recipient_idstring

The recipient's numeric user ID.

textstring

The message body that was sent.

Changes

No recorded changes to this operation across all 1 revision of this API.