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

# Download File by UID

> Download File (get file as a redirect to the S3 object) by UID.

<Warning>
  Declare a file as uploaded first by setting its status to Complete to have a possibility to download the file.
</Warning>

<Info>
  If a file is public then it's possible to download it without a session token.
</Info>

#### Path Parameters

<ParamField path="blob_uid" type="integer">File/blob identifier that should be taken from the response of the Create File request.</ParamField>

#### Headers

<ParamField header="QB-Token" type="string" required> A user session token. See [Authentication](/reference/authentication) page to learn more about the session token. </ParamField>

#### Responses

<AccordionGroup>
  <Accordion title="301">
    A successful response
  </Accordion>

  <Accordion title="400">
    An error response
  </Accordion>
</AccordionGroup>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET \
  -H "QB-Token: 2e80acd7f3d9c1e79312e0d1dafd6691ba012bba" \
  https://api.quickblox.com/blobs/9dc0d37c9be34c839ae3bcac4bbaace100/download.json
  ```
</RequestExample>

<ResponseExample>
  ```html 301 theme={null}
  <html>
    <body>You are being <a href="https://s3.amazonaws.com/qbprod/9dc0d37c9be34c839ae3bcac4bbaace100?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIY7KFM23XGXJ7R7A%2F20190915%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20190915T202045Z&amp;X-Amz-Expires=3600&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=2193b5418bc949f8ab5ac26d24a43ecc705ffbebb740689dfe304c636b9516e6">redirected</a>
    </body>
  </html>
  ```

  ```json 400 theme={null}
  {}
  ```
</ResponseExample>
