Quick start
- Go to Settings → API keys.
- Name the key, choose when it expires (7 days to 10 years, a custom date, or never) and tick what it may do. Full access covers everything your account can do through the API, including permissions added in the future.
- Copy the key. It starts with
cfx_and is shown once. Only a hash is stored, so if you lose it, revoke it and make a new one.
curl https://www.clipfx.me/api/me/assets \ -H "Authorization: Bearer cfx_your_key_here"
Authentication
Send the key on every request, in either header:
Authorization: Bearer cfx_your_key_here X-API-Key: cfx_your_key_here
- The base URL is
https://www.clipfx.me/api. Requests and responses are JSON. SendContent-Type: application/jsonwith every POST body. - With a key you don't need cookies or a CSRF token. If a request carries a key, cookies are ignored.
- A missing, wrong, expired or revoked key gets
401:{"ok": false, "error": "That API key is invalid, expired or revoked."}. Keys of banned accounts stop working too. - Keys are never sent to other sites and never appear in URLs. Don't put them in query strings, front-end code or public repositories.
Permissions
Each key has a set of scopes. A request that needs a scope the key doesn't have gets 403 with "missing_scope" set to the one it needed.
| Scope | Allows |
|---|---|
* Full access | Every scope below, now and in the future. Moderation is included only while the account is a moderator. |
assets:readRead your files | List all your uploads, including unlisted and password-locked ones, see storage use, and download your own files. |
assets:writeUpload and edit files | Upload new files, edit titles, tags, licenses, visibility, link expiry, download limits and passwords. |
assets:deleteDelete files | Permanently delete your uploads. |
saved:readRead saved files | List the files you saved. |
saved:writeSave and unsave files | Add files to, or remove them from, your saved list. |
profile:readRead your profile | Read your account details, including your email. |
profile:writeEdit your profile | Change your display name, bio, website, email, social links and profile photo. |
reports:writeReport files | Report files that break the rules. |
account:deleteDelete your account | Delete your account and everything in it. Still needs your username (and password, if you have one). |
adminModeration Moderators only | Everything on the moderation page: reports, removing files, bans and roles. |
Public reads (searching, file pages, profiles, metadata) work with any key. Without assets:read or profile:read they simply answer as if you were logged out.
Responses and errors
Success: {"ok": true, ...}. Failure: {"ok": false, "error": "Readable message"}, plus "errors": {"field": "message"} for validation problems.
| Status | Meaning |
|---|---|
200 / 201 | Done / created. |
302 | Downloads redirect to storage. Follow the Location header (curl -L). |
400 | Invalid input. See errors. |
401 | Bad, expired or revoked key. |
403 | The key lacks a scope (missing_scope), the endpoint isn't open to keys, or a file is password-locked. |
404 | Not found, or not yours. |
410 | The file's link expired or ran out of downloads. |
413 | Over your storage quota. |
415 | The body wasn't JSON. |
429 | Too many requests. Wait for the seconds in Retry-After. |
Your account
GET/api/sessionprofile:read
Your account: user.username, display_name, email, bio, website, socials, avatar_url, role.
POST/api/me/profileprofile:write
Update your profile. Body: display_name, bio, website, email, socials (an object such as {"youtube": "https://youtube.com/@you"}). Send every field: missing ones are cleared.
POST/api/me/avatarprofile:write
Set your profile photo. Upload a PNG, JPG, WebP or GIF with field avatar (see Uploading), then send {"upload": "<upload id>"}.
POST/api/me/avatar/removeprofile:write
Remove your profile photo.
POST/api/me/deleteaccount:delete
Permanently delete your account and every upload. Body: {"confirm": "your-username", "password": "..."} (password only if your account has one). This can't be undone.
Your files
GET/api/me/assets?page=1assets:read
Everything you uploaded, including unlisted and password-locked files. Returns result.items, result.total, result.pages, plus stats.
GET/api/me/storageassets:read
Storage used and your quota, in bytes.
GET/api/assets/{slug}assets:read
One file. With assets:read your own files include owner details (isOwner, canEdit, link settings).
GET/api/assets/{slug}/downloadassets:read
Download: a 302 to a short-lived storage URL. You can always download your own files, even when locked or expired.
POST/api/assetsassets:write
Publish a file from finished uploads. Returns slug, url and shareUrl. See File fields.
POST/api/assets/{slug}/editassets:write
Edit a file. Takes the same fields as creating it (send them all). To replace the file, the preview or the thumbnail, upload the new one and pass its id in uploads; the share link stays the same.
POST/api/assets/{slug}/deleteassets:delete
Delete a file and its storage. This can't be undone.
Uploading a file
File bytes go straight to storage, not through the API. It takes three steps:
- Ask for upload tickets with
POST /api/uploads(scopeassets:write). Send up to three files, each with afield:file(the download),preview(MP4, WebM, MOV, PNG, JPG, GIF or WebP),thumbnail(PNG, JPG, WebP or GIF), oravatar. - Send the bytes. A ticket with
"method": "put"has aurlandheaders:PUTthe whole file there with exactly those headers (the URL is signed for them). Big files get"method": "multipart"withparts:PUTeach byte range (partSizebytes each) to itsurl, keep each response'sETag, then callPOST /api/uploads/{id}/completewith{"parts": [{"number": 1, "etag": "..."}]}. - Publish with
POST /api/assets, passing the ticket ids inuploads.
Unused uploads are deleted after 24 hours. Cancel one early with POST /api/uploads/{id}/abort.
curl (bash, needs jq)
KEY=cfx_your_key_here
API=https://www.clipfx.me/api
FILE=light-leaks.zip
# 1. Ticket
T=$(curl -s "$API/uploads" -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d "{\"files\":[{\"field\":\"file\",\"name\":\"$FILE\",\"size\":$(wc -c < "$FILE")}]}")
ID=$(echo "$T" | jq -r '.uploads[0].id')
URL=$(echo "$T" | jq -r '.uploads[0].url')
# 2. Bytes (files under the multipart threshold). Send every header from the ticket.
HEADERS=()
while IFS= read -r h; do HEADERS+=(-H "$h"); done < <(echo "$T" | jq -r '.uploads[0].headers | to_entries[] | "\(.key): \(.value)"')
curl -s -X PUT "$URL" "${HEADERS[@]}" --data-binary @"$FILE"
# 3. Publish
curl -s "$API/assets" -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{
"title": "Organic Light Leaks", "category": "overlays", "license": "cc0",
"tags": "light leak, film", "software": ["ae", "pr"], "visibility": "public",
"rights": true, "uploads": { "file": "'"$ID"'" }
}'
JavaScript (Node 18+)
import { readFile } from 'node:fs/promises';
const API = 'https://www.clipfx.me/api';
const KEY = process.env.CLIPFX_KEY;
const call = async (path, body) => {
const res = await fetch(API + path, {
method: body ? 'POST' : 'GET',
headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
body: body && JSON.stringify(body),
});
const data = await res.json();
if (!data.ok) throw new Error(`${res.status} ${data.error}`);
return data;
};
const name = 'light-leaks.zip';
const bytes = await readFile(name);
const { uploads: [t] } = await call('/uploads', { files: [{ field: 'file', name, size: bytes.length }] });
if (t.method === 'put') {
await fetch(t.url, { method: 'PUT', headers: t.headers, body: bytes });
} else {
const parts = [];
for (const p of t.parts) {
const start = (p.number - 1) * t.partSize;
const r = await fetch(p.url, { method: 'PUT', body: bytes.subarray(start, start + p.size) });
parts.push({ number: p.number, etag: r.headers.get('etag') });
}
await call(`/uploads/${t.id}/complete`, { parts });
}
const asset = await call('/assets', {
title: 'Organic Light Leaks', category: 'overlays', license: 'cc0',
tags: ['light leak', 'film'], visibility: 'public', rights: true,
uploads: { file: t.id },
});
console.log(asset.shareUrl);
Python
import os, requests
API = "https://www.clipfx.me/api"
H = {"Authorization": f"Bearer {os.environ['CLIPFX_KEY']}"}
mine = requests.get(f"{API}/me/assets", headers=H).json()
for a in mine["result"]["items"]:
print(a["slug"], a["title"], a["downloads"])
# Download one of your files (follows the redirect to storage)
r = requests.get(f"{API}/assets/{mine['result']['items'][0]['slug']}/download", headers=H)
open("download.bin", "wb").write(r.content)
File fields
| Field | Value |
|---|---|
title | 3 to 100 characters. Required. |
category | Required. One of footage, transitions, overlays, luts, templates, motion, presets, sfx, music, textures, 3d, software, other. |
license | Required. One of cc0, free, cc-by, cc-by-sa, cc-by-nc. See licenses. |
visibility | public (listed) or unlisted (only people with the link). |
tags | Comma-separated string or an array of strings. |
software | Array of ae, pr, resolve, fcp, motion, blender, c4d, capcut, vegas, ps, any. |
description | Up to 5,000 characters. Links are clickable. |
rights | true: you confirm you may share it. Required when creating. |
uploads | {"file": id, "preview": id, "thumbnail": id}. file is required when creating. |
password | Lock the file (4+ characters). On edit, "removePassword": true unlocks it. |
expiresIn | Minutes until the link stops working (1 to 525,600), or 0 for never. On edit, "expiry": "keep" leaves it as it is. |
maxDownloads | Stop after this many downloads (1 to 1,000,000), or empty for no limit. |
Accepted file types and size limits are in /api/meta (catalog.fileTypes, files up to 2.0 GB). Software (.exe, .dmg and so on) goes in software.
Saved files
GET/api/me/saved?page=1saved:read
Files you saved, newest first, in result.items.
POST/api/assets/{slug}/savesaved:write
Toggle: saves the file, or unsaves it if already saved. Returns {"saved": true|false, "count": n}.
Password-locked files
Someone else's locked file needs its password before it can be downloaded. Browsers keep the unlock in a cookie; with a key you get a token back instead:
curl -s https://www.clipfx.me/api/assets/SLUG/unlock -H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" -d '{"password":"the password"}'
# → {"ok": true, "unlock_token": "..."}
curl -L https://www.clipfx.me/api/assets/SLUG/download -H "Authorization: Bearer $KEY" \
-H "X-Unlock-Token: <unlock_token>" -o file
Unlocking needs no scope. Your own files never need unlocking.
Reports
POST/api/assets/{slug}/reportreports:write
Report a file. Body: reason (one of copyright, stolen, malware, inappropriate, broken, spam, other), details, contact. Copyright claims need details of 20+ characters and a contact.
Moderation
Scope admin, for moderator accounts only. These match the buttons on the moderation page.
GET/api/admin?tab=reports|assets|removed|users&q=&page=admin
The moderation queue, all files, removed files or users.
POST/api/admin/reports/{id}/dismissadmin
Close a report without action.
POST/api/admin/reports/{id}/removeadmin
Remove the reported file. Body: reason, block (also block re-uploads of the same file).
POST/api/admin/assets/{id}/remove | restore | purgeadmin
Remove, restore, or permanently delete a file.
POST/api/admin/users/{id}/ban | role | resetadmin
Ban or unban, toggle moderator, or create a password reset link.
Public endpoints
These need no key at all. See API and AI access.
GET/api/assets?q=&category=&software=&license=&kind=&sort=new|trending|downloads&page=no scope
Search public files, 24 per page.
GET/api/users/{username}no scope
A creator's profile and public uploads.
GET/api/metano scope
Categories, software, licenses, file types, limits and API scopes.
Limits and safety
- Up to 25 keys per account. Keys last up to 10 years, or never expire if you choose.
- Keys share the same rate limits as the website (for example 120 upload tickets and 60 new files an hour). Back off when you see
429. - Storage quota and file size limits are the same as on the website.
- The key list shows when each key was last used. Revoke anything you don't recognise: it stops working instantly.
- Give each script its own key with only the scopes it needs, and an expiry. Store keys in environment variables or a secret manager.
