Media

Upload media (multipart)

Stream a single file part to S3 and get back a med_… id to reference from post bodies as media: [{ kind, mediaId }].

The per-file ceiling is 200 MB. Optional ?profileId= lands the media inside that profile (org-wide keys only — profile-scoped keys are pinned to their profile).

post/v1/media

Request

  • Base URL: https://api.letmepost.dev
  • URL: https://api.letmepost.dev/v1/media
  • Auth: HTTP bearer

Query parameters

profileIdstring uuid

Place the upload under this profile. Org-wide keys only — profile-scoped keys must omit this and inherit their own profile.

Response

Upload succeeded.

idstring required
urlstring uri required
contentTypestring required
sizeBytesinteger required
sha256string required
createdAtstring date-time required

Example response

{
  "id": "med_01HY6X4AWBJM2K9F2PTQMR",
  "url": "https://media.letmepost.dev/prod/orgs/.../med_01HY6X4AWBJM2K9F2PTQMR.jpg",
  "contentType": "image/jpeg"
}

Changes

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