Upload Asset
Uploads a new file to the system and stores it under the authenticated user's workspace. Supports images, documents, audio, and video files. Assets are available via a unique ID after upload.
https://api.cortado.com/v1/assets/upload
Request
This endpoint accepts multipart/form-data
with the file attached in the file
field. Optional fields allow tagging or grouping assets under specific categories. Authentication is required to ensure the user’s permission.
Body Parameters
Parameters | Type | Description |
---|---|---|
| file | The file to upload (image, video, etc.) |
| string | Optional label or category for the asset |
Based on the steps above, your code might look something like this. It brings together the key concepts covered — from setup and configuration to routing, authentication, or event handling. Feel free to adapt it to suit your specific use case.
Response
Returns the uploaded asset’s metadata including its unique ID, type, size, and access URL. Can be used immediately in other requests, views, or shared with clients via public access links.
Last updated on
Jul 25, 2025