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

# requestFileDownload

> Returns a signed link that downloads one file under its own name, valid for two hours. Expected failures come back in the payload's `errors` list, not as top-level GraphQL errors, each with a `code` naming the failure: `NotFoundError` when the tenant has no file with that id, or the file is marked broken.



**mutation** `requestFileDownload(input: RequestFileDownloadInput!): RequestFileDownloadPayload!`

## Arguments

**`input`**: `RequestFileDownloadInput!` (required)

## Returns

`RequestFileDownloadPayload!`

**`errors`**: `[RequestFileDownloadError!]`

---

**`fileDownload`**: `FileDownload`

## Examples

```graphql Mutation
mutation RequestFileDownload($input: RequestFileDownloadInput!) {
  requestFileDownload(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    fileDownload {
      expiresAt
      url
    }
  }
}
```

```json Variables
{
  "input": {
    "fileId": "value"
  }
}
```

```json Response
{
  "data": {
    "requestFileDownload": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "fileDownload": {
        "expiresAt": "value",
        "url": "string"
      }
    }
  }
}
```


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