Media

Upload a file

Upload raw image, video, or audio bytes directly as multipart/form-data. The file is stored in your media library and the record is returned; use its url in media[].url when creating a post. When the file part's type is missing or generic (application/octet-stream, text/plain), the type is detected from the file's bytes, then its filename extension. Max 250 MB; SVG and other active content is rejected. For a file already hosted at a public URL, prefer POST /v0/media/from-url.

post/v0/media/upload

Request

  • Base URL: https://api.schedulin.app
  • URL: https://api.schedulin.app/v0/media/upload
  • Auth: one of:
    • API key in header x-api-key
    • OAuth 2 (authorization code, authorization URL https://api.schedulin.app/oauth/authorize, token URL https://api.schedulin.app/oauth/token, scopes: media:write)

Response

OK

idstring required
urlstring required
namestring required
mimeTypestring required
widthinteger nullable required
heightinteger nullable required
durationinteger nullable required
createdAtstring date-time required
updatedAtstring date-time required
bucketstring required
keystring required
sizeinteger nullable required
altstring nullable required
thumbnailUrlstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.