Skip to content

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 sectionOperationsAbout
Organization Admin48The 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:

  1. Resolves :slug to an organization. A malformed or unknown slug is 404 Organization not found — never 403, so the endpoint does not confirm that a slug exists.
  2. 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 ​

Permissionorg_viewerorg_adminorg_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 ​

EndpointPermissionNotes
GET /org-admin/:slug/overvieworg.readKPIs. For a conglomerate the totals roll up its child companies.
GET /org-admin/:slug/fundraisersorg.read?status=, ?limit=, ?offset=.
GET /org-admin/:slug/donationsorg.read_donations?status=, ?fundraiser_id=, paging.
GET /org-admin/:slug/donorsorg.read_donorsLegacy donor-only directory; distinct gift identities with totals by currency.
GET /org-admin/:slug/usersorg.read_donorsDonors and public followers together; following filter: yes, no, na.
GET /org-admin/:slug/users/followers/:userIdorg.read_donorsA follower of this organization. Follower-only email is never disclosed.
GET /org-admin/:slug/donors/:donorIdorg.read_donorsAn organization-owned paid donation id anchors the donor detail and history.
GET /org-admin/:slug/analyticsorg.read_donationsNet 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 ​

EndpointPermissionNotes
GET /org-admin/:slug/donations/:idorg.read_donationsDonation, approximate donor city, display avatar or anonymous alias, receipt destination and email delivery history.
GET /org-admin/:slug/donations/:id/receiptorg.read_donationsSaved receipt fields in integer cents; anonymous greetings stay masked.
GET /org-admin/:slug/donations/:id/receipt-emails/:emailIdorg.read_donationsA receipt email tied to this donation. The inspection view removes account tokens and unsubscribe capabilities.
POST /org-admin/:slug/donations/:id/receipt/emailorg.update_settingsSend 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 ​

EndpointPermissionBody
GET /org-admin/:slug/membersorg.manage_members—
GET /org-admin/:slug/users/search?q=org.manage_membersConfirm the account behind a complete email address before adding it.
POST /org-admin/:slug/membersorg.manage_members{ email, role, org_role_title_id?, custom_role_title? }
PATCH /org-admin/:slug/members/:userIdorg.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/:userIdorg.manage_members—
  • Only an approved or verified organization can look up or add members. Otherwise both users/search and POST …/members answer 403 with code: "ORG_NOT_APPROVED".
  • users/search takes a complete email address in q, matched case-insensitively against account login emails. It answers { "results": [ … ] } with at most one entry, { id, type: "user", name, avatar, masked_email }, where masked_email looks like s***@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 is 409.
  • A new member's role is org_admin or org_viewer. A non-profit has one owner: PATCH with role: org_owner answers 422 with code: "transfer_ownership", and ownership moves only with POST /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 is 403. Stepping down or leaving yourself is always allowed.
  • The only owner cannot be demoted or removed (400; 422 last_owner with 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 PATCH body with title or show_on_page, or with one of those roles, is handled as a non-profit team change and answers the member without a data wrapper. Invites, join requests and the transfer are in the Non-profits API.
  • custom_role_title (up to 100 characters) or org_role_title_id is the public position shown on the team list; GET /org-role-titles lists the catalogue.

Settings, branding and updates ​

EndpointPermissionNotes
PATCH /org-admin/:slug/settingsorg.update_settingslegal_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/avatarorg.update_settingsOrganization logo (base64 JSON, like the user avatar).
POST / DELETE /org-admin/:slug/bannerorg.update_settingsBanner image.
POST /org-admin/:slug/updatesorg.update_settings{ title, body, cover_image? } — a post on the public profile's "Latest news".
PATCH / DELETE /org-admin/:slug/updates/:updateIdorg.update_settingsEdit 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 ​

EndpointPermissionBody
GET /org-admin/:slug/dbasorg.read—
POST /org-admin/:slug/dbas · PATCH …/:dbaId · DELETE …/:dbaIdorg.manage_dbas{ dba_name, is_default? }
GET /org-admin/:slug/locationsorg.read—
POST /org-admin/:slug/locations · PATCH …/:locationId · DELETE …/:locationIdorg.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 ​

EndpointPermissionNotes
GET /org-admin/:slug/documentsorg.readEvery document and its review status (financial documents need more; see below).
POST /org-admin/:slug/documentsorg.upload_documents{ doc_type, content_type, original_filename?, file_base64 }
GET /org-admin/:slug/documents/:docId/downloadorg.read—
DELETE /org-admin/:slug/documents/:docIdorg.upload_documents—
PATCH /org-admin/:slug/documents/:docId/public-visibilityorg.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 ​

EndpointPermissionNotes
GET /org-admin/:slug/fundsorg.read_payoutsOrganization-only balances by currency, Stripe requirements, bank methods, schedule and payout history.
GET /org-admin/:slug/funds/processing?currency=USDorg.read_payoutsGift breakdown and settlement estimates.
POST /org-admin/:slug/funds/payoutsorg.manage_payouts{ amountCents, currency, requestId, requestedAt }; transfer available balance to the organization's bank.
PUT /org-admin/:slug/funds/scheduleorg.manage_payouts{ interval, weeklyAnchor?, monthlyAnchor? }; manual, daily, weekly or monthly.
POST /org-admin/:slug/funds/dashboardorg.manage_payoutsShort-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 ​

EndpointPermissionNotes
POST /org-admin/:slug/payouts/connectorg.manage_payoutsCreates 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/statusorg.read_payoutsCharges/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 ​

bash
# 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 ​

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.

Built with VitePress