Start a file upload
create_uploadGet a URL to PUT a local file to, so import_model and import_2d can take it WITHOUT the bytes passing through your context — base64 costs roughly 380,000 tokens per megabyte and most clients cannot produce it at all. PUT the file to uploadUrl with the headers given, then call the importer with ticketId. If you cannot PUT, give the person handoffUrl and they upload it in their browser; poll the importer until it stops answering awaiting_upload. Note the TWO expiries: uploadUrl dies in minutes, the ticket lasts a day — pass ticketId back here for a fresh URL rather than starting over.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | Size of the file you are about to send. Refused now if over the limit. | |
| format | No | Required unless refreshing a ticket. | |
| ticketId | No | An unfilled ticket whose uploadUrl expired. Re-issues the URL only. |