Donors
List all donors for a form (legacy unpaginated table)
Returns every donor for the given hysform via Donor::getDonors(). Pre-dates the paginated showAllDonorsAjax listing — kept for legacy admin UIs and CSV-style exports that need the full set in one shot. Same handler is mounted at /admin/show_all_donors/... (legacy routes/api.php) and /v1/admin/show_all_donors/.... Requires permission: donors_view.
GET
/
admin
/
show_all_donors
/
{client_id}
/
{hysform_id}
/
{trashed}
List all donors for a form (legacy unpaginated table)
curl --request GET \
--url https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}', 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.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 12345,
"client_id": 207,
"hysform_id": 42,
"donorprogram_id": 11,
"household_id": 88,
"type": "individual",
"username": "janedoe",
"email": "jane@example.com",
"organization_name": "Acme Foundation",
"first_name": "Jane",
"last_name": "Doe",
"preferred_contact_method": "email",
"phone": "(555) 123-4567",
"phone_e164": "+15551234567",
"can_receive_sms": true,
"street": "123 Main St",
"address_line2": "Apt 4B",
"city": "Springfield",
"state": "IL",
"zip": "62704",
"country": "United States",
"country_code": "US",
"subdivision_code": "US-IL",
"json_fields": {},
"year_to_date": {},
"has_artifacts": false,
"batch_id": null,
"created_at": "2025-03-15T19:42:00Z",
"updated_at": "2026-01-02T08:11:00Z",
"deleted_at": null
}
],
"status": "success"
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Error: Donor Form Does not Exist.",
"status": "error"
}Authorizations
bearerAuthapiKeyAuth
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Owning client (multi-tenant scope). Must match the donor form's client.
HysForm of type=donor whose donors should be listed.
When truthy, includes soft-deleted donors. Defaults to false.
⌘I
List all donors for a form (legacy unpaginated table)
curl --request GET \
--url https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}', 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.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/show_all_donors/{client_id}/{hysform_id}/{trashed}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 12345,
"client_id": 207,
"hysform_id": 42,
"donorprogram_id": 11,
"household_id": 88,
"type": "individual",
"username": "janedoe",
"email": "jane@example.com",
"organization_name": "Acme Foundation",
"first_name": "Jane",
"last_name": "Doe",
"preferred_contact_method": "email",
"phone": "(555) 123-4567",
"phone_e164": "+15551234567",
"can_receive_sms": true,
"street": "123 Main St",
"address_line2": "Apt 4B",
"city": "Springfield",
"state": "IL",
"zip": "62704",
"country": "United States",
"country_code": "US",
"subdivision_code": "US-IL",
"json_fields": {},
"year_to_date": {},
"has_artifacts": false,
"batch_id": null,
"created_at": "2025-03-15T19:42:00Z",
"updated_at": "2026-01-02T08:11:00Z",
"deleted_at": null
}
],
"status": "success"
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Error: Donor Form Does not Exist.",
"status": "error"
}