---
title: "Fetch URL"
method: POST
path: "/v2/files/fetch"
tags: ["v2"]
---

# Fetch URL

`POST /v2/files/fetch`

Use this API method to fetch a file(s) from a URL via HTTP and save it to your Sirv account. This can be any URL, either public or private (via HTTP authentication). In the url parameter, enter the full URL of the remote file. In the filename parameter, enter the folder path and filename where it should be saved e.g. /path/to/folder/new-filename.jpg. If the folder path does not already exist in your Sirv account new folder(s) will be created.

## Request body

- Model24[]
  - `url` string, required
  - `filename` string, required
  - `auth` Model23
    - `username` string
    - `password` string
  - `wait` boolean

## Response `200`

Successful

---

[API](https://skmtc.dev/sirv/apis/api-documentation.md) · [All operations](https://skmtc.dev/sirv/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sirv/api-documentation/revisions/80ff016d7d3a/schema)
