List campaign messages
curl --request GET \
--url https://api.donate.gg/api/v2/campaigns/{campaignId}/messagesimport requests
url = "https://api.donate.gg/api/v2/campaigns/{campaignId}/messages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/campaigns/{campaignId}/messages', 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://api.donate.gg/api/v2/campaigns/{campaignId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.donate.gg/api/v2/campaigns/{campaignId}/messages"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.donate.gg/api/v2/campaigns/{campaignId}/messages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/campaigns/{campaignId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "cmrpkayih000a04ky4kc4pu57",
"status": "settled",
"message": "Kintara Wishing Well",
"donor": {
"chainId": 101,
"address": "ExampLeWa11et1111111111111111111111111111111",
"name": null,
"imageUrl": null,
"url": null
},
"coin": null,
"amountAtomic": "13346508",
"token": {
"chainId": 101,
"address": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"decimals": 9
},
"amountUsdE6": "1000184",
"donatedAt": "2026-07-17T23:21:25.000Z",
"unconfirmedAt": null
}
],
"nextCursor": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This API key is not valid."
}{
"code": "NOT_FOUND",
"message": "<string>"
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Wait for the time in the Retry-After header."
}Campaigns
List campaign messages
Public messages donors left for this campaign, newest first, each with the part of the donation attributed to the campaign. Includes donations made through any config that names the campaign. A hidden campaign answers 404, the same as an unknown id. Public: no API key is needed. Send one to use your organization’s rate limit.
GET
/
v2
/
campaigns
/
{campaignId}
/
messages
List campaign messages
curl --request GET \
--url https://api.donate.gg/api/v2/campaigns/{campaignId}/messagesimport requests
url = "https://api.donate.gg/api/v2/campaigns/{campaignId}/messages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v2/campaigns/{campaignId}/messages', 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://api.donate.gg/api/v2/campaigns/{campaignId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.donate.gg/api/v2/campaigns/{campaignId}/messages"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.donate.gg/api/v2/campaigns/{campaignId}/messages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v2/campaigns/{campaignId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "cmrpkayih000a04ky4kc4pu57",
"status": "settled",
"message": "Kintara Wishing Well",
"donor": {
"chainId": 101,
"address": "ExampLeWa11et1111111111111111111111111111111",
"name": null,
"imageUrl": null,
"url": null
},
"coin": null,
"amountAtomic": "13346508",
"token": {
"chainId": 101,
"address": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"decimals": 9
},
"amountUsdE6": "1000184",
"donatedAt": "2026-07-17T23:21:25.000Z",
"unconfirmedAt": null
}
],
"nextCursor": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "required",
"message": "<string>"
}
]
}{
"code": "UNAUTHENTICATED",
"message": "This API key is not valid."
}{
"code": "NOT_FOUND",
"message": "<string>"
}{
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests. Wait for the time in the Retry-After header."
}Headers
Query Parameters
Was this page helpful?