Media

Upload media

Upload media, either as raw binary with Content-Type set, or as multipart/form-data with a file part. For images the response includes the pixel dimensions, which are checked against each network's limits at publish time.

post/v1/media

Request

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

Response

Created

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.