> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-unsw-v6.advance-uac.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-unsw-v6.advance-uac.com/_mcp/server.

# Get a download URL for a supporting document

GET https://institution/applications/{id}/documents/{documentId}/download

Returns a short-lived presigned S3 URL to download the document bytes directly. 404 if the application or document is unknown.

Reference: https://docs-unsw-v6.advance-uac.com/unsw-advance-institution-api/institution/applications/id/documents/get-a-download-url-for-a-supporting-document

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /institution/applications/{id}/documents/{documentId}/download:
    get:
      operationId: Get a download URL for a supporting document
      summary: Get a download URL for a supporting document
      description: >-
        Returns a short-lived presigned S3 URL to download the document bytes
        directly. 404 if the application or document is unknown.
      tags:
        - documents
      parameters:
        - name: id
          in: path
          description: '(Required) '
          required: true
          schema:
            type: string
        - name: documentId
          in: path
          description: '(Required) '
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/institution_applications_{id}_documents_Get
                  a download URL for a supporting document_Response_200
servers:
  - url: https:/
    description: https://{baseurl}
components:
  schemas:
    institution_applications_{id}_documents_Get a download URL for a supporting document_Response_200:
      type: object
      properties:
        url:
          type: string
          format: uri
      required:
        - url
      title: >-
        institution_applications_{id}_documents_Get a download URL for a
        supporting document_Response_200
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "url": "https://TWAHzsjTtxumnTrBdqPDgCi.frkf-mUzdo0RWjEh0weaqbxmFkGrEs.Ndr8z2G-IM,TCXfhrquGpRZ"
}
```

**SDK Code**

```python institution_applications_{id}_documents_Get a download URL for a supporting document_example
import requests

url = "https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript institution_applications_{id}_documents_Get a download URL for a supporting document_example
const url = 'https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go institution_applications_{id}_documents_Get a download URL for a supporting document_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby institution_applications_{id}_documents_Get a download URL for a supporting document_example
require 'uri'
require 'net/http'

url = URI("https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java institution_applications_{id}_documents_Get a download URL for a supporting document_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php institution_applications_{id}_documents_Get a download URL for a supporting document_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp institution_applications_{id}_documents_Get a download URL for a supporting document_example
using RestSharp;

var client = new RestClient("https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift institution_applications_{id}_documents_Get a download URL for a supporting document_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/institution/applications/925dDBCd-4D47-EF63-561a-89a470DB6E99/documents/925dDBCd-4D47-EF63-561a-89a470DB6E99/download")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```