Donors
Get a donor relationship schedule and history
Combines accessible upcoming tasks, meetings, confirmed event attendance and active/requested trips. Dates use the resolved organization/admin timezone; pending trip requests remain in upcoming but do not become next_scheduled_moment. Activity includes event/trip/invitation state history. Task, calendar, event and trip permissions/privacy filter their own projections.
GET
/
donors
/
{donorId}
/
relationship-context
Get a donor relationship schedule and history
curl --request GET \
--url https://api.gratona.com/v1/donors/{donorId}/relationship-context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/donors/{donorId}/relationship-context"
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/donors/{donorId}/relationship-context', 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/donors/{donorId}/relationship-context",
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/donors/{donorId}/relationship-context"
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/donors/{donorId}/relationship-context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/donors/{donorId}/relationship-context")
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": {
"timezone": "Africa/Kampala",
"next_scheduled_moment": {
"type": "task",
"id": 42,
"owning_record_id": 42,
"title": "Attending Annual Gala",
"status_label": "Confirmed attendance",
"starts_at": "2026-10-20T12:00:00Z",
"ends_at": "2026-10-20T12:00:00Z",
"due_date": "2026-11-01",
"url": "/app/events/42",
"related_task_context": [
{
"related_type": "donor",
"related_id": 42,
"label": "Annual Gala",
"url": "/app/events/42"
}
]
},
"upcoming": [
{
"type": "task",
"id": 42,
"owning_record_id": 42,
"title": "Attending Annual Gala",
"status_label": "Confirmed attendance",
"starts_at": "2026-10-20T12:00:00Z",
"ends_at": "2026-10-20T12:00:00Z",
"due_date": "2026-11-01",
"url": "/app/events/42",
"related_task_context": [
{
"related_type": "donor",
"related_id": 42,
"label": "Annual Gala",
"url": "/app/events/42"
}
]
}
],
"activity": [
{
"type": "task",
"id": 42,
"owning_record_id": 42,
"title": "Attending Annual Gala",
"status_label": "Confirmed attendance",
"starts_at": "2026-10-20T12:00:00Z",
"ends_at": "2026-10-20T12:00:00Z",
"due_date": "2026-11-01",
"url": "/app/events/42",
"related_task_context": [
{
"related_type": "donor",
"related_id": 42,
"label": "Annual Gala",
"url": "/app/events/42"
}
]
}
]
}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}Authorizations
bearerAuthapiKeyAuth
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Record ID in the authenticated organization.
Example:
42
Response
Get a donor relationship schedule and history completed.
Show child attributes
Show child attributes
⌘I
Get a donor relationship schedule and history
curl --request GET \
--url https://api.gratona.com/v1/donors/{donorId}/relationship-context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/donors/{donorId}/relationship-context"
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/donors/{donorId}/relationship-context', 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/donors/{donorId}/relationship-context",
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/donors/{donorId}/relationship-context"
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/donors/{donorId}/relationship-context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/donors/{donorId}/relationship-context")
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": {
"timezone": "Africa/Kampala",
"next_scheduled_moment": {
"type": "task",
"id": 42,
"owning_record_id": 42,
"title": "Attending Annual Gala",
"status_label": "Confirmed attendance",
"starts_at": "2026-10-20T12:00:00Z",
"ends_at": "2026-10-20T12:00:00Z",
"due_date": "2026-11-01",
"url": "/app/events/42",
"related_task_context": [
{
"related_type": "donor",
"related_id": 42,
"label": "Annual Gala",
"url": "/app/events/42"
}
]
},
"upcoming": [
{
"type": "task",
"id": 42,
"owning_record_id": 42,
"title": "Attending Annual Gala",
"status_label": "Confirmed attendance",
"starts_at": "2026-10-20T12:00:00Z",
"ends_at": "2026-10-20T12:00:00Z",
"due_date": "2026-11-01",
"url": "/app/events/42",
"related_task_context": [
{
"related_type": "donor",
"related_id": 42,
"label": "Annual Gala",
"url": "/app/events/42"
}
]
}
],
"activity": [
{
"type": "task",
"id": 42,
"owning_record_id": 42,
"title": "Attending Annual Gala",
"status_label": "Confirmed attendance",
"starts_at": "2026-10-20T12:00:00Z",
"ends_at": "2026-10-20T12:00:00Z",
"due_date": "2026-11-01",
"url": "/app/events/42",
"related_task_context": [
{
"related_type": "donor",
"related_id": 42,
"label": "Annual Gala",
"url": "/app/events/42"
}
]
}
]
}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}