v1

latestOpenAPI 3.0.0Apache 2.02026-07-2410185524.2 KB
Campaigns

get all

Returns a list of campaigns you've previously created. The campaigns will be returned in descending order of when they were created, unless you specify otherwise.

For custom components:

RaiselyComponents.api.all('campaigns').get(params = {}, headers = {}) => Promise<{result}>

:fa-gears: See Restie Response Data for a more detailed overview of responses through the client wrapper

get/campaigns

Query parameters

privateboolean

Returns the full record when authenticated

qstring

Search query to find records matching

limitnumber

The number of records to limit per page

offsetnumber

The pagination offset (in number of records)

sortstring

The record attribute to filter on (use in conjunction with order)

order'asc' | 'desc'

The direction to sort (only applied if sort is also provided) * asc - Ascending * desc - Descending

pathstring

Filter Campaign based on their path value

modestring

Filter Campaign based on their mode value

statusstring

Filter Campaign based on their status value

pruneConfigboolean

In private queries, removes the campaign.config to reduce request size

includeTagsboolean

Also include any tags on this collection (if applicable)

Headers

Authorizationstring

A valid HTTP Bearer token, required to access private records.

Response

The resulting collection of Campaign records

Example response

{
  "data": [
    {
      "allowExperiments": true,
      "campaignEndsAt": "2020-12-03T06:52:46.330Z",
      "config": {
        "social": {
          "facebook_page_url": "https://www.facebook.com/raisely/",
          "twitter_hashtag": "#hashtag"
        },
        "thankyou": {
          "enabled": true
        },
        "activity": {
          "unit": "km",
          "timeUnit": "hr"
        }
      },
      "createdAt": "2020-12-03T06:52:46.330Z",
      "currency": "AUD",
      "deletedAt": "2020-12-03T06:52:46.330Z",
      "grandTotal": 2625,
      "mode": "LIVE",
      "name": "<< campaign name >>",
      "organisationUuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "path": "run-for-a-cure",
      "private": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "privateKey": "raisely-sk-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "profile": {
        "activityTotal": 2625,
        "activityTotalPercent": 2625,
        "campaignDisplayTotal": 2625,
        "createdAt": "2020-12-03T06:52:46.330Z",
        "currency": "AUD",
        "description": "I believe in a better world",
        "donationCount": 12345,
        "donationRecordCount": 12345,
        "exerciseGoal": 12345,
        "exerciseGoalTime": 12345,
        "exerciseTotal": 2625,
        "exerciseTotalTime": 2625,
        "fundraiserTheme": "birthday",
        "goal": 100050,
        "individualProfileCount": 12345,
        "isCampaignProfile": true,
        "name": "Bob D.",
        "nonSelfDonationTotal": 2625,
        "organisationProfileCount": 12345,
        "paid": true,
        "path": "bobd",
        "photoUrl": "https://raisely-images.imgix.net/www/uploads/t-03-arl-8-es-uhhqua-4-pr-f-4865431-df-58-512-png-08e3f5.png",
        "private": {
          "fieldA": "one",
          "fieldB": "yes"
        },
        "public": {
          "fieldA": "one",
          "fieldB": "yes"
        },
        "selfDonationTotal": 2625,
        "shared": true,
        "status": "ACTIVE",
        "subscriptionCount": 12345,
        "teamProfileCount": 12345,
        "type": "INDIVIDUAL",
        "uniqueDonors": 12345,
        "updatedAt": "2020-12-03T06:52:46.330Z",
        "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
      },
      "public": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "publicKey": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "showRaiselyCheckbox": true,
      "status": "ACTIVE",
      "theme": "donation-basic",
      "total": 2625,
      "totalPercent": 2625,
      "url": "https://raisely.com/",
      "urls": [
        "yourdomain.com"
      ],
      "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "version": "3.0.0"
    }
  ],
  "pagination": {
    "total": 10,
    "pages": 2,
    "offset": 5,
    "limit": 5
  }
}