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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"businessId": "<businessId>",
"name": "<name>",
"actions": "<actions>",
"discountValue": "<discountValue>",
"discountType": "<discountType>"
},
"name": "createCampaign"
}
}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. |