Media

Create a device upload link

Returns a short-lived URL to a page where the user uploads files from their device (or a pasted attachment) straight into the media library. Hand the URL to the user; once they've uploaded, call GET /v0/media (list media, newest first) and reference the returned url when creating a post. Use this whenever the file isn't already at a public URL.

post/v0/media/upload-link

Request

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

expiresInHoursinteger

Response

OK

urlstring required
expiresAtstring date-time required

Changes

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