Upload a media file using multipart form data.
cURL
curl --request POST \ --url https://api.postiz.com/public/v1/upload \ --header 'Authorization: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "id": "e639003b-f727-4a1e-87bd-74a2c48ae41e", "name": "image.png", "path": "https://uploads.postiz.com/image.png", "organizationId": "85460a39-6329-4cf4-a252-187ce89a3480", "createdAt": "2024-12-14T08:18:54.274Z", "updatedAt": "2024-12-14T08:18:54.274Z" }
id
path
image
{ "image": [ { "id": "returned-id", "path": "returned-path-url" } ] }
Your Postiz API key
The file to upload
File uploaded successfully
Unique file ID
File name
File URL
Was this page helpful?