API Endpoints

Complete reference for all available ImpactAPI endpoints.

Donation Intents

A donation intent represents a commitment by your organization to make a donation. These intents are tracked throughout your billing cycle, and at the end of the cycle, your organization will be charged for the total amount of all donation intents created during that period.

POST/donation_intents
Create a new donation intent

Request Body

intents
array of objectsRequired

An array of donation intents to create.

const response = await fetch("https://impactapi.co/donation_intents", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.IMPACT_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify([{ amount: 1000, campaign_identifier: "trees-for-the-future" }]),
});