Preview or queue bulk donor profile generation
Requires the donor_intelligence feature and route permissions. Every client_id route is restricted to the authenticated organization, including platform administrators using workspace routes. Stored profiles are filtered against current email-privacy state; obsolete privacy snapshots are concealed. Legacy wealth-insights URLs are equivalent aliases. Explicit positive donor_ids are deduplicated; when empty, filters select donor IDs. With no effective selection, defaults to organization donors ordered by ID. The configured bulk limit (default100) truncates selection and is reported. dry_run estimates eligibility/capacity without queueing; otherwise queues eligible runs and reports skipped capacity/active donors. Both modes return202.
curl --request POST \
--url https://api.gratona.com/v1/admin/wealth-insights/generations/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"donor_ids": [
123
],
"filters": {
"search": "<string>",
"min_target_ask": 1
},
"force_refresh": true,
"dry_run": true
}
'import requests
url = "https://api.gratona.com/v1/admin/wealth-insights/generations/bulk"
payload = {
"donor_ids": [123],
"filters": {
"search": "<string>",
"min_target_ask": 1
},
"force_refresh": True,
"dry_run": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
donor_ids: [123],
filters: {search: '<string>', min_target_ask: 1},
force_refresh: true,
dry_run: true
})
};
fetch('https://api.gratona.com/v1/admin/wealth-insights/generations/bulk', 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/wealth-insights/generations/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'donor_ids' => [
123
],
'filters' => [
'search' => '<string>',
'min_target_ask' => 1
],
'force_refresh' => true,
'dry_run' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/admin/wealth-insights/generations/bulk"
payload := strings.NewReader("{\n \"donor_ids\": [\n 123\n ],\n \"filters\": {\n \"search\": \"<string>\",\n \"min_target_ask\": 1\n },\n \"force_refresh\": true,\n \"dry_run\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gratona.com/v1/admin/wealth-insights/generations/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"donor_ids\": [\n 123\n ],\n \"filters\": {\n \"search\": \"<string>\",\n \"min_target_ask\": 1\n },\n \"force_refresh\": true,\n \"dry_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/wealth-insights/generations/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"donor_ids\": [\n 123\n ],\n \"filters\": {\n \"search\": \"<string>\",\n \"min_target_ask\": 1\n },\n \"force_refresh\": true,\n \"dry_run\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"bulk_generation_id": "<string>",
"client_id": 123,
"status": "<string>",
"total": 123,
"selected_total": 123,
"limit": 123,
"truncated": true,
"started_at": "2023-11-07T05:31:56Z",
"batch_id": "<string>",
"queued": 123,
"running": 123,
"ready": 123,
"insufficient_data": 123,
"skipped": 123,
"failed": 123,
"donors": [
{
"donor_id": 123,
"generation_id": "<string>",
"status": "<string>",
"message": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
}{
"message": "Unauthorized",
"status": "error"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}Authorizations
Passport bearer token authentication for legacy admin sessions.
Body
Request fields accepted by this operation. Omitted optional properties retain the behavior described above.
curl --request POST \
--url https://api.gratona.com/v1/admin/wealth-insights/generations/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"donor_ids": [
123
],
"filters": {
"search": "<string>",
"min_target_ask": 1
},
"force_refresh": true,
"dry_run": true
}
'import requests
url = "https://api.gratona.com/v1/admin/wealth-insights/generations/bulk"
payload = {
"donor_ids": [123],
"filters": {
"search": "<string>",
"min_target_ask": 1
},
"force_refresh": True,
"dry_run": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
donor_ids: [123],
filters: {search: '<string>', min_target_ask: 1},
force_refresh: true,
dry_run: true
})
};
fetch('https://api.gratona.com/v1/admin/wealth-insights/generations/bulk', 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/wealth-insights/generations/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'donor_ids' => [
123
],
'filters' => [
'search' => '<string>',
'min_target_ask' => 1
],
'force_refresh' => true,
'dry_run' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/admin/wealth-insights/generations/bulk"
payload := strings.NewReader("{\n \"donor_ids\": [\n 123\n ],\n \"filters\": {\n \"search\": \"<string>\",\n \"min_target_ask\": 1\n },\n \"force_refresh\": true,\n \"dry_run\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gratona.com/v1/admin/wealth-insights/generations/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"donor_ids\": [\n 123\n ],\n \"filters\": {\n \"search\": \"<string>\",\n \"min_target_ask\": 1\n },\n \"force_refresh\": true,\n \"dry_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/wealth-insights/generations/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"donor_ids\": [\n 123\n ],\n \"filters\": {\n \"search\": \"<string>\",\n \"min_target_ask\": 1\n },\n \"force_refresh\": true,\n \"dry_run\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"bulk_generation_id": "<string>",
"client_id": 123,
"status": "<string>",
"total": 123,
"selected_total": 123,
"limit": 123,
"truncated": true,
"started_at": "2023-11-07T05:31:56Z",
"batch_id": "<string>",
"queued": 123,
"running": 123,
"ready": 123,
"insufficient_data": 123,
"skipped": 123,
"failed": 123,
"donors": [
{
"donor_id": 123,
"generation_id": "<string>",
"status": "<string>",
"message": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
}{
"message": "Unauthorized",
"status": "error"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"status": "error",
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}