Education fund
Thousands of donors already trust us, and we work hard to keep it that way. We listen first, then build a plan around what you actually need.
Overview
Every donation is tax-deductible, and receipts arrive by email instantly. Leave a gift in your will and help future generations. A school kit costs less than a cinema ticket and lasts a whole year.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @pixelera/sdk$ yarn add @pixelera/sdk$ pnpm add @pixelera/sdkConfiguration
You receive photos and updates showing exactly what your donation achieved. Our team has done this many times, so you never have to guess. Create a file named pixelera.config.json in the project root:
{
"project": "pixelera",
"region": "ap-south",
"categories": ["education", "health", "environment"],
"retries": 3,
"timeoutMs": 15000,
"webhooks": { "enabled": true }
}| Option | Type | Default | Description |
|---|---|---|---|
project | string | - | Your project key from the dashboard. |
region | string | "us-east" | Data centre closest to your donors. |
retries | number | 3 | How often a failed call is retried. |
timeoutMs | number | 10000 | Time before a request is cancelled. |
webhooks.enabled | boolean | false | Send events to your endpoint. |
Your first request
We keep things simple, so you can focus on what matters to you.
- Create an API keyOpen the dashboard, choose Settings › API keys and copy a new secret key.
- Store it safelyKeep the key in an environment variable, never in your source code.
- Make the callRun the snippet below; it prints the first page of results.
import { Client } from "@pixelera/sdk";
const client = new Client({ apiKey: process.env.API_KEY });
// list the newest campaigns in one category
const page = await client.campaigns.list({ category: "education", limit: 20 });
for (const item of page.data) {
console.log(item.name, item.price);
}API reference
Every endpoint returns JSON and uses standard HTTP status codes.
/v1/campaignsList campaigns with paging and filters./v1/campaignsCreate a new campaign./v1/campaigns/{id}Update some fields of a campaign./v1/campaigns/{id}Archive a campaign; it can be restored for 30 days.{
"data": [
{ "id": "campaign_4234", "name": "Monthly gift", "price": 278 }
],
"has_more": true
}Troubleshooting
Next steps
Companies can match employee donations and double their impact.