PrerequisitesBefore you begin, you’ll need:
- A developer account with an approved App
- User Access Token (OAuth 1.0a or OAuth 2.0 PKCE)
Get all DM events
Retrieve all DM events for the authenticated user:cURL
Response
Get one-to-one conversation
Retrieve DM events from a specific one-to-one conversation:cURL
9876543210 with the other participant’s user ID.
Get conversation by ID
Retrieve DM events from a specific conversation ID:cURL
Filter by event type
Get only specific event types:cURL
Event types
| Type | Description |
|---|---|
MessageCreate | A message was sent |
ParticipantsJoin | User joined conversation |
ParticipantsLeave | User left conversation |
Include user data
Expand sender information:cURL
Response with expansion
Common parameters
| Parameter | Description |
|---|---|
max_results | Events per page (1-100, default 100) |
pagination_token | Token for next page |
dm_event.fields | Event fields to return |
event_types | Filter by event type |
expansions | Related objects to include |