Media
Create an upload URL
Changed onCreate a one-time upload URL, for code that cannot send the API key with the upload, such as an AI assistant's code sandbox. POST the file as multipart file to upload_url (POST /media/upload-by-token) within 10 minutes; the URL works once. The MCP server's upload tool uses this flow. Requires the media:write scope.
post/media/create-upload-url
Request
- Base URLhttps://api.omnisocials.com/v1
- URLhttps://api.omnisocials.com/v1/media/create-upload-url
- AuthHTTP bearer
Response
The one-time upload URL and how to use it.
Example response
{
"upload_url": "https://api.omnisocials.com/v1/media/upload-by-token?upload_token=9f2c4e1ab07d",
"upload_token": "9f2c4e1ab07d",
"expires_in_seconds": 600,
"method": "POST",
"content_type": "multipart/form-data"
}Changes
- info
endpoint added
- info