Get a signed media upload URL
get_upload_urlReturns a signed PUT URL to upload a media file directly to storage, and a 24-hour read URL to pass in mediaPaths when calling create_post. contentType is optional — it is inferred automatically from the filename extension. Pass platform to get an immediate error if the file type is unsupported before uploading. IMPORTANT: when uploading, you MUST use the exact headers returned in putHeaders — the upload URL is signed and will reject (403) any request with different headers. Step 1: call this tool. Step 2: HTTP PUT the raw file bytes to uploadUrl using exactly the headers in putHeaders (no auth header). Step 3: if PUT succeeds (2xx), pass url in mediaPaths of create_post. If PUT fails, do not call create_post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| filename | Yes | ||
| platform | No | ||
| contentType | No |