DM insights over time
postkey_get_dm_insightsPostkey: Reports how the profile's DM automations did over the last 7, 14 or 30 days: starts, DMs sent, link clicks, click rate and emails captured, each against the period before; a day by day series; where starts came from (comments, stories, DM keywords, ref links, ads); how the follow check went; and the posts that drove the most DMs, each with its views and the automations it ran. Use it for DM results over time or by post; for each keyword automation's lifetime counts use postkey_get_automation_stats.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "postkey_get_dm_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The window, counted back from today in the profile's time zone: 7, 14 or 30 (default) days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| to | No | Its last day (today). | |
| days | No | The window: the last 7, 14 or 30 days. | |
| from | No | The window's first day, YYYY-MM-DD in time_zone. | |
| note | No | How the numbers are counted. | |
| daily | No | One per day: day, dms_sent, link_clicks. | |
| posts | No | Up to 20 by DMs sent: post_id, title, type, platform, published, views, comments, engagement_rate, starts, dms_sent, link_clicks, click_rate, emails_captured, follow_checks_passed, automations, link. | |
| totals | No | starts, dms_sent, link_clicks, unique_link_clicks, click_rate (0.25 is 25%; null with no DMs), emails_captured, dms_read, dms_failed. | |
| sources | No | Where starts came from: source, name, starts, dms_sent, link_clicks. | |
| time_zone | No | The profile's time zone. | |
| posts_total | No | All posts that drove DMs in the window. | |
| follow_check | No | asked, passed, failed, skipped. | |
| previous_period | No | from, to, and the same counts for the period before (null when there were none). | |
| not_tied_to_a_post | No | starts, dms_sent, link_clicks, emails_captured from DM keywords, ref links and any-post comments. | |
| automations_running | No | Automations live now. |