createCampaign
Create and launch a new campaign for the calling business. Returns the campaign id, name, and dashboard URL. The campaign goes live immediately — no separate publish step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Customer-facing campaign name | |
| actions | Yes | Action IDs the campaign accepts (e.g. ['ig_st'] for an Instagram Story Tag). | |
| businessId | Yes | The business owning this campaign. Must match the API key's business. | |
| description | No | Optional internal description | |
| discountType | Yes | Discount denomination: 'pct' for percentage, 'dol' for dollars off. | |
| discountValue | Yes | Discount amount. Capped at 100 for pct, 10000 for dol. | |
| expiresInDays | No | Days until the campaign auto-expires. Default 60. | |
| maxCompletions | No | Optional cap on total completions. Null = no cap. |