retrieve
Retrieves a specific image information to get information about the image, such as the image URL, the image size, or the image format.
retrieve(imageID: string, options?: RequestOptions): APIPromise<ImageObject>;
list
Retrieves a list of all the images created by the user. The images are returned in descending order of creation date, with the most recent images first in the list.
list(query: ImageListParams | null | undefined = {}, options?: RequestOptions): APIPromise<ImageListResponse>;
delete
Deletes an image by its unique identifier, deleting all the data associated with the image, and making it unavailable for future requests.
delete(imageID: string, options?: RequestOptions): APIPromise<void>;
publish
Makes a private image public, so that it can be accessed by anyone. Publishing an image adds it to a CDN, allowing it to be accessed faster and more efficiently.
publish(imageID: string, options?: RequestOptions): APIPromise<ImageObject>;
unpublish
Unpublishes an image that was previously published using the Publish Image endpoint. This will remove the image from the CDN and make it private again.
unpublish(imageID: string, options?: RequestOptions): APIPromise<ImageObject>;
download
Downloads an image by its unique identifier. The image is returned as a binary response.
download(imageID: string, options?: RequestOptions): APIPromise<Response>;