Is there a robust API for managing the media library?

I’m using the upload API to bulk upload dozens of images for a site from a script.

However, during testing, I’ve had to rerun the script multiple times, resulting in hundreds of duplicate images cluttering up the media library.

It would be nice if there were some robust API for managing the media library. A few key features would include:

  • Querying uploaded items by file name, content type, and uploaded at timestamp
  • Fetching an id for each item
  • Deleting items by id (or better yet, by query)

Does such an API exist? If not, please consider this a feature request :slight_smile:.

Hi @ersin, thanks for the feedback! We don’t currently have an API with the features you mention but I’ll share this feature request with our product team.

1 Like