Ferndesk

Upload an asset

Uploads a file (up to 3 MB, base64 in the body) to the workspace's media library and returns it with its stable URL. Pass external_id to find it again later with GET /assets/lookup. Without an external_id, bytes the workspace already has return the existing asset with deduplicated: true and status 200. A new asset is restricted until a public help center uses it.

POST /v1/assets
Bearer token scope content:write

Body

required application/json
filename string · min length: 1· max length: 255 required

File name, with its extension.

content_type string · min length: 1· max length: 255 required

MIME type of the file. A replacement must have the same type as the asset.

data_base64 string · min length: 1· max length: 4105264 required

The file, base64-encoded (not a data: URL; line breaks are ignored). Up to 3 MB decoded.

external_id string · min length: 1· max length: 200 · pattern

Your own stable id for the asset, unique among the workspace's live assets. Use it to find the asset again; AI naming never changes it.

title string · min length: 1· max length: 200
alt string · min length: 1· max length: 1000

Alt text for an image.

description string · min length: 1· max length: 2000
tags array of string · max items: 30

Responses