Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Organizations
An organisation groups your company's apps and the people who work on them. Invite someone once and they get every app in it, with a role that comes from their organisation role. Remove them once and they lose every app at once.
Organisation roles
Create one from the dashboard (New organisation). You're its Owner. Each person can be in several organisations, and Owner of up to 10.
The three roles
owner
Everything, including deleting the organisation and making other Owners. An organisation always has at least one: the last Owner can't leave, step down or be removed.
admin
Renames the organisation, invites and removes people (not Owners), sets the role Members get, creates apps in it and moves apps in.
member
Works on the organisation's apps with the role it gives Members: Viewer (the default) or Developer.
| Organisation role | In every app | Can |
|---|---|---|
| Owner | Owner | Everything, including billing and deleting apps. Deletes the organisation. |
| Admin | Admin | Manages the organisation, its members and its apps. No billing changes, can't delete apps. |
| Member | Viewer or Developer | Works on the apps, with the role the organisation sets. |
The app roles are the ones on Team members and roles.
Roles in one app
Someone's role in an organisation's app is the higher of what their organisation role gives and any role they have in that app. An app's Owner or Admin can give a Member more in that one app from its Members page, say a Developer in the app they work on and a Viewer everywhere else. It can't be less than the organisation gives: to give someone less, change their organisation role.
An app's Members page can still invite someone to that app alone, outside the organisation, such as a contractor. They work as described on Team members and roles, and are removed from that page.
Apps in an organisation
Every app starts personal, as apps always were, and nothing changes for it until it's moved. An Owner or Admin of an organisation can create apps in it (pick the organisation as the Owner when making the app). An app's Owner who is an Owner or Admin of an organisation can move the app in, from the app's Settings or the organisation's page. An older app shared before roles may have several Owners: it can only be moved in once it has one, so write to us to choose which of you it is.
The organisation owns its apps: its Owners are each app's Owners, the only ones who change its plan or delete it. When an app moves in, its people keep their access, as Admins at most, and everyone in the organisation joins it.
An Owner can move an app out again, from the app's Settings. It becomes a personal app with that Owner as its Owner. People with a role of their own in the app keep it (an Owner there becomes an Admin); people who were in it only through the organisation leave it, except whoever pays for its own subscription, who stays as an Admin. Moving an app between organisations isn't offered yet: move it out, then in.
Billing
An organisation can pay for all its apps' plans itself, on one invoice, from its Billing page. An Owner sets it up once: the email invoices go to, the currency (pounds, US dollars or euros; it can't change once the organisation has paid), and a card with its billing address, saved through Stripe without a charge. Prices exclude VAT: Stripe adds VAT or sales tax from the billing address where it applies. Then each app's plan (Free, Starter, Pro or Max) is chosen there, at the usual prices, and the organisation is billed for all of them on one subscription. An app's own Subscription page says “Billed to” the organisation and links to it.
Adding an app, changing its plan or setting it to Free is prorated: the difference is on the next invoice. The first paid app is charged at once; setting the last one to Free ends the subscription, and its unused time is a credit for the next invoice. The Billing page shows each app's plan, the total, the next invoice and the card, and the Stripe portal has the invoices, the billing details and the card. Owners change billing; Admins can see it; Members can't.
Apps moving in and out
a paid app moving in
Whoever pays for it can move its plan onto the organisation's billing from the Billing page, as an Owner. The organisation takes the app on first, on the same plan, then the app's own subscription ends at once, prorated: its unused time is a credit on their own billing account. So the app is never unpaid, and nobody pays twice for the same days. If the organisation's card is declined, nothing changes.
an app moving out
Asks first if the organisation pays for it: it goes back to Free, with Free's limits, unless you then choose a plan on its Subscription page. The organisation's next invoice has the credit.
a failed payment
Every app keeps its plan while Stripe tries the card again, as for an app's own subscription, and the organisation's Owners and its billing email are told. If the last attempt fails, every app in the organisation goes back to Free. Until the payment goes through, no app can be put on a paid plan or have its plan moved onto the organisation's billing.
Inviting and removing people
Invites work like app invites: an email with a link that works once, for 7 days, for whoever signs in with that address (using the link verifies it). An organisation can send 20 invites a day and have 50 members and open invites, and one person can send 40 organisation invites and create 10 organisations a day. Invites make Admins and Members; an Owner makes another Owner by changing someone's role.
Removing someone from an organisation ends their access to every one of its apps on their next request, in the dashboard and through their personal access tokens, and removes any role they had in one of those apps. Invites they sent to the organisation or its apps are revoked, and they stop getting its apps' webhook event emails. Their own apps and other organisations aren't affected. Changing an organisation role, or the role Members get, applies the same way.
With two-factor authentication on, inviting an Admin, changing someone's role, removing them, changing the role Members get, creating or moving an app in and deleting the organisation each ask for a fresh code. An organisation's page lists its last 50 changes (invites only for its Owners and Admins), and each app's activity log shows people leaving it through the organisation and the app moving in.
Organisations in the API
Organisations are managed in the dashboard only. An app's keys belong to that app, so they can't see or change the people around it, and a leaked key can't add anyone. A personal access token can read which organisations its owner is in, with GET /me/orgs, and GET /me/apps gives each app's orgId (null for a personal app) and your role in it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14curl 'https://api.fileboy.io/me/orgs' -H 'Authorization: Bearer fbp_...' { "data": [ { "id": "3a7c…", "name": "Acme Ltd", "slug": "acme-ltd", "role": "member", "memberAppRole": "developer", "appIds": ["6f1c…", "0b9a…"] } ] }
The Node, Ruby, Python and PHP libraries have listMyOrgs (list_my_orgs in Ruby and Python), and the MCP server has fileboy_list_my_orgs.
Transferring ownership
An Owner can make another member the Owner from the organisation's Settings, under Danger zone: Transfer ownership. Only someone already in the organisation can be chosen, so invite them first. Starting it asks you to confirm it's you (your password, or a two-factor code), and so does accepting it. They have 7 days, from the email's link or a banner on their dashboard, and you can cancel it until then. When they accept they become an Owner, and so the Owner of every app in it, and you become an Admin. Any other Owners stay Owners.
Deleting an organisation
An Owner can delete an organisation from its Settings once it has no apps: delete them first, one at a time. An app leaves the organisation as soon as its deletion starts, while what it holds is still being deleted in the background (see deleting an app). Its members and invites go with it. Deleting your Fileboy account waits while you're the only Owner of an organisation with other people or apps in it.