# Documents (permanent storage)

## Generates pre-signed URLs for downloading documents of a client.

> Generates pre-signed URLs for downloading documents.\<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 Manager API","version":"1.0.0"},"servers":[{"url":"https://api.rialtobridge.xyz/api/manager/v1","description":"Main (production) server for the Rialto Manager API"},{"url":"https://staging.api.rialtobridge.xyz/api/manager/v1","description":"Test (staging) server for the Rialto Manager API"},{"url":"http://localhost:3002/api/manager/v1","description":"Development server for the Rialto Manager 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":{"/clients/{clientId}/documents/request-batch-download":{"post":{"summary":"Generates pre-signed URLs for downloading documents of a client.","description":"Generates pre-signed URLs for downloading documents.<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":"generateClientPreSignedUrlForDownload","tags":["Documents (permanent storage)"],"parameters":[{"name":"clientId","in":"path","required":true,"description":"The client ID of the document owner.","schema":{"type":"string"}}],"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.","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":"Client or 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/manager-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.
