trackagoat logotrackagoat/Docs

Getting started

  • Welcome
  • Quickstart
  • Core concepts

Guides

  • Creators
  • Videos
  • Campaigns
  • Creator Goals
  • Tracking Inbox
  • Content calendar
  • How scraping works
  • Analytics & metrics
  • Similar creator pools
  • Over-posting & suppression
  • Program Health
  • Sentiment Radar
  • API keys
  • Limits & plan tiers
  • Notifications
  • Payouts

API reference

  • Overview
  • Authentication
  • Errors
  • Projects
  • Creators
  • Videos
  • Campaigns
  • Analytics
  • Aggregate Analytics
  • Payouts
  • Schema

For agents

  • Agent guide
  • Data model
  • MCP & tooling

Platform

  • Brand
  • Changelog
  • Support
DocsAPI reference

Campaigns

List campaigns and fetch aggregate stats across all campaign items.

PreviousVideosNextAnalytics

On this page

  • GET /api/v1/campaigns
  • Request
  • Query parameters
  • Response fields
  • PATCH /api/v1/campaigns/{id}
  • Body
  • Analytics (time-series)

GET /api/v1/campaigns

List campaigns in your organization.

Request

bash
curl -H "Authorization: Bearer tga_<key>" \
  "https://www.trackagoat.com/api/v1/campaigns?project_id=<uuid>"

Query parameters

ParameterTypeDefaultDescription
project_iduuid—Filter to a specific project
searchstring—Filter campaigns by name (case-insensitive substring match)
limitnumber50Items per page (max 100)
cursorstring—Pagination cursor

Response fields

FieldTypeDescription
iduuidCampaign ID
project_iduuidProject this campaign belongs to
namestringCampaign name
descriptionstring | nullCampaign strategy / agent context
metadataobjectAgent-writable structured data
created_at

PATCH /api/v1/campaigns/

Update a campaign's readme field.

Body

FieldTypeDescription
readmestring | nullMarkdown notes. Pass null to clear.

Analytics (time-series)

Campaign time-series analytics have moved to the unified endpoint. The new endpoint also supports breakdown by video or creator, multi-granularity buckets, and prior-period comparison.

bash
# Daily new views for a campaign
curl -H "Authorization: Bearer tga_<key>" \
  "https://www.trackagoat.com/api/v1/analytics?entity=campaign&entity_id=<uuid>&metric=views&mode=new&granularity=day"
 
# Monthly cumulative views
curl -H "Authorization: Bearer tga_<key>" \
  "https://www.trackagoat.com/api/v1/analytics?entity=campaign&entity_id=<uuid>&metric=views&mode=cumulative&granularity=month"
 
# Top-10 video breakdown
curl -H "Authorization: Bearer tga_<key>" \
  "https://www.trackagoat.com/api/v1/analytics?entity=campaign&entity_id=<uuid>&metric=views&breakdown=video&top_n=10"
 
# Engagement rate (derived)
curl -H "Authorization: Bearer tga_<key>" \
  "https://www.trackagoat.com/api/v1/analytics?entity=campaign&entity_id=<uuid>&metric=engagement_rate_by_views&mode=rate"
 
# Multi-entity overlay — compare up to 5 campaigns side-by-side
curl

See the Analytics API reference for the full parameter and response documentation.

Removed: GET /api/v1/campaigns/{id}/stats returned 410 Gone as of v1.2. Use GET /api/v1/analytics?entity=campaign&entity_id={id} instead.

ISO 8601
Creation timestamp
updated_atISO 8601Last update
-H
"Authorization: Bearer tga_<key>"
\
"https://www.trackagoat.com/api/v1/analytics?entity=campaign&entity_ids=<uuid1>,<uuid2>,<uuid3>&metric=views&granularity=week"