# Documents (permanent storage)

## Generates pre-signed URLs for downloading documents.

> Generates pre-signed URLs for downloading documents.\<br /> Only documents in permanent storage can be downloaded.\<br /> Each pre-signed URL is valid for 5 minutes.\<br /> See the \[S3 documentation]\(<https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html>) for more information on S3 pre-signed URLs.<br>

```json
{"openapi":"3.1.0","info":{"title":"Rialto API","version":"1.0.0"},"servers":[{"url":"https://api.rialtobridge.xyz/api/client/v1","description":"Main (production) server for the Rialto Client API"},{"url":"https://staging.api.rialtobridge.xyz/api/client/v1","description":"Test (staging) server for the Rialto Client API"},{"url":"http://localhost:3002/api/client/v1","description":"Development server for the Rialto Client API"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"RIALTO_API_KEY","in":"header"}},"requestBodies":{"PreSignedDownloadUrls":{"description":"The request body for generating pre-signed URLs for downloading documents.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","description":"The list of keys for which to generate pre-signed URLs.","items":{"type":"string"}}}}}}}}},"paths":{"/documents/request-batch-download":{"post":{"summary":"Generates pre-signed URLs for downloading documents.","description":"Generates pre-signed URLs for downloading documents.<br /> Only documents in permanent storage can be downloaded.<br /> Each pre-signed URL is valid for 5 minutes.<br /> See the [S3 documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html) for more information on S3 pre-signed URLs.\n","operationId":"generatePreSignedUrlForDownload","tags":["Documents (permanent storage)"],"requestBody":{"$ref":"#/components/requestBodies/PreSignedDownloadUrls"},"responses":{"201":{"description":"Pre-signed URLs for downloading documents.","content":{"application/json":{"schema":{"type":"object","properties":{"preSignedUrls":{"description":"The list of pre-signed URLs for downloading documents.","type":"array","items":{"type":"object","properties":{"key":{"description":"The key for the document in the permanent storage.","type":"string"},"filename":{"description":"The filename of the document.","type":"string"},"preSignedUrl":{"description":"The pre-signed URL for downloading the document.","type":"string"}}}}}}}}},"400":{"description":"Invalid request payload"},"401":{"description":"Invalid API key"},"404":{"description":"Document not found"},"500":{"description":"An unexpected error occurred."}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rialtobridge.xyz/client-api-reference/documents-permanent-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
