Media

Complete an MCP local-file upload

Upload raw file bytes to the short-lived target returned by the MCP upload_media tool when called without a URL. Send the returned upload token as Authorization: Bearer … and the exact returned Content-Type. This endpoint does not accept a PostLake API key and is not called until upload_media has prepared a media id and target.

put/media/upload

Request

  • Base URL: https://api.postlake.dev
  • URL: https://api.postlake.dev/media/upload
  • Auth: bearerAuth (a scheme the document does not define)

Response

Uploaded; returns the MediaAsset whose id is ready for create_post

deletionState'deleting'

Cleanup is incomplete and can be retried. This upload cannot be used in new posts.

idstring required
urlstring uri required
contentTypestring required
sizeinteger required
createdAtstring date-time required
widthinteger

Pixel width. Images only, and absent when the header could not be read.

heightinteger

Pixel height. Images only, and absent when the header could not be read.

Changes

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