Assets
Upload Asset
Upload a new media file to the project
POST
Upload a new asset to the project. This endpoint accepts multipart/form-data for file uploads.
This endpoint uses
multipart/form-data, not JSON. The file is sent as binary data.Path Parameters
string
required
The unique identifier of the organization
string
required
The unique identifier of the project
Request Body
file
required
The file to upload. Supported formats include images (JPEG, PNG, GIF, WebP, AVIF), videos (MP4, MOV, WebM), and documents (PDF).
string
JSON string containing metadata object. Will be parsed and stored with the asset.
string
JSON string array of tag IDs to associate with the asset.
Response
Returns the created Asset object.Asset
The newly created asset object with generated ID and CDN URL