Assets
List uploaded images
GET/v1/assets
Requires an API key with the templates:read scope. About keys and scopes
The images uploaded to this workspace for email content, newest first; q matches part of the file name. Place one in a template by its url.
Query parameters
limitintegeroptionalmin > 0 · max 100 · default
20cursorstringoptional1–2048 characters
qstringoptionalCase-insensitive substring of the file name.
1–200 characters
Returns
Returns 200 OK with a list of Asset objects in data, and the next page's cursor in meta (see pagination). 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