Posts

Create a presigned media upload url

Returns a one-time presigned upload url, a media_id, and the headers to send with it. PUT the raw bytes to the url, then attach the media_id with media_ids on POST /v1/posts/drafts or PATCH /v1/posts/drafts/{id}.

post/v1/posts/media/upload-url

Request

  • Base URL: https://api.taplio.com
  • URL: https://api.taplio.com/v1/posts/media/upload-url
  • Auth: HTTP bearer

Request body

content_typestring required
filenamestring

Example request

{
  "content_type": "image/png",
  "filename": "chart.png"
}

Response

Presigned upload url and media id.

expires_innumber required
headersobject required
media_idstring required
public_urlstring required
upload_urlstring required

Changes

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