Media

Upload media: POST /upload

Kép vagy videó feltöltése a médiatárba, legfeljebb 1 GB.

Path

Method and path
POSThttps://api.posty.hu/public/v1/upload
Authorization
media:write
operationId
uploadMedia

Uploads an image or video to the workspace media library. The response includes the ID and the hosted URL, which you pass when you create the post.

The server deduplicates files with identical content, so sending the same image every day does not create another row or stored object.

Parameters

NameLocationTypeRequiredDescription
filetörzsmultipart/form-datayesThe file. Images up to 10 MB (JPEG, PNG, GIF, WEBP, AVIF, BMP, TIFF), video up to 1 GB (MP4).

Request

curl -X POST https://api.posty.hu/public/v1/upload \
  -H "Authorization: psty_a_kulcsod" \
  -F "[email protected]"

Response

Example response structure. The OpenAPI document contains the authoritative schema for each field.

{
  "id": "cmd1a2b3c4d5",
  "path": "https://uploads.posty.hu/2026/09/kep.png"
}

Related

Is something missing from this page? Email [email protected] or use the form on the Help page.