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:writeoperationId
uploadMediaUploads 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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| file | törzs | multipart/form-data | yes | The 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
- Authentication: API key and scopes.
- Errors and limits: error responses and rate limits.
- All endpoints: full list.
Is something missing from this page? Email [email protected] or use the form on the Help page.