Skip to contentSkip to navigation

Count Campaigns Beta

Count your campaigns in total and by status.

GET /api/v1/campaigns/count

Requires an API key with the read scope.

One grouped query, so the cost does not grow with the number of campaigns. byStatus always lists all four statuses, with 0 where none match.

Errors

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: read

Rate Limit

  • 300 requests per minute, shared by every read call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (read).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?