Skip to the page

List images

The images of the workspace, copied from an address or uploaded, newest first, by status and search.

GET/v1/images
Needs the scopeimages:read

Query parameters

  • qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • afterstring

    The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.

  • beforestring

    The id of the first item you have. The answer ends with the item just before it. Give this or after, not both. Up to 64 characters.

  • statusstring

    Only images in this state: pending, ready or failed.

    One ofpendingreadyfailed

Returns

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"image"

    Always image.

  • data[].idstring

    The id of the image.

  • data[].urlstring | null

    The address the image is served at. Emails link it in place of source when the image was copied, and it is the address to write in an email when the image was uploaded. null until the image is ready.

  • data[].sourcestring

    Where 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.

  • data[].originstring

    How the image got here: address when it was copied from an address, upload when it was sent as a file.

    One ofaddressupload

  • data[].statusstring

    pending while it waits to be copied, ready once it is served, failed when it could not be copied. An uploaded image is ready at once.

    One ofpendingreadyfailed

  • data[].typestring | null

    The media type of the image: image/png, image/jpeg, image/gif or image/webp. null until it is ready.

    One ofimage/pngimage/jpegimage/gifimage/webp

  • data[].sizeinteger | null

    The size of the image in bytes, or null until it is ready.

  • data[].reasonstring | null

    Why the last try to copy it did not work, in words, or null.

  • data[].createdAtstring

    When the image was first seen.

  • data[].updatedAtstring

    When it was last copied or tried.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.