cURL
curl --request POST \ --url https://api.twitter.com/2/dm_conversations/{dm_conversation_id}/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "attachments": [ { "media_id": "1146654567674912769" } ], "text": "<string>" }'
{ "data": { "dm_conversation_id": "123123123-456456456", "dm_event_id": "1146654567674912769" }, "errors": [ { "detail": "<string>", "status": 123, "title": "<string>", "type": "<string>" } ] }
Creates a new message for a DM Conversation specified by DM Conversation ID
The access token received from the authorization server in the OAuth 2.0 flow.
The DM Conversation ID.
The request has succeeded.
The response is of type object.
object