Media

Create a presigned upload URL

Returns a presigned PUT URL. Upload by issuing an HTTP PUT of the raw file bytes to url with a Content-Type header matching contentType, then reference the returned key when creating a post.

post/v0/media/presign

Request

  • Base URL: https://api.schedulin.app
  • URL: https://api.schedulin.app/v0/media/presign
  • 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)

Request body

contentTypestring required
keystring required
sizeinteger
intent'post' | 'clip-source' | 'public-asset'

Response

OK

urlstring required
keystring required
method'PUT' required

Changes

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