# uploadDownloadUrl

```graphql
query UploadDownloadUrl($input: UploadInput!) {
  uploadDownloadUrl(input: $input) {
    signedUrl
    expiresAt
  }
}
```

Return a temporary signed URL that downloads an upload's bytes, with its expiry time. Requires project.uploads.read.

## Arguments

| Name                     | Type         | Required | Description                                  |
| ------------------------ | ------------ | -------- | -------------------------------------------- |
| `input`                  | UploadInput! | Yes      |                                              |
| `input.projectReference` | String!      | Yes      | Project UUID, slug or configured domain.     |
| `input.uploadReference`  | String!      | Yes      | Upload UUID or project-relative upload path. |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "uploadReference": "string"
  }
}
```

## Responses

| Status | Description                                 |
| ------ | ------------------------------------------- |
| 200    | The DownloadUrl! in data.uploadDownloadUrl. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query UploadDownloadUrl($input: UploadInput!) {\n  uploadDownloadUrl(input: $input) {\n    signedUrl\n    expiresAt\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "uploadReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "uploadDownloadUrl": {
      "signedUrl": "https://example.com",
      "expiresAt": "2026-01-01T00:00:00Z"
    }
  }
}
```
