How to Upload Assets to Cloudimage Asset Library via API?

Learn how to upload files to the Cloudimage Asset Library using the API

The Cloudimage Asset Library supports file uploads both manually through the UI and programmatically via API. This article explains how to upload assets using the API, the process works the same way as uploading via the DAM/Filerobot API. Documentation Link - https://developers.scaleflex.com

Before You Begin :

Make sure you have the following most important things ready :

  • Cloudimage token - Your project identifier, visible in your Cloudimage console. 

  • Cloudimage Library API key - Used to authenticate your API requests. 

About the API Endpoint :

When using the Cloudimage Asset Library API, you will notice that the endpoint uses the domain api.filerobot.com. This is expected, the Cloudimage Asset Library is built on top of DAM, and both products share the same API endpoints under the hood.

Note: You do not need a separate Filerobot account. Your Cloudimage token and API key are all you need to authenticate and use these endpoints.


Example Curl :

curl --location 'https://api.filerobot.com/{Cloudimage token/project}/v5/files?folder=%test' \
--header 'Content-Type: application/json' \
--header 'X-Filerobot-Key: {Your API key}' \
--data '{
    "files_urls": [
        {
            "url": "http://sample.li/bag.jpg"
        }
    ]
}'

Once POST request is made, you should see the image in your Cloudimage Asset Library. You can verify this by navigating to your library in the Cloudimage console. Similarly, you can use other HTTP methods and API endpoints as per the documentation.

If you have any questions or face any issues feel free to contact our Support team at hello@scaleflex.com, mentioning your:

  • Token
  • Issue detail in short
  • Steps for reproducing the issue.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.