Skip to contentSkip to navigation

Create Tag Beta

Create a lead, campaign or email account tag.

POST /api/v1/tags

Requires an API key with the write scope.

Creates a tag. Names are unique per type, so a lead tag and a campaign tag can both be called vip. A lead tag's name is lowercased, the same as every other lead-tag call. type: "warmup" returns 422: warmup tags are created with Create Warmup Tag.

Request Body

name string body required
1 to 100 characters. Surrounding spaces are removed.
type string body required
lead, campaign or account.
color string body
#RRGGBB. Default #6B7280.

Errors

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: write
409A tag with that name and type already exists
422Invalid name, type or color, or type is warmup

Rate Limit

  • 120 requests per minute, shared by every write 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 (write).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?