API

Campaigns API

Draft a one-shot send and deliver it with idempotency.

A campaign is a one-shot send to the current audience snapshot.

Endpoints: listCampaigns, createCampaign, getCampaign, updateCampaign, deleteCampaign, sendCampaign

Scope: write to draft; deliver to send.

Create

Provide a name, audience, message document (confirmed), and communicationClass (marketing, newsletter, product_service, operational, transactional). Wrong class for promotional content will fail eligibility, not “sneak through.”

Optional sendAt schedules. Until send, status stays draft.

Send

sendCampaign with Idempotency-Key derived from the campaign id (send-${campaignId}). Audryo queues eligible contacts and skips suppressed / missing-consent people — they show as suppressed, not as delivered.

There is no holdout on campaigns. For incrementality use a Journey.

CLI: audryo campaigns draft --name "July update" --audience-id …