Organization Admin (/org-admin)
The /org-admin/:slug/* surface is how an organization's own team runs it: members, settings and branding, DBAs and locations, verification documents, Stripe payouts, updates, and read-only views of fundraisers, donations, donors and followers. It is the API behind fundlyhub.org/org-admin/<slug>.
Every organization is a non-profit now. A non-profit's own team settings under the same prefix (the page, links and programs, the team with its invites, join requests and ownership transfer, and verification) are described in the Non-profits API.
It is the organization's own surface. Verification, suspension and other lifecycle decisions are made by FundlyHub and are not part of this API.
| Reference section | Operations | About |
|---|---|---|
| Organization Admin | 48 | The org-scoped admin panel at `/org-admin/{slug}/*`. Every operation needs a bearer session, resolves `{slug}` to an organization (an unknown or malformed slug answers `404 Organization not found`, never `403`), and then checks an **org-scoped permission** held through the caller's `org_owner`, `org_admin` or `org_viewer` role on that organization. A caller without the permission gets `403` with `message: "Requires permission: <name>"`. |
How access works
Every route needs a signed-in caller and an org-scoped permission. The API:
- Resolves
:slugto an organization. A malformed or unknown slug is404 Organization not found— never403, so the endpoint does not confirm that a slug exists. - Checks the permission in the organization scope: your role assignments on that organization.
A missing permission is 403 with message: "Requires permission: org.…". To find out up front what a user may do, call GET /me/capabilities?scopeType=organization&scopeId=<org-uuid>.
Organization roles
| Permission | org_viewer | org_admin | org_owner |
|---|---|---|---|
org.read, org.read_donations, org.read_donors, org.read_payouts | ✓ | ✓ | ✓ |
org.update_settings, org.manage_members, org.manage_dbas, org.manage_locations, org.upload_documents, org.export_csv | ✓ | ✓ | |
org.manage_payouts (connect Stripe) | ✓ | ||
org.manage_children (child companies, now retired) | ✓ |
Whoever adds a non-profit becomes its org_owner. A non-profit has one owner, and ownership moves only by transfer.
Endpoints
Overview and reads
| Endpoint | Permission | Notes |
|---|---|---|
GET /org-admin/:slug/overview | org.read | KPIs. For a conglomerate the totals roll up its child companies. |
GET /org-admin/:slug/fundraisers | org.read | ?status=, ?limit=, ?offset=. |
GET /org-admin/:slug/donations | org.read_donations | ?status=, ?fundraiser_id=, paging. |
GET /org-admin/:slug/donors | org.read_donors | Legacy donor-only directory; distinct gift identities with totals by currency. |
GET /org-admin/:slug/users | org.read_donors | Donors and public followers together; following filter: yes, no, na. |
GET /org-admin/:slug/users/followers/:userId | org.read_donors | A follower of this organization. Follower-only email is never disclosed. |
GET /org-admin/:slug/donors/:donorId | org.read_donors | An organization-owned paid donation id anchors the donor detail and history. |
GET /org-admin/:slug/analytics | org.read_donations | Net raised totals by currency, daily trends, city aggregates, fundraiser comparison and scoped GA4 audience activity. |
Each donor row has an opaque donor_key: user:<profile id> for a signed-in donor, guest:<24 hex characters> for a guest, or anonymous for the single row that collects every anonymous gift. It is stable across pages, so use it to tell rows apart; it carries no contact details.
Fundraisers, donations and supporter lists accept q, dateFrom, dateTo, amount filters in addition to their existing filters and pagination. Donation and supporter lists also accept a fundraiser title filter. Dates use inclusive ISO timestamps; amount is an exact major-unit value with at most two decimal places. On Fundraisers, dates select campaign creation and amount selects the campaign raised figure. On donation and supporter lists they select gifts. The web search converts a single date such as 10/19/2026 into that day's range. Gift filters match the donor's gifts; directory totals continue to include the donor's full history with the organization.
Users combines identified donors with followers without duplicating an account. Guest and anonymous identities remain separate. Their following status is null; registered accounts have a boolean. Follower-only records have zero donations, no donation date, and no registered donor’s gift-provided email. Anonymous keys are opaque public aliases, with no underlying account id or private profile contact fields.
Donation details and receipts
| Endpoint | Permission | Notes |
|---|---|---|
GET /org-admin/:slug/donations/:id | org.read_donations | Donation, approximate donor city, display avatar or anonymous alias, receipt destination and email delivery history. |
GET /org-admin/:slug/donations/:id/receipt | org.read_donations | Saved receipt fields in integer cents; anonymous greetings stay masked. |
GET /org-admin/:slug/donations/:id/receipt-emails/:emailId | org.read_donations | A receipt email tied to this donation. The inspection view removes account tokens and unsubscribe capabilities. |
POST /org-admin/:slug/donations/:id/receipt/email | org.update_settings | Send to the recorded email or an explicitly reviewed recipient_email. Rate-limited and blocked during impersonation; recipient is audit-logged. |
The donation must belong to this organization. Unpaid donations cannot receive receipts; nonprofit receipts with unresolved recovery or adjustment require review before another copy is sent. A queued email is shown as pending until its delivery state changes.
Receipt previews also include the same optional receipt_context as the donor receipt: campaign/project or nonprofit/church general fund, including pending reservation identity. The context and recipient name are navigation/display metadata, not a charitable acknowledgment; only the issued paid-gift snapshot supplies that. Anonymous-donor masking and receipt-capability withholding remain in force for organization views.
Members
| Endpoint | Permission | Body |
|---|---|---|
GET /org-admin/:slug/members | org.manage_members | — |
GET /org-admin/:slug/users/search?q= | org.manage_members | Confirm the account behind a complete email address before adding it. |
POST /org-admin/:slug/members | org.manage_members | { email, role, org_role_title_id?, custom_role_title? } |
PATCH /org-admin/:slug/members/:userId | org.manage_members | { role?, org_role_title_id?, custom_role_title? }, or a non-profit team body { role?, title?, show_on_page? } |
DELETE /org-admin/:slug/members/:userId | org.manage_members | — |
- Only an approved or verified organization can look up or add members. Otherwise both
users/searchandPOST …/membersanswer403withcode: "ORG_NOT_APPROVED". users/searchtakes a complete email address inq, matched case-insensitively against account login emails. It answers{ "results": [ … ] }with at most one entry,{ id, type: "user", name, avatar, masked_email }, wheremasked_emaillooks likes***@example.org. Anything that is not a full address returns an empty list; this is not a directory search.- Lookups and adds share a limit of 30 requests per minute per user; over it is
429. - The person must already have a FundlyHub account: an unknown email is
404 "No FundlyHub user with that email. Ask them to sign up first."There is no email invitation for people without an account. An existing member is409. - A new member's
roleisorg_adminororg_viewer. A non-profit has one owner:PATCHwithrole: org_owneranswers422withcode: "transfer_ownership", and ownership moves only withPOST /org-admin/:slug/transfer-ownership, from the owner to an admin. - Roles rank
org_owner>org_admin>org_viewer. Only an owner can change or remove another owner. Nobody can change or remove a member whose role is equal to or above their own, or grant a role above their own. Each of these is403. Stepping down or leaving yourself is always allowed. - The only owner cannot be demoted or removed (
400;422last_ownerwith a non-profit team body) — transfer ownership first. - A non-profit's team has five roles (owner, admin, fundraiser, viewer, member), a title and an "On page" switch. A
PATCHbody withtitleorshow_on_page, or with one of those roles, is handled as a non-profit team change and answers the member without adatawrapper. Invites, join requests and the transfer are in the Non-profits API. custom_role_title(up to 100 characters) ororg_role_title_idis the public position shown on the team list;GET /org-role-titleslists the catalogue.
Settings, branding and updates
| Endpoint | Permission | Notes |
|---|---|---|
PATCH /org-admin/:slug/settings | org.update_settings | legal_name, website, description, country, logo, banner_image, mission, contact_email, contact_email_public, founded_year, social_links. Fields you omit are left alone. |
POST / DELETE /org-admin/:slug/avatar | org.update_settings | Organization logo (base64 JSON, like the user avatar). |
POST / DELETE /org-admin/:slug/banner | org.update_settings | Banner image. |
POST /org-admin/:slug/updates | org.update_settings | { title, body, cover_image? } — a post on the public profile's "Latest news". |
PATCH / DELETE /org-admin/:slug/updates/:updateId | org.update_settings | Edit or delete a post. |
The public profile is read through /organizations/*, a different surface from these writes. FundlyHub's web client expires its cached /organizations/* reads whenever an /org-admin/* write succeeds; a client of your own that caches the public profile should do the same, or a saved change keeps showing the old copy until its cache expires.
DBAs and locations
| Endpoint | Permission | Body |
|---|---|---|
GET /org-admin/:slug/dbas | org.read | — |
POST /org-admin/:slug/dbas · PATCH …/:dbaId · DELETE …/:dbaId | org.manage_dbas | { dba_name, is_default? } |
GET /org-admin/:slug/locations | org.read | — |
POST /org-admin/:slug/locations · PATCH …/:locationId · DELETE …/:locationId | org.manage_locations | { label?, address, is_primary?, is_publicly_visible? } |
The default DBA is the organization's public display name. Only the primary location is shown on the public profile.
Verification documents
| Endpoint | Permission | Notes |
|---|---|---|
GET /org-admin/:slug/documents | org.read | Every document and its review status (financial documents need more; see below). |
POST /org-admin/:slug/documents | org.upload_documents | { doc_type, content_type, original_filename?, file_base64 } |
GET /org-admin/:slug/documents/:docId/download | org.read | — |
DELETE /org-admin/:slug/documents/:docId | org.upload_documents | — |
PATCH /org-admin/:slug/documents/:docId/public-visibility | org.upload_documents | { is_publicly_visible } — show an approved document on the public profile. |
doc_type is one of ein_letter, 501c3_determination, w9, voided_check, other, officer_letter, group_ruling, reinstatement_letter; content_type is application/pdf, image/png or image/jpeg; the decoded file is at most 10 MB. Uploading a new document of a type supersedes the previous one. An approved ein_letter or501c3_determination is what verification requires. FundlyHub reviews each uploaded document. An officer_letter is the signed letter a non-profit's add flow can use to show that the owner speaks for it.
Financial documents — w9, voided_check and other — are visible only to callers who also hold org.upload_documents (org_admin and org_owner). For anyone else, such as an org_viewer, they are left out of the list, and downloading one answers 404. Every other type needs org.read only.
Child companies (retired)
Company hierarchies are retired. POST /org-admin/:slug/children creates nothing: once the session, verified email and org.manage_children checks pass, it always answers 410 with { "error": "Company hierarchies are no longer supported.", "href": "/nonprofits/new" }. GET /org-admin/:slug/children (org.read) still lists any organizations recorded under this one.
Funds
| Endpoint | Permission | Notes |
|---|---|---|
GET /org-admin/:slug/funds | org.read_payouts | Organization-only balances by currency, Stripe requirements, bank methods, schedule and payout history. |
GET /org-admin/:slug/funds/processing?currency=USD | org.read_payouts | Gift breakdown and settlement estimates. |
POST /org-admin/:slug/funds/payouts | org.manage_payouts | { amountCents, currency, requestId, requestedAt }; transfer available balance to the organization's bank. |
PUT /org-admin/:slug/funds/schedule | org.manage_payouts | { interval, weeklyAnchor?, monthlyAnchor? }; manual, daily, weekly or monthly. |
POST /org-admin/:slug/funds/dashboard | org.manage_payouts | Short-lived link for this organization's Stripe dashboard. |
Money actions reject impersonation. Payout requests use a UUID requestId and an epoch-millisecond requestedAt no more than ten minutes old. A retry retains the amount and Stripe idempotency key. Processing and platform-held gifts are separate from the available bank balance. Organization payouts never use a member's personal Stripe account. The client cannot choose a different account.
Analytics uses the shared ledger net-of-fees definition for raised money. Donor records and receipts report the donor's gift amounts, grouped by currency. GA4 reads are restricted to the organization's page paths and its fundraisers; missing GA4 data is shown as unavailable. City locations are approximate aggregates. The production map uses Apple MapKit; the review site's map is a local visual simulation with fictional data.
Payout connection
| Endpoint | Permission | Notes |
|---|---|---|
POST /org-admin/:slug/payouts/connect | org.manage_payouts | Creates the organization's Stripe Connect account if needed and returns 201 { data: { accountId, onboardingUrl, status } }; send the user to onboardingUrl. A non-profit may connect while its status is pending, approved or verified, so already while its page is a draft or under review (400 otherwise). |
GET /org-admin/:slug/payouts/status | org.read_payouts | Charges/payouts enabled, country, currency, and what Stripe still needs. |
Donations to the organization's fundraisers pay out to this account, separately from any member's personal payouts. See Payouts.
Example
# What may I do in this organization?
curl -b cookies.txt \
"https://api.fundlyhub.org/api/v1/me/capabilities?scopeType=organization&scopeId=$ORG_ID"
# Add a teammate who already has an account
curl -X POST -b cookies.txt -H 'Content-Type: application/json' \
https://api.fundlyhub.org/api/v1/org-admin/local-food-bank-a1b2c3/members \
-d '{ "email": "sam@example.com", "role": "org_viewer", "custom_role_title": "Volunteer coordinator" }'Auditing
Related
- Organizations API — the public reads
- Non-profits API — adding a non-profit, its page, giving, and its team settings under
/org-admin/:slug - Setup & verification and Running your organization — the user guides
Guest receipt addresses are not exposed by the supporter directories or their search filters. They remain available through the separately scoped individual donation and receipt workflows.