Cloudinary offers several Client SDKs for integrating your application with Cloudinary and calling our APIs.
It’s also possible to call our API endpoints manually or using other tools, and the HTTPS URL for each API endpoint can be found in our API documentation:
https://cloudinary.com/documentation/admin_api#overview
https://cloudinary.com/documentation/image_upload_api_reference#overview
The base URL for uploading assets or performing other operations via the API depends on the cloud name of your Product Environment, which is a unique identifier for that environment, and is used to access the assets stored there.
For example, the base URL format for image uploads is:
https://api.cloudinary.com/v1_1/{cloud_name}/image/upload
To find your cloud name, follow these steps:
- Log in to your Cloudinary account at https://console.cloudinary.com/
- Navigate to the API Keys section in the Product Environment Settings of the dashboard.
- Your cloud name will be displayed there
For example, if your cloud name is `demo_cloudinary`, the base URL for image uploads would be:
https://api.cloudinary.com/v1_1/demo_cloudinary/image/upload
You can use this base URL to upload images to Cloudinary via the API by sending an HTTP POST request with the image data and any desired upload parameters.
Most API calls will also require authentication based on the API key and secret for your Cloudinary product environment, either sent directly in the request headers or used to create a signature to authenticate a request. These will also be found in the API Keys section of the Console.
For more detailed information on uploading images via the API, please see the Upload API reference documentation: https://cloudinary.com/documentation/image_upload_api_reference
There is also a Cloudinary DevHints video that demonstrates the process of finding your account details that form your Cloudinary API Base URL: https://www.youtube.com/watch?v=ok9mHOuvVSI
Comments
0 comments
Please sign in to leave a comment.