Campaigns Resource
List of API endpoints for the Campaigns resource.
Retrieve all Campaigns
GET
https://www.dosomething.org/api/v2/campaigns
Get an index list of all campaigns, filterable using query parameters.
Query Parameters
filter[id]
string
e.g.: 37,6LQzMvDNQcYQYwso8qSkQ8
Currently, this endpoint only supports a filtered ID query and returns an abridged set of primary campaign fields to reduce the data load. There is a limit of 10 IDs per request; both Ashes and Contentful Campaign IDs are supported.
Retrieve a single Campaign
GET
https://www.dosomething.org/api/v2/campaigns/:id
Get a single campaign using a specified id.
Path Parameters
id
string
e.g.: 6LQzMvDNQcYQYwso8qSkQ8
Retrieve all Posts for a Campaign
GET
https://www.dosomething.org/api/v2/campaigns/:id/posts
Get an index list of all posts for a specified campaign.
Path Parameters
id
string
e.g.: 6LQzMvDNQcYQYwso8qSkQ8
Create a Post for a Campaign
POST
https://www.dosomething.org/api/v2/campaigns/:id/posts
Path Parameters
id
string
e.g.: 3455
Last updated