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

# Download media

> Download document images and selfies from a result.

Files are not included in the result JSON. The result contains temporary links (`uri`) that you download separately.

| Location | Content |
| - | - |
| `application.documents[].files[].uri` | Submitted document images |
| `application.selfie.files[].uri` | Submitted selfie media |
| `servicesResults.docCheck.extracted.images[]` | Images by `kind`: `front`, `back`, `barcode`, `portrait`, `signature`, `ghost-portrait`, `mrz` |
| `servicesResults.poa.files`, `servicesResults.bank.files` | `original` and `snapshot` |

## Download

Request the full URI, including its signed query parameters (`t` and `s`).

A link is valid for 5 minutes after it's generated, that is, after the API response or webhook that contains it is created. Until then, it works on its own, without a header. Treat it as a secret: anyone who has the link can download the file while it's valid.

```bash theme={null}
curl --output portrait.jpg \
  "https://partner.sb.getid.dev/files/proxy/images/...?t=...&s=..."
```

After the link expires, the request needs a key header: `x-sdk-key`, `x-api-key` or `apikey`. Each one accepts your SDK key or your API key. A missing or wrong key returns `401` (`sdkkey_invalid`).

```bash theme={null}
curl --output portrait.jpg \
  --header "x-api-key: ${CHECKIN_API_KEY}" \
  "https://partner.sb.getid.dev/files/proxy/images/...?t=...&s=..."
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.