Documentation

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

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

Account API reference

The account endpoints, generated from the OpenAPI document you can download for code generators and API clients: openapi.json or openapi.yaml. See every endpoint for the rest of the API.

Base URLhttps://api.fileboy.io

Your own account: personal access tokens and their events. Managed on the Account page; the website server calls these for you, and a token can never call them.

GET/me/tokens

List your personal access tokens

Your tokens, newest first, revoked and expired ones included. Never the tokens themselves. Only for the signed-in person, through the Account page: the website server calls it with your session. A personal access token or an app's key gets 401 or 403 session_required.

Authorization: public key or signed token

Responses

200The tokens.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
POST/me/tokens

Make a personal access token

A token that acts as you in the apps you are a member of (all of them, now or later, when appIds is empty, or only those it lists), limited to its scopes. The answer holds the whole token in token, this once: Fileboy keeps only hashes of it. You may have 50 tokens that still work (409 too_many_tokens). Recorded on your account as pat.created. Only for the signed-in person: a token can never make tokens.

Authorization: public key or signed token

Request body

application/json
name *string
scopes *ApiKeyScope[]
appIdsstring (uuid)[]The apps it may reach, each one you are a member of (403 not_a_member otherwise). Empty or left out: every app you are a member of, now or later.
expiresAtstring | nullIn the future, at most five years ahead. Leave it out for a token that never expires.

Responses

201The token, with the whole token in token.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
DELETE/me/tokens/{id}

Revoke a personal access token

The token stops working at once (401 key_revoked), and so do URLs it signed. Revoking a revoked token changes nothing and answers with it. Recorded on your account as pat.revoked. Only for the signed-in person.

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Responses

200The token, revoked.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
GET/me/activity

Your account's recent events

Your last 50 account events, newest first: personal access tokens made (pat.created) and revoked (pat.revoked), with the token's name, prefix, scopes and apps. Kept for 90 days. Only for the signed-in person.

Authorization: public key or signed token

Responses

200The events.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
GET/me/transfers

List your transfers

Your transfers, newest first (?before= a createdAt for the next 50), with your Transfer plan, its limits and whether your address is verified. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers

Start a transfer

A draft to upload files to. Your transfer space is made on your first one. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Request body

application/json
titlestring
messagestring

Responses

201The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
GET/me/transfers/{id}

Get a transfer

One of your transfers, with its files, recipients and latest downloads. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
DELETE/me/transfers/{id}

Delete a transfer from your history

Revoked first if it hadn't ended, then gone from your history. Its records are kept, hidden, only while your plan's rolling limits still count it (30 days from sending), then deleted. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Responses

204Done.
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/uploads

Start uploading a file to a draft

An upload session (as POST /uploads) for one file, held to your Transfer plan's file and transfer sizes. path is its place in the transfer: a dropped folder keeps its structure. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Request body

application/json
name *string
size *integer
mimestring
pathstring

Responses

201The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
413An error. error is a short code and message says what went wrong.
application/json
429An error. error is a short code and message says what went wrong.
application/json
501An error. error is a short code and message says what went wrong.
application/json
502An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/uploads/{uploadId}/parts

Get part URLs for a transfer's file

As POST /uploads/{id}/parts. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)
uploadId *pathstring (uuid)

Request body

application/json
parts *object[]

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
502An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/uploads/{uploadId}/complete

Finish uploading a transfer's file

As POST /uploads/{id}/complete: the file is added to the draft. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)
uploadId *pathstring (uuid)

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
422An error. error is a short code and message says what went wrong.
application/json
502An error. error is a short code and message says what went wrong.
application/json
DELETE/me/transfers/{id}/files/{fileId}

Take a file out of a draft

The file is deleted with the expiry job's next pass. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)
fileId *pathstring (uuid)

Responses

204Done.
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/send

Send a transfer

Checks your plan's limits (403 transfer_limit, with limit naming which), then holds it until your address is verified, or checks its files for viruses; it goes live once they're checked, and the recipients are emailed then. 422 transfer_empty when it has no files; 409 transfer_files_expired when files uploaded more than a day ago have gone (they're taken out of the draft, to add again). Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Request body

application/json
titlestring
messagestring
expiryDaysinteger
recipientsstring (email)[]
passwordstringStarter and above: recipients enter it before they see the files. Stored as a bcrypt hash.
maxDownloadsintegerStarter and above: it stops after this many downloads.
notifyOnDownloadbooleanStarter and above: email the sender on the first download, then at most once an hour.
brandAppIdstring (uuid)Starter and above: an app you own on a paid plan, whose player logo and accent colour the recipient's page shows.

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
422An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/revoke

Revoke a transfer

It stops at once; its files are deleted with the expiry job's next pass. The row stays in your history. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/extend

Extend a transfer

Starter and above (403 transfer_paid_only with upgradeUrl on Free): a live transfer lasts days from now (1 to your plan's longest expiry, 30), never past 90 days after it was sent, as often as you like. 409 transfer_extend_limit when it can't go any later, transfer_not_live when it isn't live; 400 validation_error when days from now ends before it already does but it could still go later. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Request body

application/json
daysinteger

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json
POST/me/transfers/{id}/resend

Resend a transfer's emails

Emails a live transfer again, as a reminder, to the people it was emailed to who haven't downloaded it (not those whose email bounced or who are on the suppression list). Once a day per transfer, at most 3 times, and each email counts against your recipient emails a day (403 transfer_limit). 429 transfer_resend_limit (with nextResendAt, or none once it's been resent 3 times), 403 transfer_emails_paused while too many of your emails have bounced, 409 transfer_nobody_to_resend or transfer_not_live. Internal, for the dashboard's Send section: only the signed-in person's session (through the website server) may call it, and only while Fileboy Transfer is on (404 transfers_off otherwise).

Authorization: public key or signed token

Parameters

NameInTypeDescription
id *pathstring (uuid)

Responses

200The answer.
application/json
400An error. error is a short code and message says what went wrong.
application/json
401No key was sent.
application/json
403An error. error is a short code and message says what went wrong.
application/json
404An error. error is a short code and message says what went wrong.
application/json
409An error. error is a short code and message says what went wrong.
application/json