Media

Get presigned URL for media upload

Get a presigned URL to upload media files to storage. Returns upload URL and permanent file URL.

post/media/upload-url

Request

  • Base URL: https://socialrobot.io/api/v1
  • URL: https://socialrobot.io/api/v1/media/upload-url
  • Auth: API key in header x-api-key

Request body

filenamestring required

The original filename including extension

contentTypestring required

The MIME type that will be uploaded

Response

Upload URL generated successfully

presignedUrlstring required

The presigned URL for the media

keystring required

The storage key for the uploaded media

urlstring required

The public URL for the uploaded media

uploadMethod'PUT' required

The HTTP method used for upload

contentTypestring required

The MIME type that should be used for the upload

Changes

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