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:write
operationId
uploadMediaFromUrl

Loads the file into the media library from a public http or https URL, and returns the same response as a file upload.

Parameters

NameLocationTypeRequiredDescription
urltörzsstringyesThe 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

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