Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Activity API reference
The activity 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.ioThe app's activity log: who uploaded, changed or deleted what, and when, from the dashboard and the API. Kept for 90 days. Reading it needs your private key.
/activityList the app's activity log
Who uploaded, changed or deleted what in the app, and when, newest first. One event per change: uploads, renames, moves, permission and share page changes and deletes of files; uploads, detail and visibility changes, replacements, trims, cuts, clips, stitches, blurs and deletes of videos; folders, labels and webhook endpoints; app settings; and key regeneration. A change that failed is never recorded.
actor says who: user (someone signed in to the dashboard, named by their email when it happened), api_key (a request made with the app's keys, name API key, Public key or Access token) or system (Fileboy itself). via is dashboard or api when known. target is what changed, with its name when it happened, so an event still reads well after its target is deleted. details is a small object, such as the fields that changed with their old and new values. Keys, secrets, passwords and signed URLs are never recorded, and nor are IP addresses or user agents.
Events are kept for 90 days. Page through them with cursor: pass the nextCursor of one page to get the next, until it is null.
Authorization: public key or signed token
Parameters
| Name | In | Type | Description |
|---|---|---|---|
action | query | string | Only this action, or every action under it: file and file. match file.uploaded and file.deleted, file.deleted matches only itself. |
actorKind | query | "user" | "api_key" | "system" | Only changes made by this kind of actor. |
actorUserId | query | string (uuid) | Only changes made by this person in the dashboard. |
targetKind | query | string | Only changes to this kind of thing: file, video, folder, label, webhook_endpoint, app or key. |
targetId | query | string | Only changes to the thing with this id (with targetKind, to one thing). |
since | query | string | Only events at or after this ISO 8601 date or time. |
until | query | string | Only events before this ISO 8601 date or time. |
limit | query | integer | How many events per page. |
cursor | query | string | The nextCursor of the previous page. |
X-Fileboy-App | header | string (uuid) | With a personal access token: the id of the app the request is for. Ignored for an app's own keys and scoped keys. |
Responses
200 | A page of events, newest first.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 |