get_dm_history
Retrieve private message conversation history with a Twitter user. Provide screen_name and optionally max_id to paginate to older messages.
Instructions
Get DM conversation history with a user.
Note: Retrieves PRIVATE messages. Do not bulk-call. X has aggressive anti-spam on DMs and may suspend the account.
Args:
screen_name: Twitter username (without @).
max_id: If specified, retrieves messages older than this ID (for pagination).
Pass the value from a previous response's next_cursor here on the
next call to walk further back in time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screen_name | Yes | ||
| max_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |