Skip to main content
POST
/
v1
/
media
Upload media (multipart)
curl --request POST \
  --url https://api.letmepost.dev/v1/media \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": "<string>",
  "url": "<string>",
  "contentType": "<string>",
  "sizeBytes": 1,
  "sha256": "<string>",
  "createdAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.letmepost.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Mint an API key in the dashboard. See https://letmepost.dev/docs/authentication/.

Body

multipart/form-data
file
file
required

The file part.

Response

Upload succeeded.

id
string
required
Pattern: ^med_[0-9A-Za-z]{22}$
url
string<uri>
required
contentType
string
required
sizeBytes
integer
required
Required range: x >= 0
sha256
string
required
Pattern: ^[0-9a-f]{64}$
createdAt
string
required