Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required

API key authentication

Query Parameters

source
enum<string>
default:upload

Source recorded on the stored file. Defaults to upload; files stored under other sources are excluded from the default listing.

Available options:
upload,
brand-kit
dedupe
enum<string>
default:false

When true, an identical active image of the same source (same bytes and file name) is returned with deduplicated: true instead of a new copy, so the file is not stored again when an identical active image already exists.

Available options:
true,
false
kind
enum<string>

Set to file for a hosted document (.pdf, .docx, .pptx, .csv, .txt, at most 10 MB) used by the Benchmark email editor's file links. kind=file is for the email editor only: requests authenticated with an API key receive 403. With kind=file, source and dedupe are rejected on upload, and fileType, source, includeImported and sort on the list. Omit it for the image library.

Available options:
file

Body

multipart/form-data
file
file
required

Response

Image stored, or (with dedupe=true) an identical existing image returned

createdAt
string<date-time>
deduplicated
boolean

Present only when dedupe=true. True when an identical active image of the same source already existed and that file was returned instead of a new copy

fileId
string<uuid>
fileSize
integer
height
integer

Image height in pixels when known

Required range: x >= 1
mimeType
string
originalName
string
url
string<uri>
width
integer

Image width in pixels when known

Required range: x >= 1