Skip to main content
POST
/
tiktok
/
mcp#get_report
Get Report
curl --request POST \
  --url 'https://api.adside.ai/tiktok/mcp#get_report' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "<string>",
  "method": "<string>",
  "params": {
    "name": "<string>",
    "arguments": {
      "start_date": "<string>",
      "end_date": "<string>",
      "advertiser_id": "<string>",
      "report_type": "BASIC",
      "data_level": "AUCTION_CAMPAIGN",
      "dimensions": [
        "campaign_id"
      ],
      "metrics": [
        "spend",
        "impressions",
        "clicks",
        "ctr",
        "cpc",
        "cpm"
      ],
      "filters": [
        {
          "field_name": "<string>",
          "filter_type": "IN",
          "filter_value": "<string>"
        }
      ],
      "page": 1,
      "page_size": 100
    }
  },
  "id": "1"
}
'
{
  "jsonrpc": "<string>",
  "id": "<string>",
  "result": {
    "content": [
      {
        "type": "<string>",
        "text": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via the web app's workspace settings.

Body

application/json
jsonrpc
string
required
Allowed value: "2.0"
method
string
required
Allowed value: "tools/call"
params
object
required
id
string
Example:

"1"

Response

JSON-RPC response with tool result

jsonrpc
string
Allowed value: "2.0"
id
string
result
object