---
title: "Import media from a URL: POST /upload-from-url | Posty dokumentáció"
description: "Médiafájl behúzása nyilvános URL-ről a médiatárba."
canonical: https://posty.hu/en/docs/api/endpoints/media-url
source: https://posty.hu/en/docs/api/endpoints/media-url.md
---

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

| 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" }'
```

Kód másolása

## 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](https://posty.hu/en/docs/api/authentication): API key and scopes.
- [Errors and limits](https://posty.hu/en/docs/api/errors): error responses and rate limits.
- [All endpoints](https://posty.hu/en/docs/api/endpoints): full list.

Documentation pages

Is something missing from this page? Email [norbert@posty.hu](mailto:norbert@posty.hu) or use the form on the [Help](https://posty.hu/en/help) page.
