getDirectMessages
Retrieve Twitter direct message conversations with customizable fields and pagination for efficient management and analysis of DM interactions.
Instructions
Retrieve direct message conversations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dmEventFields | No | Fields to include in the DM event objects | |
maxResults | No | Maximum number of results to return (default: 100, max: 100) | |
paginationToken | No | Pagination token for retrieving next page of results |
Input Schema (JSON Schema)
{
"properties": {
"dmEventFields": {
"description": "Fields to include in the DM event objects",
"items": {
"enum": [
"id",
"text",
"created_at",
"sender_id",
"dm_conversation_id",
"referenced_tweet",
"attachments"
],
"type": "string"
},
"type": "array"
},
"maxResults": {
"description": "Maximum number of results to return (default: 100, max: 100)",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"paginationToken": {
"description": "Pagination token for retrieving next page of results",
"type": "string"
}
},
"required": [],
"type": "object"
}