Assets
Upload an image
POST/v1/assets
Requires an API key with the templates:write scope. About keys and scopes
Uploads one PNG, JPEG or GIF of at most 2 MB for image blocks, as a multipart file part. The returned url is public and stable, so it can go straight into a template.
Returns
Returns 201 Created with a Asset in data. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
filenamestringrequiredurlstringrequiredThe public address to use as an image
src.uri
mimeTypestringrequiredThe image format.
one of
image/png,image/jpeg,image/gifbytesintegerrequiredFile size in bytes.
min > 0 · max 9007199254740991
widthintegerrequiredWidth in px.
min > 0 · max 9007199254740991
heightintegerrequiredHeight in px.
min > 0 · max 9007199254740991
createdAtstringrequireddate-time