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

# Get Presigned URLs

> Generates presigned URLs for one or more documents. These URLs can be used to securely download documents without re-authentication.

### Request Format

**JSON Body**

```http
POST /api/documents/presigned_urls
Content-Type: application/json
X-API-Key: <api_key>

{
  "document_ids": [92343]
}
```

### Parameters

| Parameter     | Type      | Required | Location | Description                                |
| ------------- | --------- | -------- | -------- | ------------------------------------------ |
| document\_ids | Number\[] | Yes      | Body     | Array of document IDs to generate URLs for |
| api\_key      | String    | Yes      | Header   | API key                                    |

<Note>document\_ids must be provided as an array, even if only one document ID is requested.</Note>

<RequestExample>
  ```bash cURL
  curl -X POST "https://api.clevrscan.com/api/documents/presigned_urls" \
    -H "X-API-Key: <api_key>" \
    -H "Content-Type: application/json" \
    -d '{
      "document_ids": [92343]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Sample Response
  {
    "presigned_urls": {
      "92343": {
        "expires_in": 3600,
        "presigned_url": "https://d2zlfym0sm19sj.cloudfront.net/users/297/Document_4_page_19.png"
      }
    }
  }
  ```
</ResponseExample>
