Endpoint
- Logos and product images
- PDFs and Word documents
- CSV or spreadsheet files
- Slide decks
- Video and audio files
Two Supported Patterns
Upload to a new tent
Usenew as the path parameter:
actual_tent_idasset_id
POST /v1/tents request.
Upload to an existing tent
If you already have atentId, attach more files to the same tent:
The upload endpoint only checks that the tent exists in your workspace. If you plan to use that
tent_id with POST /v1/tents, the tent must still have no generation yet.Request Format
Sendmultipart/form-data with a single field named file.
Request Example
Response Example
201 Created
File Limits
- Maximum file size:
4 MBper upload - Maximum referenced assets on create:
5 - One file per request
Supported Content Types
Images
image/pngimage/jpegimage/gifimage/svg+xmlimage/webpimage/x-iconimage/tiffimage/avif
Documents
application/pdfapplication/mswordapplication/vnd.openxmlformats-officedocument.wordprocessingml.documenttext/markdowntext/plainapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.ms-exceltext/csvapplication/vnd.ms-powerpointapplication/vnd.openxmlformats-officedocument.presentationml.presentation
Media
video/mp4video/webmvideo/quicktimeaudio/mpegaudio/wav
Common Errors
| Status | Cause |
|---|---|
400 Bad Request | Content-Type is not multipart/form-data |
400 Bad Request | Request body is missing |
400 Bad Request | No file field was provided |
400 Bad Request | File is larger than 4 MB |
400 Bad Request | Unsupported MIME type |
400 Bad Request | tentId is not new and is not a valid UUID |
401 Unauthorized | Missing or invalid bearer token |
404 Not Found | You referenced an existing tent that does not exist in your workspace |
Next Step
After uploading, callPOST /v1/tents and pass:
tent_id: theactual_tent_idasset_ids: an array of the returnedasset_idvalues
Next: Create Tents
Use your uploaded asset IDs in the tent creation request.