← All webhook events

Subscribe to campaign.created

A new fundraising campaign is published - public, goal-set, donate button live.

When does campaign.created fire?

A campaign moves from draft → published. Includes goal_amount, starts_at, ends_at and the public_url for the campaign page.

What developers build with it

  • Mirror to your website CMS (Webflow, WordPress, Sanity)
  • Schedule launch posts on social media via Buffer / Hootsuite
  • Push to email-marketing for campaign-launch broadcasts
  • Update internal dashboards / war rooms

Sample payload

The full envelope (with HMAC-SHA256 signature, delivery UUID and headers) is documented on the webhooks hub page. Below is the per-event data block for campaign.created:

{
    "campaign_id": 18,
    "ngo_id": 7,
    "title": "Monsoon Relief 2026",
    "goal_amount": 1000000,
    "currency": "INR",
    "starts_at": "2026-06-01T00:00:00+05:30",
    "ends_at": "2026-08-31T23:59:59+05:30",
    "public_url": "https://www.donateazy.in/c/monsoon-relief-2026",
    "created_at": "2026-05-15T09:00:00+05:30"
}

Subscribe to this event

From your NGO dashboard, head to System · Webhooks · Add new. Paste your HTTPS endpoint, copy the signing secret, tick campaign.created in the events list, save. The first matching event fires within seconds. Verify the X-Donateazy-Signature header on every request.

// PHP example - drop into your webhook receiver
$raw = file_get_contents('php://input');
$expected = hash_hmac('sha256', $raw, $WEBHOOK_SECRET);
if (! hash_equals($expected, $_SERVER['HTTP_X_DONATEAZY_SIGNATURE'] ?? '')) {
    http_response_code(401); exit;
}

$payload = json_decode($raw, true);
if ($payload['event'] !== 'campaign.created') {
    http_response_code(202); exit; // not for this handler
}

// $payload['data'] is the block documented above.
handleCampaignCreated($payload['data'], $payload['id']);
http_response_code(200);

Build your first integration in 10 minutes.

Webhooks ship on Pro and above. Full API reference, signature verification and idempotency on the hub.

Read the full reference See pricing
Chat with us