Media
Import media from a URL: POST /upload-from-url
Médiafájl behúzása nyilvános URL-ről a médiatárba.
Path
Method and path
POSThttps://api.posty.hu/public/v1/upload-from-url
Authorization
media:writeoperationId
uploadMediaFromUrlLoads the file into the media library from a public http or https URL, and returns the same response as a file upload.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| url | törzs | string | yes | The public URL to load the file from. |
Request
curl -X POST https://api.posty.hu/public/v1/upload-from-url \
-H "Authorization: psty_a_kulcsod" \
-H "Content-Type: application/json" \
-d '{ "url": "https://pelda.hu/kep.png" }'Important
- The download is protected: the server rejects internal network and local addresses. If the file is only reachable on your own network, upload it as a file.
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.