Use this API to get all donation campaigns within a donation website.
{ "donation_campaigns": [ { "donation_campaign_id": 123, "donation_campaign_name": "Example Donation Campaign", "campaign_message_html": "Example donation campaign message
", "campaign_message_text": "Example donation campaign message", "donation_campaign_start_ts": 1624420800, "donation_campaign_end_ts": 32503679999, "default_individual_fundraiser_goal_in_cents": 0, "default_team_fundraiser_goal_in_cents": 0, "donation_messaging": { "donation_description_html": null, "donation_description_text": null, "donations_closed_html": null, "offline_payment_instructions": null, "absorb_processing_fee_text": null }, "donation_campaign_url": "https://www.givesignup.org/DonationWebsite/ExampleDonationWebsite/Campaign/ExampleDonationCampaign", "donation_campaign_short_url": "https://www.givesignup.org/g/000000", "individual_fundraiser_messaging": null, "team_fundraiser_messaging": null } ] }
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
donation_website_id Required |
GET | Donation Website ID | uint |
|
rsu_api_key Required |
GET | API key | string |
|
X-RSU-API-SECRET Required |
HTTP Header | API secret | string |
{ "openapi": "3.0.3", "info": { "title": "Get Donation Campaigns", "description": "Get all donation campaigns within a donation website.", "version": "1.0.0", "contact": { "name": "RunSignup API Support", "url": "https://runsignup.com/API", "email": "info@runsignup.com" } }, "servers": [ { "url": "https://runsignup.com/API", "description": "Production API Server" } ], "tags": [ { "name": "Donation Websites", "description": "APIs related to Donation Websites" } ], "components": { "schemas": { "Error": { "type": "object", "properties": { "error": { "type": "string", "description": "Error message" } }, "required": [ "error" ] }, "BadRequestError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating invalid request parameters or structure" } ] }, "UnauthorizedError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating authentication failure" } ] }, "ForbiddenError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating the authenticated user lacks required permissions" } ] }, "NotFoundError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating the requested resource does not exist" } ] }, "ServerError": { "allOf": [ { "$ref": "#/components/schemas/Error" }, { "description": "Error indicating an unexpected server-side issue" } ] } }, "securitySchemes": { "apiKey": { "type": "apiKey", "in": "query", "name": "api_key", "description": "RunSignup API Key" }, "apiSecret": { "type": "apiKey", "in": "query", "name": "api_secret", "description": "RunSignup API Secret" } } }, "paths": { "/v2/donation-websites/get-donation-campaigns.json": { "get": { "tags": [ "Donation Websites" ], "summary": "Get Donation Campaigns", "description": "Get all donation campaigns within a donation website.", "operationId": "v2_donation_websites_get_donation_campaigns_json", "parameters": [ { "name": "donation_website_id", "in": "query", "description": "Donation Website ID", "required": true, "schema": { "type": "integer" } }, { "name": "rsu_api_key", "in": "query", "description": "API key", "required": true, "schema": { "type": "string" } }, { "name": "X-RSU-API-SECRET", "in": "header", "description": "API secret", "required": true, "schema": { "type": "string" } } ], "security": [ { "apiKey": [] }, { "apiSecret": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BadRequestError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UnauthorizedError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForbiddenError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotFoundError" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServerError" } } } } }, "x-permissions": [] } } } }