Upload a file from an existing URL.
cURL
curl --request POST \ --url https://api.postiz.com/public/v1/upload-from-url \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "url": "https://example.com/image.png" } '
{ "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" }
Your Postiz API key
URL of the file to upload
File uploaded successfully
Unique file ID
File name
File URL
Was this page helpful?