HoldFast API reference

Base URL, auth header, every v1 endpoint, and a working first call.

Updated

The REST API lives at https://holdfast.video/api/v1 and mirrors the app: projects, folders, assets, uploads, review links, reels, comments, and analytics. Every request carries a token from Settings → API & MCP (how to create one) in the header:

Authorization: Bearer hf_your_token

Send JSON bodies with Content-Type: application/json. Older endpoints answer errors as { "error": "sentence" }; the organising, upload, and reel endpoints answer { "error": "code", "message": "sentence" } so you can branch on the code. Statuses: 400 for missing fields, 401 for a bad, revoked, or expired token, 403 when the token's scope or role does not cover the endpoint, 404 when the resource is not in your workspace, 409 when a call is refused to protect existing work, 429 when the workspace has hit its daily upload limit. The full downloadable reference, with a response example for every endpoint, is on the same Settings page.

A first call

curl -H "Authorization: Bearer hf_your_token" https://holdfast.video/api/v1/projects

Not sure the host or token is right? The health check needs no auth and returns {"status":"ok"} plus a timestamp:

curl https://holdfast.video/api/health

Projects and folders

  • GET /projects: every project with an asset count. POST /projects creates one; PATCH /projects/:id renames it or changes its description.
  • GET /projects/:id: one project plus its assets.
  • GET /projects/:id/folders: the folders as a flat list and as a nested tree, each with an asset_count of what sits directly inside it. POST /projects/:id/folders creates one and returns the existing folder instead of a twin when the name is already taken at that spot.
  • PATCH /folders/:id: rename a folder, nest it under another folder in the same project, or send "parent_folder_id": null for top level. A move into itself or one of its own subfolders is refused.
  • DELETE /folders/:id: the one delete in the API. It answers 409 folder_not_empty with the counts while anything is still inside.

Assets

  • GET /assets?q=rough: search by name across the workspace, newest first, with optional project_id, folder_id, and limit (up to 100).
  • GET /assets/:id: metadata with playback and thumbnail URLs. PATCH /assets/:id renames it or changes its description. GET /assets/:id/download streams the original file.
  • POST /assets/move: move assets into a project and optional folder, across projects. Moving more than ten assets out of their subfolders into the parent answers 409 suspected_flatten until you send "confirm_flatten": true.
  • POST /assets/tags: add and remove tags across several assets in one call; the response carries each asset's full tag list afterwards.
  • GET /assets/:id/versions: every version, newest first, named by its filename label, with which one is active. POST /assets/:id/versions/:versionId/activate switches playback to another version everywhere the asset appears.

Uploads

  • POST /assets/upload: send a small file as form-data with file and project_id, plus optional name and folder_id.
  • For real-size media, use the three-step direct upload. POST /uploads with filename, size_bytes, and project_id (or asset_id to add a new version) checks your quota and answers an upload_ticket plus one upload link, or a list of part links with a part_size for files of 100 MB and more. Send the bytes to those links yourself with curl -T, keeping the ETag header from every PUT. Then POST /uploads/complete with the ticket (and the part numbers and ETags) lands the file; videos start Optimizing on arrival. POST /uploads/abort frees anything already sent if you give up.
  • The ticket lasts 24 hours but the upload links do not: one hour for a single link, six hours for part links. url_expires_at tells you when, and starting again is the only way to get fresh ones.
  • POST /imports: hand the server a URL from an allowed host and it fetches the file itself; poll GET /assets/:id until the status leaves uploading.
  • GET /review-links and GET /review-links/:id: your links with view and asset counts.
  • POST /review-links: create a shareable page. Body: { "title": "Title", "asset_ids": ["uuid"], "is_active": true }.
  • GET /assets/:id/comments and POST /assets/:id/comments: read the threaded review and write timecoded feedback. Send parent_comment_id to reply inside an existing thread. GET /assets/:id/comments/markers returns the same notes shaped for editing-software markers.

Reels and analytics

  • GET /reels: your reels. POST /reels creates one, unpublished, from a title and optional asset_ids; POST /reels/:id/clips appends more, skipping any already there; POST /reels/:id/publish makes the page live and answers its URL, or takes it offline again with { "published": false }.
  • GET /analytics/overview and GET /analytics/storage: workspace counts, and storage per project and asset type.

Creating review links, the four reel endpoints, and the analytics endpoints require the Full API token scope, and together the reel and analytics endpoints are all a sales-role token can reach. Plugin tokens cover everything else above. Prefer push over poll? Webhooks send events to you instead.

Questions

Can I use the API on the Free plan?

Mostly. Plugin-scoped tokens, available on Free, can read, search, organise, upload, and comment: projects, folders, moves, tags, versions, both upload paths, and the review thread. Creating review links, every reel endpoint, and the two analytics endpoints need the Full API scope, which comes with Pro.

Why am I getting 403 with a valid token?

The token cannot reach that endpoint: either a Plugin-scoped token is calling a Full API endpoint, or the token was created by a sales-role user and the endpoint is outside reels and analytics.

Can I delete things through the API?

One thing: an empty folder, with DELETE /folders/:id. Assets, versions, projects, and review links cannot be deleted over the API because those deletes are permanent in HoldFast. To take a reel offline, publish it with published set to false.

Ready to try it?

Host video, collect frame-accurate review, and see who's watching. Free to start.

Start free