Skip to main content
This guide walks you through retrieving Direct Message events for the authenticated user.
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
Replace 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

TypeDescription
MessageCreateA message was sent
ParticipantsJoinUser joined conversation
ParticipantsLeaveUser left conversation

Include user data

Expand sender information:
cURL

Response with expansion


Common parameters

ParameterDescription
max_resultsEvents per page (1-100, default 100)
pagination_tokenToken for next page
dm_event.fieldsEvent fields to return
event_typesFilter by event type
expansionsRelated objects to include

Next steps

Send DMs

Send Direct Messages

Integration guide

Key concepts and best practices

API Reference

Full endpoint documentation