Admin MCP — Marketing

Ad spend split into calendar buckets

get/admin/mcp/marketing/spend-by-bucket

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/spend-by-bucket
  • 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

granularitystring required

daily | weekly | monthly | fixed

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.