Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Upload an image, media file or font

POSThttps://api.butterix.com/v1/sites/:site/editor/upload

Uploads an image, video, PDF, or font (WOFF2, WOFF, TTF, OTF; up to 20 MB), saves it under assets/ on the draft branch (fonts in assets/fonts/), and commits it. Returns a URL you can use in Markdown.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

Query parameters

branchstringRequired

Request

This endpoint expects an object.
filefileRequired

Response

Saved
pathstringOptional
urlstringOptional

Errors