Assets

Upload one small file through the API

The alternative to direct upload when storage is unreachable from your environment. Smaller caps (10 MB image, 30 MB MP4, 15 MB MP3/WAV, decoded); prefer the prepare/complete flow. The bytes are stored by this call: prepare reports the placement only (no uploadUrl), and asset is the completed upload — poll GET /assets/{assetId} until status is completed.

post/assets/uploads/base64

Request

  • Base URL: https://api.martini.film
  • URL: https://api.martini.film/assets/uploads/base64
  • Auth: HTTP bearer

Request body

filenamestring required
contentType'image/jpeg' | 'image/png' | 'image/webp' | 'video/mp4' | 'audio/mpeg' | 'audio/mp3' | 'audio/wav' | 'audio/x-wav' required
datastring required

Base64 (or a data: URL). Caps: 10 MB image, 30 MB MP4, 15 MB MP3/WAV, decoded.

projectIdstring

Requires canvasId; the pair defaults to the key’s.

canvasIdstring

Requires projectId.

Response

The created asset and its placement.

Changes

No recorded changes to this operation across all 1 revision of this API.