Read handwritten-card outcome attribution
Defaults to the last 90 days and governance outcome window. Refreshes stored gift associations on a cache miss; refresh bypasses the configured short cache. Reports observed subsequent giving and a matched-control comparison, excluding failed/refunded/nonpositive gifts. Requires the configured Handwrytten feature (normally handwrytten_mailings). Requires permission: one of mailings_view, mailings_generate, mailings_manage, manage_email, reports_view, reports_manage.
curl --request GET \
--url https://api.gratona.com/v1/admin/handwrytten/attribution \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/handwrytten/attribution"
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/handwrytten/attribution', 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/handwrytten/attribution",
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/handwrytten/attribution"
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/handwrytten/attribution")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/handwrytten/attribution")
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": {
"window": {
"date_from": "2026-10-20",
"date_to": "2026-10-20",
"outcome_window_days": 100
},
"methodology": {
"comparison": "Example",
"comparison_label": "Example",
"control_cohort": "Example",
"roi": "Example"
},
"summary": {
"cards_sent": 100,
"treated_donor_count": 100,
"repeat_donor_count": 100,
"attributed_gift_count": 100,
"attributed_amount_cents": 100,
"estimated_spend_cents": 100,
"comparison_donor_count": 100,
"repeat_rate": 0.25,
"comparison_repeat_rate": 0.25,
"lift_points": 0.25,
"attributed_amount": 0.25,
"estimated_spend": 0.25,
"roi": 0.25
},
"series": [
{
"month": "2026-10",
"cards_sent": 100,
"attributed_amount": 100,
"attributed_gifts": 100
}
],
"recent_attributions": [
{
"id": 42,
"client_id": 42,
"handwrytten_order_id": 42,
"donation_id": 42,
"donor_id": 42,
"attribution_type": "next_gift",
"window_start": "2026-10-20T00:00:00Z",
"window_end": "2026-10-20T00:00:00Z",
"amount": "25.00",
"currency": "USD",
"evidence_json": {
"submitted_at": "2026-10-20T12:00:00Z",
"donation_created_at": "2026-10-20T12:00:00Z",
"window_days": 100
},
"created_at": "2026-10-20T12:00:00Z",
"updated_at": "2026-10-20T12:00:00Z"
}
]
}
}{
"message": "Unauthorized",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}Authorizations
Passport bearer token authentication for legacy admin sessions.
Query Parameters
Date from. Validation: nullable, date.
Date to. Validation: nullable, date.
Window days. Validation: nullable, integer, min:1, max:365.
1 <= x <= 365Bypass the short-lived report cache.
Response
Operation result.
Observed subsequent gifts compared with up to 5,000 recent successful non-recipient donors. Association and estimated spend, not proof that a card caused a gift.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.gratona.com/v1/admin/handwrytten/attribution \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/handwrytten/attribution"
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/handwrytten/attribution', 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/handwrytten/attribution",
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/handwrytten/attribution"
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/handwrytten/attribution")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/handwrytten/attribution")
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": {
"window": {
"date_from": "2026-10-20",
"date_to": "2026-10-20",
"outcome_window_days": 100
},
"methodology": {
"comparison": "Example",
"comparison_label": "Example",
"control_cohort": "Example",
"roi": "Example"
},
"summary": {
"cards_sent": 100,
"treated_donor_count": 100,
"repeat_donor_count": 100,
"attributed_gift_count": 100,
"attributed_amount_cents": 100,
"estimated_spend_cents": 100,
"comparison_donor_count": 100,
"repeat_rate": 0.25,
"comparison_repeat_rate": 0.25,
"lift_points": 0.25,
"attributed_amount": 0.25,
"estimated_spend": 0.25,
"roi": 0.25
},
"series": [
{
"month": "2026-10",
"cards_sent": 100,
"attributed_amount": 100,
"attributed_gifts": 100
}
],
"recent_attributions": [
{
"id": 42,
"client_id": 42,
"handwrytten_order_id": 42,
"donation_id": 42,
"donor_id": 42,
"attribution_type": "next_gift",
"window_start": "2026-10-20T00:00:00Z",
"window_end": "2026-10-20T00:00:00Z",
"amount": "25.00",
"currency": "USD",
"evidence_json": {
"submitted_at": "2026-10-20T12:00:00Z",
"donation_created_at": "2026-10-20T12:00:00Z",
"window_days": 100
},
"created_at": "2026-10-20T12:00:00Z",
"updated_at": "2026-10-20T12:00:00Z"
}
]
}
}{
"message": "Unauthorized",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}