Cloudinary media library and DAM features, allow you to manage and organize your media assets in any way you want. If you're using the Cloudinary module for Magento, you can leverage these media library capabilities, and then use the Product Catalog API to link media to Magento products.
In order to use the Product Catalog API, you'll need to follow the configuration instructions detailed here. Once the API is configured, you'll have an endpoint created specifically for your Magento environment, and an access token for authentication purposes. The structure of the endpoint is as follows -
The below snippet includes an example of using the Product Catalog API with cURL. If you'd like to run the command, you'll need to (1) set the "endpoint" value to the one created for your environment when you configured the API, (2) set the "bearer_token" value to the access token associated with that endpoint, and (3) set the desired product SKU in the endpoint.
Note that the "Run" button in the Replit snippet has been made redundant to avoid running the commands with incorrect values (endpoint, token, SKU). To run the commands, you can either fork the Replit and delete the ".replit" file or, copy the commands from "main.sh" to your terminal.
Notice: If you have the "Enable auto-upload" option enabled in your Cloudinary module's configuration (in Magento), and you wish to use the Product Catalog API, it is highly recommended to also enable the "Use Existing Cloudinary Folder" option, in order to prevent duplication of assets in your Cloudinary Media Library.