Skip to content

Campaigns

A campaign is the distribution boundary in Pingdex. Every lead you submit belongs to exactly one campaign, and the campaign decides three things:

You submit a lead by sending its campaign_id to the API. Pingdex validates the payload against the campaign schema, then routes it to one of the campaign’s providers. See Submit a lead.

Setting Purpose
name A label for the campaign, up to 255 characters.
description Optional notes, up to 2000 characters.
enabled Whether the campaign accepts leads. Defaults to false.
routing_strategy Either highest_bid or priority.
schema The list of fields Pingdex validates on each lead.
provider_ids The providers assigned to the campaign. For priority routing, the order matters.

New campaigns are disabled by default. A disabled campaign:

  • rejects ingest: POST /api/v1/leads for the campaign is refused, so no new leads are accepted.
  • stops delivery: leads that have not yet been delivered are no longer sent to providers.

Enable a campaign when its schema is final and at least one compatible provider is assigned. You can disable it again at any time to pause both ingest and delivery.