API reference · Campaigns
List campaigns
GET/v1/campaigns
List all your past and current campaigns.
Requires a Bearer access token.
Parameters
1 of 13 fields has no description in the spec.
limit#numberin queryThe max number of items to return.
cursor#stringin queryThe id of the last item from the previous page. Used to fetch the next page.
givingType_in#string[]in queryat least 1 itemsFINANCIALPAYROLLPAID_TIME_OFFtype#stringin queryFilter on campaign type
TIME_BASEDPERMANENTstatus#stringin queryFilter on campaign status
DRAFTPENDINGACTIVECOMPLETECANCELEDincludeMetrics#booleanin queryInclude metrics
includeMatchedDonationsInMetrics#booleanin queryInclude matched donations made by and charged to the beneficiary in the metrics
includeSiteUrl#booleanin queryInclude site url
includeAssets#booleanin queryInclude assets such as the QR code linking to the campaign page for a public campaign.
includeTranslations#booleanin queryInclude available translations if any for every localized fields.
accountId#stringin queryUUIDId of the account. Only useful for Platform customers to filter campaigns by child accounts.
search#stringin queryat least 3 charactersFull text search on the name field. Minimum length: 3
Required in the spec, optional for the API.
sort#stringin querySorting field and order
createdAt:asccreatedAt:descname:ascname:descstatus:ascstatus:descmetrics.claimedDonationsVolume:ascmetrics.claimedDonationsVolume:desc
Response
200 · Campaign[]No field is described in the spec.
campaignId#stringalways returnedname#stringalways returnedtype#CampaignTypeTIME_BASEDPERMANENTamountType#CampaignAmountTypeFIXED_AMOUNTFREE_AMOUNTaudienceType#CampaignAudienceTypePRIVATEPUBLICdonationType#CampaignDonationTypeFACE_VALUEDISTRIBUTIONgivingType#GivingTypealways returnedFINANCIALPAYROLLPAID_TIME_OFFrecurringType#RecurringTypealways returnedNONEFREQUENCYMANUALstartDate#string (date-time)always returnedendDate#string (date-time)budget#integer (int64)sendingMode#CampaignSendingModeMANUALEMAILPHYSICALSLACKPOSTALstatus#CampaignStatusDRAFTPENDINGACTIVECOMPLETECANCELEDslug#stringpublicKey#stringalways returnedwithFiscalReceipts#booleanalways returnedlanguage#Languagefrenfrequency#stringbudgetFrequency#stringbillingStatus#BillingStatusalways returnedPENDINGBILLEDPAIDdefaultHideAmount#booleanwithHideAmountCustomization#booleanwithGiftCards#booleanwithLeadCollection#booleanwithoutCustomization#booleanalways returnedmomentType#MomentTypeOCCASIONKEY_MOMENTEDITIONmomentSlug#stringleadCollectionOptions#objectdonationsBilledOn#DonationBilledOnalways returnedCREATIONCLAIMwithDonationsValidation#booleanalways returnedfiscalReceiptType#FiscalReceiptTypealways returnedYEARLYSINGLE_DONATIONfiscalReceiptSendingMode#FiscalReceiptSendingModealways returnedMANUALEMAILdefaultHasBeenCharged#booleanalways returneddefaultFeeType#FeeTypealways returnedEXCLUDEDINCLUDEDdonationValidityPeriod#stringalways returnedtemplate#stringphysicalFormat#PhysicalFormatCUSTOMPRINTPARCELwithEmailWall#booleanpostDonationWidgets#PostDonationWidget[]always returnedtitle#stringdescription#stringlogoUrl#stringfaviconUrl#stringtitleColor#stringaccentColor#stringgivingTarget#integer (int64)message#stringreminderMessage#stringemailSenderName#stringemailSenderPictureUrl#stringemailSubject#stringemailTemplate#stringemailReplyTo#stringemailDisplayCard#booleanlastCustomerReminderId#stringcharitiesSelectionId#stringaccountId#stringalways returnedcampaignTemplateId#stringdonorPlatformId#stringcreatedAt#string (date-time)always returnedupdatedAt#string (date-time)always returned
Errors
400A field is missing, has the wrong type, or is not part of the request schema.
Every request with a body or query is validated.
{ "statusCode": 400, "message": [ "amount must not be less than 1", "property foo should not exist" ], "error": "Bad Request" }401Unauthorized
Missing, expired or invalid access token.
{ "statusCode": 401, "message": "Unauthorized" }403Account closed
{ "message": "Account closed", "code": "ACCOUNT_CLOSED" }
curl -X GET https://api.sandbox.charitips.com/v1/campaigns \ -H "Authorization: Bearer $CHARITIPS_TOKEN"Request bodies are written for this docs and checked against the API's validation; ids in angle brackets are placeholders. Response values are placeholders built from the schema.