Start uploading a video from your own files
createUploadStart uploading a video from your own files. For an ad that isn’t on the web yet: a public https link to the file works as well and needs no upload. This answers with a signed link for one PUT of the file, at most 200 MB, within 15 minutes (upload.curl is the whole command, for an agent with a shell); no key goes with it. Then completeUpload gives the link a study takes. We keep the file. Once the account has added funds its link is public to anyone who holds it; until then it holds 3 at most, playing only in its signed-in browser.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contentType": "<contentType>"
},
"name": "createUpload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentType | Yes | The file’s type. The PUT must send the same one. | |
| idempotencyKey | No | Any unique text, sent again unchanged when you retry this call: a retry gets the first answer back and spends nothing twice. Left out, one is made for this call and the answer says which, so a retry can use it. |