Probably
Docs

List campaigns

list_campaigns, in Reads: Any connection or key may call these.

POST
/api/v1/tools/list_campaigns

A Space's campaigns, newest first: each with its product, its segments, how many ads its batches hold, its ads' spend in cents as the ad platforms reported it, and its status (planning, making, live, ended). Read one with get_campaign.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (prb_…) from Settings → Connections.

Request Body

application/json
  1. body
spaceId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The tool's answer.

application/json
  1. response
campaigns*array<>
curl -X POST 'https://studio.probably.co/api/v1/tools/list_campaigns' \  -H "Authorization: Bearer $PROBABLY_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "spaceId": "a330a273-e64a-4183-aedb-f3152797a9a5"}'
{  "campaigns": [    {      "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf",      "name": "string",      "status": "planning",      "product": "string",      "segments": [        "string"      ],      "batches": -9007199254740991,      "ads": -9007199254740991,      "spendCents": -9007199254740991    }  ]}