Documentation

Guides and API reference for uploads, image transforms and video.

npm install @cd2/fileboy-react
API https://api.fileboy.io

Team members and roles

Invite people to an app by email and choose what each can do. Every app has one Owner, and anyone else is an Admin, a Developer or a Viewer. Fileboy checks the role on every request: in the dashboard, and through personal access tokens in the API. To give a whole team several apps at once, use an organisation.

Roles

Find them in the dashboard under an app's Members page (also linked from Settings).

The four roles

owner

Everything, including changing the plan and billing details and deleting the app. Each app has exactly one, at first the person who made it. The Owner can't leave the app or change their own role, but can transfer ownership to someone else (below).

admin

Everything except changing billing and deleting the app. Admins invite people, change roles (except the Owner's) and remove members.

developer

Keys, webhooks, files, videos and settings. No billing and no say over members.

viewer

Reads the dashboard: files, videos, settings, usage and the activity log. Can't see the private key, the previous key or webhook signing secrets (webhook URLs show only their host). Records videos into the app, and manages their own recordings (below), but changes nothing else.

OwnerAdminDeveloperViewer
See files, videos, settings, usage and activityYesYesYesYes
Upload, change and delete files and videosYesYesYesNo
Record videos, and manage their own recordingsYesYesYesYes
See the private key and webhook secretsYesYesYesNo
Regenerate keys, manage scoped keysYesYesYesNo
Manage webhooks and change settingsYesYesYesNo
Invite people, change roles, remove membersYesYesNoNo
See billing and invoicesYesYesNoNo
Change the plan and billing detailsYesNoNoNo
Delete the appYesNoNoNo
Whoever pays for an app's live subscription can always see and manage it, whatever their role, and can't be removed (or leave) while they pay: they cancel it, or ask us to move its billing, first. Starting a subscription is the Owner's. The public key isn't a secret for any role: anyone with it can upload, if the app allows uploads with it.

The dashboard shows each person what their role allows. A Viewer sees the buttons that would change something turned off, with the reason, and can still search, filter, download, save views and change their own notifications. Plan & billing shows a Developer or Viewer the app's plan and limits and who to ask.

Viewers record, and manage their own recordings

Every member can record into an app, Viewers included: with the Record button on the Videos page or the Chrome extension. Each recording belongs to the person who made it, and the app says who that is on the video (createdBy in the API) and in the activity log. The Activity page's Member filter shows only what one person did.

A Viewer can rename their own recordings and change their description, trim, cut and blur them, change who can watch them, share them with links, choose whether people may ask for access, hide and delete their comments and reactions, and delete them. A deleted recording goes to the trash on a plan that keeps one, and the Viewer can bring it back with Undo straight after. Later, until the trash empties, they can restore it themselves from Deleted on the Recordings page (choose Deleted, then Restore on the recording); the Trash page is for Owners, Admins and Developers. On a plan with no trash it is deleted for good, as anyone's video is there. Nothing else: not anyone else's videos, not a video they uploaded another way, not its player branding, clips, approving access requests or blocking viewers, and not files, folders, keys, webhooks, members or settings.

Owners, Admins and Developers manage every recording, a Viewer's included. Recordings count toward the app's videos and storage like any upload. A Viewer who leaves the app, or is removed, can no longer reach their recordings: they stay in the app for its Owners, Admins and Developers. Recordings made before recordings had an owner belong to the person the activity log says recorded them, where it can tell; the rest are managed by Owners, Admins and Developers only.

Inviting people

An Owner or Admin enters an email address and a role. Fileboy emails a link that works once, for 7 days. Whoever opens it signs in, or creates an account, with that same address to accept; someone signed in with another address can't use it, and a link for another address verifies nothing. Because the link was emailed to the invited address, using it while signed in with that address also verifies the address, with no separate email to open first. The email and the answer are the same whether or not the address already has a Fileboy account.

Open invites are listed on the Members page, where they can be sent again (with a new link: the old one stops working) or revoked. Inviting an address that already has an open invite sends it again; when the new invite is for another role, the dashboard asks first, and says which role the open invite has. An app can send 20 invites a day (and one person 50, across all their apps) and have 50 members and open invites. Invites someone sent stop working when they are removed, leave, or become a Developer or Viewer. Invites can make Admins, Developers and Viewers, never a second Owner.

Changing roles and removing people

A change applies at once, everywhere: the person's next request in the dashboard or with a personal access token gets the new role. Removing someone ends their access to the app the same way. They are emailed in both cases. Anyone except the Owner can leave an app from its Members page.

Someone who could see the private key may have kept a copy. If you no longer trust them with it, rotate it on the API keys page, and revoke any scoped keys they made: scoped keys belong to the app, not to the person.

With two-factor authentication on, inviting an Admin, changing a role, removing someone and deleting an app each ask for a fresh code.

Transferring ownership

An app's Owner can hand it to someone else from the app's Settings, under Danger zone: Transfer ownership. Enter their email address (they needn't have a Fileboy account yet) and choose whether you stay on as an Admin or leave the app once they accept. Starting it asks you to confirm it's you: your password, or with two-factor authentication on, a code.

Fileboy emails them a link that works once, for 7 days. They sign in, or sign up, with that address, verify it, and accept or decline, from the link or from a banner on their dashboard. Accepting asks them to confirm it's them too. Until then nothing changes, and you can cancel it from the same place. You're emailed when they accept or decline, or if it expires.

When they accept

Ownership

The recipient becomes the app's Owner, with its billing and the right to delete it. The current Owner stays on as an Admin.

Billing

Only an app with no paid subscription can be transferred: a subscription can't move to another person's billing account. The app is on Free when it moves, and the recipient can choose a plan from its Subscription page. Past invoices stay with whoever paid them.

Members, keys and everything else

The other members keep their roles. The app keeps its public and private keys, scoped keys, files, videos, settings, webhooks, custom domains and own storage: nothing your code uses changes.

Billing: a subscription is paid from its payer's own billing account and can't move to someone else's, so only an app with no paid subscription can be transferred. Cancel it on the Subscription page and transfer the app once it has ended (it's on Free then), or write to us to end it sooner. The new Owner then chooses a plan. If a subscription starts while a transfer is waiting, it can't be accepted, and accepting closes any checkout still open for the app.

One transfer can wait at a time per app, and one person can start 5 a day. Every step is in the app's activity log. An app in an organisation belongs to the organisation, so it isn't transferred on its own: an Owner can transfer the organisation instead. Transfers are made in the dashboard only, not through the API.

Roles in the API

The app's private key and scoped keys belong to the app, so roles don't limit them. A personal access token acts as its owner, so it does no more than their role allows in the app the request names: a Viewer's token keeps only its files:read, videos:read and activity:read scopes there, whatever it was made with, and uploads for recordings only (a video upload with "source": "recording", as the Chrome extension sends). GET /me/apps says which role the token has in each app.

1
2
3
4
5
6
7
8
curl 'https://api.fileboy.io/me/apps' -H 'Authorization: Bearer fbp_...'

{
  "data": [
    { "id": "6f1c…", "name": "Acme Shop", "publicKey": "…", "role": "developer" },
    { "id": "0b9a…", "name": "Acme Blog", "publicKey": "…", "role": "viewer" }
  ]
}

Anything else a Viewer's token tries is refused with a 403:

1
2
3
4
{
  "error": "role_forbidden",
  "message": "Viewers can only read this app and make and manage their own recordings. Ask an Owner, Admin or Developer of the app to do this"
}

Members and invites are managed in the dashboard only, not through the API: they are about people, and a leaked key shouldn't be able to add one.

Apps from before roles

The person who made an app before roles is its Owner, and everyone else on it an Admin; where Fileboy can't tell who made a shared app, its members stay Owners until we've set one with you. One thing changed for those Admins: before roles every member could change the app's billing, and now only the Owner (and whoever pays for the subscription) can. Admins still see the plan.