Assets

Upload

Upload one asset as multipart form data and add it to the authenticated workspace.

The endpoint accepts a binary part named file. Optional form fields can associate the asset with a collection and enable duplicate-image warnings.

Authentication: management API endpoints require a Clerk bearer token.https://api.vyso.io/v1/...

Endpoints

POST/v1/assets/upload

Upload an asset

  • Content-Type: multipart/form-data.
  • Required part: file.
  • Optional fields: collectionId and warnAboutDuplicateImages.
  • The current server limit is 50 MB by default and can be configured by the deployment.
curl -i -X POST https://api.vyso.io/v1/assets/upload -H "Authorization: Bearer $CLERK_SESSION_TOKEN" -F "file=@./hero.jpg" -F "warnAboutDuplicateImages=true"