Sends a new direct message to a specific participant by their ID.
643 matches
14 actions
X
14 actions
- Create DM message by participant IDPOSTv1.0.0
- Create PostsPOSTv1.0.0
- Delete PostsDELETEv1.0.0
- Follow UserPOSTv1.0.0
- Get Posts by IDGETv1.0.0
- Get Users by UsernameGETv1.0.0
- Get Users FollowersGETv1.0.0
- Get Users MeGETv1.0.0
- Get Users MentionsGETv1.0.0
- Get Users PostsGETv1.0.0
- Like PostPOSTv1.0.0
- Repost PostPOSTv1.0.0
- Search Posts RecentGETv1.0.0
- Search UsersGETv1.0.0
Social/X
Create DM message by participant ID
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
{
"type": "object",
"properties": {
"attachments": {
"type": "array",
"description": "Attachments to include with the message.",
"items": {
"type": "object",
"required": [
"media_id"
],
"properties": {
"media_id": {
"type": "string",
"description": "A media id to attach to the message."
}
},
"additionalProperties": false
}
},
"participant_id": {
"type": "string"
},
"text": {
"type": "string",
"description": "Text of the Direct Message."
}
},
"required": [
"participant_id"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
{
"type": "object",
"properties": {
"data": {
"type": "object",
"required": [
"dm_conversation_id",
"dm_event_id"
],
"properties": {
"dm_conversation_id": {
"type": "string",
"description": "The conversation the message was sent to."
},
"dm_event_id": {
"type": "string",
"description": "The id of the created DM event."
}
}
},
"errors": {
"type": "array",
"items": {
"type": "object"
}
}
}
}