I use overleaf to edit latex documents. The overleaf platform has a feature to upload an image file, which can then be referenced and included in the latex document.
I'm able to manually upload images into the overleaf platform, and use/reference them successfully from my latex document, but I was wondering if there is a way to do the uploading programmatically via an API.
I think I might need to use https://github.com/overleaf/filestore but I'm not sure how to get started.
FYI: My main use case is to do this from Python, specifically a Google Colab notebook.
Unfortunately, the Overleaf API does not currently allow programmatic upload to existing projects. It's sole purpose is to provide links that can be used to start new projects by users who manually click specially crafted links. Instead, you probably want to look at one of Overleaf's sync options. Currently they offer Git/GitHub and Dropbox options. Once the sync is set up, you could add the files to those sources to allow Overleaf to pull them in.