Skip to main content
POST
Reserve an image upload
Replace {your-subdomain} with your workspace’s subdomain.
Learn how to find your subdomain in Workspace subdomain.

Headers

X-Api-Key
string
default:your-api-key
required

Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.

Body

application/json
filename
string
required

Name the image carries, such as banner.png.

Example:

"banner.png"

byte_size
integer
required

Size of the image in bytes.

Example:

153

checksum
string
required

Base64-encoded MD5 digest of the image. Not the hex digest.

Example:

"1B2M2Y8AsgTpgAmY7PhCfg=="

content_type
enum<string>

Media type of the image. Inferred from the filename when omitted.

Available options:
image/png,
image/jpeg,
image/gif,
image/svg+xml
Example:

"image/png"

Response

Created - Upload reserved. Send the bytes to upload_url next.

signed_id
string

Identifier of the stored image. Pass it as background_image when you create or update a theme.

Example:

"eyJfcmFpbHMiOnsiZGF0YSI6MTIzfX0--abc123"

filename
string
Example:

"banner.png"

content_type
string
Example:

"image/png"

byte_size
integer

Size of the image in bytes.

Example:

153

checksum
string

Base64-encoded MD5 digest the upload was reserved with.

Example:

"1B2M2Y8AsgTpgAmY7PhCfg=="

upload_url
string

Short-lived URL to send the image bytes to with an HTTP PUT. Treat it as a credential and do not share or log it.

Example:

"https://acme.neetoform.com/rails/active_storage/disk/eyJfcmFpbHMi--abc123/banner.png"

upload_headers
object

Headers the PUT request must carry, exactly as given.

Example: