Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
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.
https://api.fileboy.ioYour 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.
/me/tokensList 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
200 | The tokens.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/me/tokensMake 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/jsonname * | string | |
scopes * | ApiKeyScope[] | |
appIds | string (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. |
expiresAt | string | null | In the future, at most five years ahead. Leave it out for a token that never expires. |
Responses
201 | The token, with the whole token in token.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Responses
200 | The token, revoked.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
/me/activityYour 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
200 | The events.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
/me/transfersList 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
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/me/transfersStart 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/jsontitle | string | |
message | string |
Responses
201 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Responses
204 | Done. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/uploadsStart 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Request body
application/jsonname * | string | |
size * | integer | |
mime | string | |
path | string |
Responses
201 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
413 | An error. error is a short code and message says what went wrong.application/json |
429 | An error. error is a short code and message says what went wrong.application/json |
501 | An error. error is a short code and message says what went wrong.application/json |
502 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/uploads/{uploadId}/partsGet 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | |
uploadId * | path | string (uuid) |
Request body
application/jsonparts * | object[] |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
502 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/uploads/{uploadId}/completeFinish 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | |
uploadId * | path | string (uuid) |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
502 | An error. error is a short code and message says what went wrong.application/json |
/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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) | |
fileId * | path | string (uuid) |
Responses
204 | Done. |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/sendSend 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Request body
application/jsontitle | string | |
message | string | |
expiryDays | integer | |
recipients | string (email)[] | |
password | string | Starter and above: recipients enter it before they see the files. Stored as a bcrypt hash. |
maxDownloads | integer | Starter and above: it stops after this many downloads. |
notifyOnDownload | boolean | Starter and above: email the sender on the first download, then at most once an hour. |
brandAppId | string (uuid) | Starter and above: an app you own on a paid plan, whose player logo and accent colour the recipient's page shows. |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
422 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/revokeRevoke 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/extendExtend 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Request body
application/jsondays | integer |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |
/me/transfers/{id}/resendResend 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
| Name | In | Type | Description |
|---|---|---|---|
id * | path | string (uuid) |
Responses
200 | The answer.application/json |
400 | An error. error is a short code and message says what went wrong.application/json |
401 | No key was sent.application/json |
403 | An error. error is a short code and message says what went wrong.application/json |
404 | An error. error is a short code and message says what went wrong.application/json |
409 | An error. error is a short code and message says what went wrong.application/json |