List campaign builds

The 20 most recent campaign builds with their stage, sourced counts, blockers and outcomes. Pass run_id for one.

GEThttps://app.trygtm.com/api/v1/campaign-builds
Scope
read

Query parameters

run_idstringoptional
One build's id. Omit for the 20 most recent builds in this workspace.

Request

curl https://app.trygtm.com/api/v1/campaign-builds \
  -H "Authorization: Bearer $TRYGTM_API_KEY"

Response

{
  "data": [
    {
      "id": "7c1e2d3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
      "name": "Q4 logistics leaders",
      "stage": "sourcing",
      "imported": 240,
      "target": 1000,
      "campaign_id": "3b7f0c52-91aa-4e0d-8c11-5a2d6e4f7b90",
      "last_error": null,
      "campaign_path": "/demand/campaigns/3b7f0c52-91aa-4e0d-8c11-5a2d6e4f7b90"
    }
  ]
}

Was this page helpful?