There may come a time when you wish to upload a newly-created creative to the Kevel site so it can be stored on the site, instead of locally. The Upload Creative Image API call enables you to upload the creative to the Kevel site by:
- creating a new creative
- retrieve the ID for the creative
- create a
POSTrequest using your API credentials
- place the ID for the creative in the URL
Once you have made the request, Kevel will return a JSON creative object, which shows the path to the uploaded image in Kevel's CDN as an
You will need to attach the image as a form submission to the form-field
image. In curl, this is prefixed with an
@sign, followed by the path to the file.
If you choose to upload a creative to Kevel using the Upload Creative Image API call, you need to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:
POST- the type of API request being made.
https://api.kevel.co- the URL for the request.
v1- the API version.
creative- the API endpoint being called.
CreativeID- the ID of the creative
upload- the action you wish to take.