Authorization: Bearer <key>. Things to know before you call:
- This plugin always sends a key. Raisely itself answers some public reads without one, but the plugin raises
AuthMissingErrorwhen no key is set, so connect a key first.private: truereturns the private fields the key can see. - Two routes are not on the plain REST shape.
/donationsPOST takes its record underdata, and/profilesrequires acampaignquery parameter. Both are enforced by the schemas here rather than left to a 422. - Offsets, not pages. Every collection answers
{ data, pagination }withtotal,offsetandlimit, and the plugin returnsnext_offsetfor the next call. Do not addlimitto the offset: the response already reports both. - A sort without an order is ignored. Raisely applies
sortonly whenorderis also present, so the plugin sends the pair together or neither. - Donation types.
typetakesONLINEorOFFLINE, but Raisely stores a donation recorded throughdonations.createasOFFLINEeither way;modetakesLIVEorTEST. An unknown value is rejected before the request is sent. - Amounts are integers in the smallest currency unit. A
$25.00donation arrives as2500, anddonations.createexpects the same. - Errors are RFC 7807 problem documents.
detailis the summary,errorsnames each field at fault, andcodeis the machine-readable reason.instanceis the id Raisely support asks for; all four are exposed onRaiselyAPIError. 410 Goneis not a 404. A soft-deleted campaign or donation answers410; both are reported as not-found, since no retry recovers either.- Retries. A 429 is retried three times and honours the documented
Retry-After. A5xxis retried only for a call the plugin declared read-only, never for a donation.
- 9 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
No setup required yet. When you make your first request as a tenant, Corsair prompts for the API key.More: API Key
4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List active campaignsWhat’s next
API reference
Every
raisely.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.