Skip to main content
POST
Request upload targets

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Learn how to obtain an API key

Body

application/json
mime_type
enum<string>
required

The files' MIME type, the same for every file of the call. Each target's max_bytes gives its size limit.

Available options:
image/jpeg,
image/png,
image/svg+xml,
image/webp,
image/heic,
image/heif,
image/avif,
video/mp4,
video/quicktime,
video/webm,
video/x-m4v,
audio/wav,
audio/x-wav,
audio/mpeg,
audio/mp4,
audio/ogg,
audio/flac,
model/gltf-binary
folder_reference
string
required

The reference of the project or folder to save the files in. Required: one you cannot add to returns 403.

Maximum string length: 64
count
integer

How many files, one target each. Default: 1.

Required range: 1 <= x <= 100

Response

data
object
required