Add media from a URL
create_media_from_urlAdd a file to Pitchlane by having it fetched from a public https URL: a pitch video, an outro, a page video or a page image. pitch_video: the recorded pitch (video with audio). outro_video: a clip played after the pitch. page_video: a clip shown as a page. page_image: a picture shown as a page. The file is fetched and checked in the background: the answer has status fetching; poll get_media until ready or failed. Its id can be used in create_campaign or update_campaign straight away. The URL must be a direct link to the file (not a page that shows it) and deliver it within eight minutes; at most 1 GiB. For a file that is not at a public URL, use create_media_upload.
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": {
"type": "<type>",
"source_url": "<source_url>"
},
"name": "create_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | What the file is for. It cannot be changed later. | |
| filename | No | A name for the file, for the user's reference. | |
| source_url | Yes | A direct https link to the file, e.g. `https://cdn.example.com/pitch.mp4`. | |
| content_type | No | The file's MIME type, e.g. `video/mp4` or `image/png`. Needed only when the URL does not end in a file extension. |