DaffodilAPI
Campaigns

Get a Campaign

Returns a Campaign with its content and totals. Send the ETag from an earlier response as If-None-Match to get 304 with no body while nothing, totals included, has changed. campaign.updated fires on every change.

GET
/v1/campaigns/{id}
AuthorizationBearer <token>

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

In: header

Path Parameters

idstring
Match^camp_[0-9A-Za-z]{22}$

Header Parameters

if-none-match?string

An ETag from an earlier response for this Campaign.

Response Body

curl -X GET "https://sandbox.api.getdaffodil.com/v1/campaigns/camp_3iQ8pN19o0ZBATqJs3QVlE" \  -H "if-none-match: "c7f3a1""
{
  "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"
}
Empty
{
  "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"
}