DaffodilAPI
Campaigns

Create a Campaign

Creates a Campaign raising into one Fund. On a Shared fund, beneficiary_ids name the nonprofits the money is promised to, and your Account grants from the Fund when it chooses; nothing auto-grants. Live and paused Shared fund Campaigns count against your Account’s Campaign limit, so creating one live or paused over the limit is refused (403 entitlement_limit); a draft counts once it goes live. On a Personal fund, the Campaign is for one of its Advisors (donor_id, required; 409 donor_not_advisor for a Donor who does not advise the Fund) and raises for the Fund’s own giving, which its Advisors then grant from; it names no beneficiaries, never counts against the limit, and needs the Personal fund campaigns Entitlement (403 personal_fund_campaigns_not_enabled without it).

POST
/v1/campaigns
AuthorizationBearer <token>

Your secret API key: dfl_live_… in production, dfl_test_… in the Sandbox.

In: header

Header Parameters

idempotency-keystring

Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 idempotency_key_reused. Keys are kept for 24 hours, per Account and environment.

Length1 <= length <= 255
fund_idstring

The Fund to raise into. It cannot change later.

Match^fund_[0-9A-Za-z]{22}$
donor_id?string

On a Personal fund, required: the Advisor the Campaign is for. Omit on a Shared fund.

Match^donor_[0-9A-Za-z]{22}$
titlestring
Length1 <= length <= 200
slugstring

Lowercase letters, digits, and hyphens. Unique within your Account.

Match^[a-z0-9]+(-[a-z0-9]+)*$
Lengthlength <= 100
description?string | null

Markdown.

Lengthlength <= 20000
banner_image_url?string | null
Formaturi
Lengthlength <= 2048
goal_amountinteger

The goal. Integer cents.

Range0 <= value
currency?Currency
starts_at?string | null

ISO 8601, UTC.

Formatdate-time
ends_at?string | null

ISO 8601, UTC.

Formatdate-time
status?CampaignStatus
public_page?boolean

Publish Daffodil’s own public page for the Campaign.

Defaultfalse
beneficiary_ids?array<string>

The nonprofits the money is promised to. Shared fund Campaigns only; a Personal fund Campaign names none.

Default[]
Itemsitems <= 50

Response Body

curl -X POST "https://sandbox.api.getdaffodil.com/v1/campaigns" \  -H "idempotency-key: 8e03978e-40d5-43e8-bc93-6894a57f9324" \  -H "Content-Type: application/json" \  -d '{    "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",    "title": "Winter Meals Drive",    "slug": "winter-meals-2026",    "description": "Every **$25** feeds a family for a week.",    "goal_amount": 5000000,    "currency": "USD",    "starts_at": "2026-12-01T08:00:00Z",    "ends_at": "2027-01-31T08:00:00Z",    "status": "live",    "beneficiary_ids": [      "np_3O9F93l8HsuBKoBLX52FGS"    ]  }'
{
  "id": "camp_3iQ8pN19o0ZBATqJs3QVlE",
  "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
  "donor_id": null,
  "title": "Winter Meals Drive",
  "slug": "winter-meals-2026",
  "description": "Every **$25** feeds a family for a week.",
  "banner_image_url": "https://cdn.example.com/winter-meals.jpg",
  "goal_amount": 5000000,
  "currency": "USD",
  "starts_at": "2026-12-01T08:00:00Z",
  "ends_at": "2027-01-31T08:00:00Z",
  "status": "live",
  "public_page": false,
  "beneficiaries": [
    {
      "id": "np_3O9F93l8HsuBKoBLX52FGS",
      "ein": "12-3456789",
      "name": "Bay Area Food Bank",
      "city": "San Francisco",
      "state": "CA",
      "grantable": true
    }
  ],
  "raised_amount": 1287500,
  "contribution_count": 214,
  "contributor_count": 198,
  "created_at": "2026-11-11T21:42:00Z",
  "updated_at": "2026-12-14T17:03:00Z"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}