> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get upload download URL

> Return a temporary signed URL that downloads an upload's bytes, with its expiry time.

`uploadDownloadUrl(input: UploadInput!): DownloadUrl!`

Requires project.uploads.read.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`UploadInput!`](https://veryfront.com/docs/cloud/graphql/types/uploadinput) | Yes |

## Input fields

### input

[`UploadInput`](https://veryfront.com/docs/cloud/graphql/types/uploadinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Project UUID, slug or configured domain. |
| `uploadReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Upload UUID or project-relative upload path. |

## Response

Returns [`DownloadUrl!`](https://veryfront.com/docs/cloud/graphql/types/downloadurl). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `signedUrl` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Temporary signed URL that downloads the upload. |
| `expiresAt` | [`DateTime!`](https://veryfront.com/docs/cloud/graphql/types/datetime) | Expiry time, RFC 3339. Private uploads expire within 30 minutes, public ones within 24 hours. |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query UploadDownloadURL($input: UploadInput!) {
  uploadDownloadUrl(input: $input) {
    expiresAt
    signedUrl
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "uploadReference": "example"
  }
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.