Overview
Send message
Send a DM to another user
Delete message
Delete a DM for yourself
Create conversation
Start a new conversation
Group messages
Send to group conversations
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /2/dm_conversations | Create a new conversation |
| POST | /2/dm_conversations/with/:participant_id/messages | Send to one-to-one conversation |
| POST | /2/dm_conversations/:dm_conversation_id/messages | Send to existing conversation |
| DELETE | /2/dm_events/:id | Delete a DM event |
Example: Send a message
Example response
Message types
You can send text messages and attach media:Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- User Access Tokens via OAuth 2.0 PKCE