Create fund
curl --request POST \
--url https://api.endaoment.org/v1/funds/partner \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Lovelace Family DAF",
"partnerAccountIdentifier": "a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53",
"description": "A family DAF managed through a partner integration",
"type": "Private",
"partnerUserIdentifier": "c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f"
}
'import requests
url = "https://api.endaoment.org/v1/funds/partner"
payload = {
"name": "Lovelace Family DAF",
"partnerAccountIdentifier": "a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53",
"description": "A family DAF managed through a partner integration",
"type": "Private",
"partnerUserIdentifier": "c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Lovelace Family DAF',
partnerAccountIdentifier: 'a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53',
description: 'A family DAF managed through a partner integration',
type: 'Private',
partnerUserIdentifier: 'c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f'
})
};
fetch('https://api.endaoment.org/v1/funds/partner', 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.endaoment.org/v1/funds/partner",
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([
'name' => 'Lovelace Family DAF',
'partnerAccountIdentifier' => 'a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53',
'description' => 'A family DAF managed through a partner integration',
'type' => 'Private',
'partnerUserIdentifier' => 'c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.endaoment.org/v1/funds/partner"
payload := strings.NewReader("{\n \"name\": \"Lovelace Family DAF\",\n \"partnerAccountIdentifier\": \"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53\",\n \"description\": \"A family DAF managed through a partner integration\",\n \"type\": \"Private\",\n \"partnerUserIdentifier\": \"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.endaoment.org/v1/funds/partner")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Lovelace Family DAF\",\n \"partnerAccountIdentifier\": \"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53\",\n \"description\": \"A family DAF managed through a partner integration\",\n \"type\": \"Private\",\n \"partnerUserIdentifier\": \"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.endaoment.org/v1/funds/partner")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Lovelace Family DAF\",\n \"partnerAccountIdentifier\": \"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53\",\n \"description\": \"A family DAF managed through a partner integration\",\n \"type\": \"Private\",\n \"partnerUserIdentifier\": \"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f\"\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Doe Family Foundation",
"type": "Private",
"manager": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"chainId": 1,
"advisor": {
"firstName": "John",
"lastName": "Doe"
},
"featuredIndex": 1,
"usdcBalance": "20500000",
"availableBalance": "21000000",
"description": "A family foundation dedicated to supporting educational initiatives",
"createdAtUtc": "2024-01-01T00:00:00Z",
"updatedAtUtc": "2024-03-14T12:00:00Z",
"lifetimeDonationsUsdc": "1000000000",
"inboundFeeBps": 25,
"outboundFeeBps": 50,
"grantsGiven": 10,
"inTransitBuyUsdcAmount": "5000000",
"inTransitSellUsdcAmount": "3000000",
"investedUsdc": "50000000",
"totalGrantedUsdc": "25000000",
"processingTransfersTotalUsdc": "1000000",
"illiquidBalance": "10000000",
"poolDetails": {
"eligibleEntities": "Organizations",
"algorithmType": "QuadraticFunding",
"distributionSchedule": "Quarterly",
"distributionPercentage": 0.25,
"eligibleVotes": "GrantsAndDonations",
"voteWeight": "UsdcValue"
},
"expectedDeploymentInfo": {
"expectedManagerAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"expectedSalt": "0x0000000000000000000000000000000000000000000000000000000000000123",
"expectedComputedAddress": "0x1234567890123456789012345678901234567890",
"expectedChainId": 1
},
"deploymentTransactionHash": "0xf89f7da1e5d79dcb1b8863d0926fe41204785b443ce2d1dca4bf50070c492567",
"contractAddress": "0x1234567890123456789012345678901234567890",
"lastBalanceSyncUtc": "2024-03-14T12:00:00Z",
"shortDescription": "Supporting education",
"vanityUrl": "doe-family-foundation",
"paypalId": "123e4567-e89b-12d3-a456-426614174000",
"logo": "https://example.com/logo.png",
"category": "Education",
"customFeeDetail": "Special Community Fund Agreement",
"v2ContractAddress": "<string>"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Doe Family Foundation",
"type": "Private",
"manager": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"chainId": 1,
"advisor": {
"firstName": "John",
"lastName": "Doe"
},
"featuredIndex": 1,
"usdcBalance": "20500000",
"availableBalance": "21000000",
"description": "A family foundation dedicated to supporting educational initiatives",
"createdAtUtc": "2024-01-01T00:00:00Z",
"updatedAtUtc": "2024-03-14T12:00:00Z",
"lifetimeDonationsUsdc": "1000000000",
"inboundFeeBps": 25,
"outboundFeeBps": 50,
"grantsGiven": 10,
"inTransitBuyUsdcAmount": "5000000",
"inTransitSellUsdcAmount": "3000000",
"investedUsdc": "50000000",
"totalGrantedUsdc": "25000000",
"processingTransfersTotalUsdc": "1000000",
"illiquidBalance": "10000000",
"poolDetails": {
"eligibleEntities": "Organizations",
"algorithmType": "QuadraticFunding",
"distributionSchedule": "Quarterly",
"distributionPercentage": 0.25,
"eligibleVotes": "GrantsAndDonations",
"voteWeight": "UsdcValue"
},
"expectedDeploymentInfo": {
"expectedManagerAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"expectedSalt": "0x0000000000000000000000000000000000000000000000000000000000000123",
"expectedComputedAddress": "0x1234567890123456789012345678901234567890",
"expectedChainId": 1
},
"deploymentTransactionHash": "0xf89f7da1e5d79dcb1b8863d0926fe41204785b443ce2d1dca4bf50070c492567",
"contractAddress": "0x1234567890123456789012345678901234567890",
"lastBalanceSyncUtc": "2024-03-14T12:00:00Z",
"shortDescription": "Supporting education",
"vanityUrl": "doe-family-foundation",
"paypalId": "123e4567-e89b-12d3-a456-426614174000",
"logo": "https://example.com/logo.png",
"category": "Education",
"customFeeDetail": "Special Community Fund Agreement",
"v2ContractAddress": "<string>"
}Partner Endpoints
Create fund
Creates a partner-managed DAF using the acting user identity and partnerAccountIdentifier idempotency.
The acting user is resolved in one of two ways:
- Tech-platform impersonation: a partner API key plus the
x-endaoment-user-iduser header (or partner OIDC bearer). - API-key-only body resolution: a partner API key plus a body
partnerUserIdentifierand no impersonation header, available when partner inflow routes are enabled. The identifier selects a partner-owned, previously provisioned user.
When both a header/OIDC user and a body partnerUserIdentifier are supplied they must resolve to the same user;
a contradiction is rejected with 400 and an identifier that does not match a user for this partner is 404.
POST
/
v1
/
funds
/
partner
Create fund
curl --request POST \
--url https://api.endaoment.org/v1/funds/partner \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Lovelace Family DAF",
"partnerAccountIdentifier": "a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53",
"description": "A family DAF managed through a partner integration",
"type": "Private",
"partnerUserIdentifier": "c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f"
}
'import requests
url = "https://api.endaoment.org/v1/funds/partner"
payload = {
"name": "Lovelace Family DAF",
"partnerAccountIdentifier": "a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53",
"description": "A family DAF managed through a partner integration",
"type": "Private",
"partnerUserIdentifier": "c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Lovelace Family DAF',
partnerAccountIdentifier: 'a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53',
description: 'A family DAF managed through a partner integration',
type: 'Private',
partnerUserIdentifier: 'c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f'
})
};
fetch('https://api.endaoment.org/v1/funds/partner', 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.endaoment.org/v1/funds/partner",
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([
'name' => 'Lovelace Family DAF',
'partnerAccountIdentifier' => 'a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53',
'description' => 'A family DAF managed through a partner integration',
'type' => 'Private',
'partnerUserIdentifier' => 'c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.endaoment.org/v1/funds/partner"
payload := strings.NewReader("{\n \"name\": \"Lovelace Family DAF\",\n \"partnerAccountIdentifier\": \"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53\",\n \"description\": \"A family DAF managed through a partner integration\",\n \"type\": \"Private\",\n \"partnerUserIdentifier\": \"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.endaoment.org/v1/funds/partner")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Lovelace Family DAF\",\n \"partnerAccountIdentifier\": \"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53\",\n \"description\": \"A family DAF managed through a partner integration\",\n \"type\": \"Private\",\n \"partnerUserIdentifier\": \"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.endaoment.org/v1/funds/partner")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Lovelace Family DAF\",\n \"partnerAccountIdentifier\": \"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53\",\n \"description\": \"A family DAF managed through a partner integration\",\n \"type\": \"Private\",\n \"partnerUserIdentifier\": \"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f\"\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Doe Family Foundation",
"type": "Private",
"manager": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"chainId": 1,
"advisor": {
"firstName": "John",
"lastName": "Doe"
},
"featuredIndex": 1,
"usdcBalance": "20500000",
"availableBalance": "21000000",
"description": "A family foundation dedicated to supporting educational initiatives",
"createdAtUtc": "2024-01-01T00:00:00Z",
"updatedAtUtc": "2024-03-14T12:00:00Z",
"lifetimeDonationsUsdc": "1000000000",
"inboundFeeBps": 25,
"outboundFeeBps": 50,
"grantsGiven": 10,
"inTransitBuyUsdcAmount": "5000000",
"inTransitSellUsdcAmount": "3000000",
"investedUsdc": "50000000",
"totalGrantedUsdc": "25000000",
"processingTransfersTotalUsdc": "1000000",
"illiquidBalance": "10000000",
"poolDetails": {
"eligibleEntities": "Organizations",
"algorithmType": "QuadraticFunding",
"distributionSchedule": "Quarterly",
"distributionPercentage": 0.25,
"eligibleVotes": "GrantsAndDonations",
"voteWeight": "UsdcValue"
},
"expectedDeploymentInfo": {
"expectedManagerAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"expectedSalt": "0x0000000000000000000000000000000000000000000000000000000000000123",
"expectedComputedAddress": "0x1234567890123456789012345678901234567890",
"expectedChainId": 1
},
"deploymentTransactionHash": "0xf89f7da1e5d79dcb1b8863d0926fe41204785b443ce2d1dca4bf50070c492567",
"contractAddress": "0x1234567890123456789012345678901234567890",
"lastBalanceSyncUtc": "2024-03-14T12:00:00Z",
"shortDescription": "Supporting education",
"vanityUrl": "doe-family-foundation",
"paypalId": "123e4567-e89b-12d3-a456-426614174000",
"logo": "https://example.com/logo.png",
"category": "Education",
"customFeeDetail": "Special Community Fund Agreement",
"v2ContractAddress": "<string>"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Doe Family Foundation",
"type": "Private",
"manager": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"chainId": 1,
"advisor": {
"firstName": "John",
"lastName": "Doe"
},
"featuredIndex": 1,
"usdcBalance": "20500000",
"availableBalance": "21000000",
"description": "A family foundation dedicated to supporting educational initiatives",
"createdAtUtc": "2024-01-01T00:00:00Z",
"updatedAtUtc": "2024-03-14T12:00:00Z",
"lifetimeDonationsUsdc": "1000000000",
"inboundFeeBps": 25,
"outboundFeeBps": 50,
"grantsGiven": 10,
"inTransitBuyUsdcAmount": "5000000",
"inTransitSellUsdcAmount": "3000000",
"investedUsdc": "50000000",
"totalGrantedUsdc": "25000000",
"processingTransfersTotalUsdc": "1000000",
"illiquidBalance": "10000000",
"poolDetails": {
"eligibleEntities": "Organizations",
"algorithmType": "QuadraticFunding",
"distributionSchedule": "Quarterly",
"distributionPercentage": 0.25,
"eligibleVotes": "GrantsAndDonations",
"voteWeight": "UsdcValue"
},
"expectedDeploymentInfo": {
"expectedManagerAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"expectedSalt": "0x0000000000000000000000000000000000000000000000000000000000000123",
"expectedComputedAddress": "0x1234567890123456789012345678901234567890",
"expectedChainId": 1
},
"deploymentTransactionHash": "0xf89f7da1e5d79dcb1b8863d0926fe41204785b443ce2d1dca4bf50070c492567",
"contractAddress": "0x1234567890123456789012345678901234567890",
"lastBalanceSyncUtc": "2024-03-14T12:00:00Z",
"shortDescription": "Supporting education",
"vanityUrl": "doe-family-foundation",
"paypalId": "123e4567-e89b-12d3-a456-426614174000",
"logo": "https://example.com/logo.png",
"category": "Education",
"customFeeDetail": "Special Community Fund Agreement",
"v2ContractAddress": "<string>"
}Headers
Body
application/json
Opaque partner-generated identifier for this fund, used as the partner-scoped idempotency key. Must be 8-64 printable ASCII characters; leading/trailing whitespace is trimmed before validation.
Required string length:
8 - 64Pattern:
^[\x20-\x7E]{8,64}$Example:
"a7e21d94-5c3f-4b8a-9f60-2e4d8c1b7a53"
Response
An existing partner-managed fund was returned idempotently.
Was this page helpful?