campaign.triggered

The campaign.triggered event is triggered when a campaign with a notification action has started processing its action

  • For one-time campaigns, the campaign.triggered event is triggered whenever a collaborator starts the campaign.
  • For scheduled campaigns, the campaign.triggered event is triggered at the start date specified on the campaign setup, and re-triggers every time with the schedule frequency.
{
    "type": "campaign.triggered",
    "id": "evt_iw7WxkMC3oKcKqQd0GWC2aZ7",
    "created": 1668459179,
    "triggered_from": "open_api",
    "data": {
        "campaign": {
            "id": 173,
            "name": "test2",
            "key": "test173141122",
            "description": null,
            "site": {
                "id": 165,
                "name": "staging"
            },
            "plan": {
                "id": 338142,
                "amount": 100,
                "nickname": "test",
                "name_internal": null,
                "product": {
                    "id": 1066,
                    "name": "Premium",
                    "name_internal": null
                }
            },
            "coupon": []
        },
        "magic_link_token": "eyJpdiI6IjAxNDJpcmZYdE02S3dhazloVVRNS3c9PSIsInZhbHVlIjoiRHc2TVZKcHh6eG5JbTFVcU1MenJPWXVZUjNwOTBEcHhBdDlDQmluSy94OHIyL3VTUVppMUxiWkNrTE9hcWZBcStSczhlWWlaRjF0R0dDTXdxS1VGaTJ1VnVCdTFxNFpRUk5CVUNHeUQrejhUUzREbW1OakV4ZzNrMGpaZWsyeSsiLCJtYWMiOiIwN2UyYzExNzRlY2FkMDJjMGNjYmQ5MTllNDYyYTFkMTEzZTFlYjY3MjU0OTNmNzQwYjQ3NGQwNzBiMzViNDU5IiwidGFnIjoiIn0=",
        "subscription": {
            "id": 2103807,
            "expire_date": "2022-11-29T00:05:06.000000Z",
            "days_to_expire": 0.1334038634837963,
            "address": {
                "line1": "a",
                "line2": null,
                "city": "a",
                "state": "QC",
                "country": "CA",
                "postal_code": "a"
            },
            "plan": {
                "id": 338142,
                "amount": 100,
                "currency": "cad",
                "interval": "day",
                "interval_count": 1,
                "nickname": "test",
                "name_internal": null,
                "product": {
                    "id": 1066,
                    "name": "Premium",
                    "name_internal": null
                }
            },
            "user": {
                "id": 5973651,
                "first_name": "a",
                "last_name": "s",
                "title": null,
                "email": "[email protected]"
            }
        }
    }
}