# Get a signed download URL for a published site file

> Get a short-lived signed download URL for a published site file.

GET

/sites/{api\_name}/file-download-urls/{path}/

Get a short-lived signed download URL for a published site file.

### Required Scopes

-   sites.read
    

### Request

Path Parameters

**api_name** string required

The unique api\_name of the site.

**Example:** employee\_portal

**path** string required

**Possible values:** `non-empty`

Exact case-sensitive bundle-relative path in the active bundle. URL-encode each segment and preserve slash separators.

**Example:** assets/app.js

## Responses

-   200
-   400
-   401
-   403
-   404

Signed download URL and file metadata

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**path** string required

Normalized file path in the active bundle.

**content_type** string required

MIME content type of the file.

**size_bytes** integer required

File size in bytes.

**sha256** string required

SHA-256 hash for verifying the integrity of downloaded bytes.

**download_url** string required

Short-lived signed URL. Send a GET directly to this URL to download the file.

**expires_in_seconds** integer required

Number of seconds the download URL is valid after it is issued.

```json
{
  "path": "string",
  "content_type": "string",
  "size_bytes": 0,
  "sha256": "string",
  "download_url": "string",
  "expires_in_seconds": 0
}
```

Invalid bundle-relative file path.

Authentication is required or the supplied credentials are invalid.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**ok** boolean required

Whether the request succeeded. Always false for an authentication error.

**Possible values:** \[false\]

**error** string required

A human-readable explanation of why authentication failed.

```json
{
  "ok": false,
  "error": "Incorrect authentication credentials."
}
```

The caller cannot view the site or lacks the required entitlement or scope.

The site, active bundle, or file does not exist.

Source: https://developer.rippling.com/documentation/rest-api/reference/file-download-url-sites

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
