Upload Asset V2
The upload asset endpoint facilitates users in uploading assets to the platform. By providing the height and width of the image for image assets and an empty object {}
for audio and video assets, users will receive an upload URL to which they can make a PUT
request and attach the media to upload it. For more details click here. The uploaded asset will then be accessible at the URL received in the data object of the upload asset endpoint response.
V2 offers streamlined and precise attributes in requests and responses, making asset usage more efficient and simpler.
Make sure to upload media with certain formats to avoid failures.
Supported media formats:
- For video we support only
mp4
andwebm
- For audio we support only
mp3
Headers
API key needed to access our public endpoints. You can find yours under the 'Account' section of the website
Query Parameters
The type of asset to upload. This is image
by default
image
, video
, audio
Body
The approximate size of the image to be uploaded
Response
The error if the request was not successful
Was this page helpful?