Add image
Copies the image at an address and answers with where the copy is served. Emails then link the copy in place of that address. The same address twice answers with the copy that is there, and an image that failed is tried again.
/v1/imagesBody parameters
urlstringRequiredThe public
https://address of the image: a PNG, JPEG, GIF or WebP file of 5 MB at most. Up to 2,048 characters.
Returns
object"image"Always
image.idstringThe id of the image.
urlstring | nullThe address the image is served at. Emails link it in place of
sourcewhen the image was copied, and it is the address to write in an email when the image was uploaded.nulluntil the image isready.sourcestringWhere the image came from: the address it was copied from, as it is written in your emails, or the name of the file that was uploaded.
originstringHow the image got here:
addresswhen it was copied from an address,uploadwhen it was sent as a file.One of
addressuploadstatusstringpendingwhile it waits to be copied,readyonce it is served,failedwhen it could not be copied. An uploaded image isreadyat once.One of
pendingreadyfailedtypestring | nullThe media type of the image:
image/png,image/jpeg,image/giforimage/webp.nulluntil it isready.One of
image/pngimage/jpegimage/gifimage/webpsizeinteger | nullThe size of the image in bytes, or
nulluntil it isready.reasonstring | nullWhy the last try to copy it did not work, in words, or
null.createdAtstringWhen the image was first seen.
updatedAtstringWhen it was last copied or tried.