Admin MCP — Marketing

Ad-level rows (reduced metric set), ranked within top-N by spend

get/admin/mcp/marketing/insights

Request

  • Base URL
    https://api.miaai.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://api.miaai.chat/admin/mcp/marketing/insights
  • Auth
    HTTP bearer

Query parameters

presetstring
Example:last_7d

Named window, ends yesterday. One of: yesterday, last_7d, last_14d, last_28d, last_30d, last_90d, this_month, last_month, lifetime

fromstring

UTC yyyy-MM-dd

tostring

UTC yyyy-MM-dd

limitnumber
sortstring
orderstring

Headers

x-mcp-api-keystring required

Scoped read-only marketing key (env MCP_MARKETING_API_KEY; the master MCP_API_KEY also works)

Changes

No recorded changes to this operation across all 1 revision of this API.