v1

latestOpenAPI 3.0.0Twitter Developer Agreement and Policy2026-07-1480235216.3 KB
Direct Messages

Send a new message to a DM Conversation

Creates a new message for a DM Conversation specified by DM Conversation ID

post/2/dm_conversations/{dm_conversation_id}/messages

Path parameters

dm_conversation_idstring required

The DM Conversation ID.

Request body

OR

Example request

{
  "attachments": [
    {
      "media_id": "1146654567674912769"
    }
  ]
}

Response

The request has succeeded.

Example response

{
  "data": {
    "dm_conversation_id": "123123123-456456456",
    "dm_event_id": "1146654567674912769"
  }
}