# 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."}}}}}}
```
