Get Campaign/Subcampaign
curl --request GET \
--url https://server.stage.overflow.co/api/v3/campaigns/{campaignId} \
--header 'x-api-key: <api-key>' \
--header 'x-client-id: <api-key>'import requests
url = "https://server.stage.overflow.co/api/v3/campaigns/{campaignId}"
headers = {
"x-client-id": "<api-key>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-client-id': '<api-key>', 'x-api-key': '<api-key>'}};
fetch('https://server.stage.overflow.co/api/v3/campaigns/{campaignId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.stage.overflow.co/api/v3/campaigns/{campaignId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-client-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://server.stage.overflow.co/api/v3/campaigns/{campaignId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-id", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://server.stage.overflow.co/api/v3/campaigns/{campaignId}")
.header("x-client-id", "<api-key>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.stage.overflow.co/api/v3/campaigns/{campaignId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-id"] = '<api-key>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "7710f34fd5061afeec3eab59",
"archivedAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"name": "Builders Fundraiser",
"startDate": "2025-01-01T00:00:00.000Z",
"endDate": "2025-12-01T00:00:00.000Z",
"status": "ACTIVE",
"displayOrder": 1,
"isSubcampaign": false,
"hideFromDonors": false,
"isActive": false,
"locationIds": [
"<string>"
],
"parentCampaigns": [
{
"id": "<string>",
"name": "<string>"
}
],
"subcampaigns": [
{
"id": "<string>",
"name": "<string>"
}
],
"applyToAllCampaigns": true,
"totalContributionCount": 100,
"totalContributionValue": 1000,
"uniqueDonorCount": 100
}
}Get Campaign/Subcampaign
Returns campaign/subcampaign for given ID.
GET
/
api
/
v3
/
campaigns
/
{campaignId}
Get Campaign/Subcampaign
curl --request GET \
--url https://server.stage.overflow.co/api/v3/campaigns/{campaignId} \
--header 'x-api-key: <api-key>' \
--header 'x-client-id: <api-key>'import requests
url = "https://server.stage.overflow.co/api/v3/campaigns/{campaignId}"
headers = {
"x-client-id": "<api-key>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-client-id': '<api-key>', 'x-api-key': '<api-key>'}};
fetch('https://server.stage.overflow.co/api/v3/campaigns/{campaignId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.stage.overflow.co/api/v3/campaigns/{campaignId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-client-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://server.stage.overflow.co/api/v3/campaigns/{campaignId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-id", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://server.stage.overflow.co/api/v3/campaigns/{campaignId}")
.header("x-client-id", "<api-key>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.stage.overflow.co/api/v3/campaigns/{campaignId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-id"] = '<api-key>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "7710f34fd5061afeec3eab59",
"archivedAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"name": "Builders Fundraiser",
"startDate": "2025-01-01T00:00:00.000Z",
"endDate": "2025-12-01T00:00:00.000Z",
"status": "ACTIVE",
"displayOrder": 1,
"isSubcampaign": false,
"hideFromDonors": false,
"isActive": false,
"locationIds": [
"<string>"
],
"parentCampaigns": [
{
"id": "<string>",
"name": "<string>"
}
],
"subcampaigns": [
{
"id": "<string>",
"name": "<string>"
}
],
"applyToAllCampaigns": true,
"totalContributionCount": 100,
"totalContributionValue": 1000,
"uniqueDonorCount": 100
}
}Authorizations
Client ID for API authentication
API Key for API authentication
Path Parameters
The Id of the campaign/subcampaign to get.
Example:
"2ea1ae03ca521e437db76d76"
Response
Campaign for the given id.
Show child attributes
Show child attributes
Last modified on July 14, 2026
Was this page helpful?
⌘I