Skip to main content
POST
Upload a base64-encoded image and get back a stable URL to embed in a document via <img src>.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json
image_base64
string
required

The image bytes, base64-encoded (raw base64 or a data: URL).

filename
string | null

Optional original filename (used only to infer content type).

Maximum string length: 255
content_type
string | null

Optional MIME type, e.g. image/png. Defaults to image/png.

Maximum string length: 100

Response

Successful Response