Skip to main content
POST
/
meta
/
mcp#export_insights
Export Insights
curl --request POST \
  --url 'https://api.adside.ai/meta/mcp#export_insights' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "<string>",
  "method": "<string>",
  "params": {
    "name": "<string>",
    "arguments": {
      "object_id": "<string>",
      "level": "account",
      "format": "csv",
      "date_preset": "today",
      "time_range": {
        "since": "<string>",
        "until": "<string>"
      },
      "fields": [
        "<string>"
      ],
      "breakdowns": [
        "<string>"
      ]
    }
  },
  "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