---
title: "Download a raw file through the platform"
method: POST
path: "/profile/raw/downloads/{download_id}/file"
tags: ["Profile Downloads"]
---

# Download a raw file through the platform

`POST /profile/raw/downloads/{download_id}/file`

## Request

- Base URL: `https://api.leakradar.io`
- URL: `https://api.leakradar.io/profile/raw/downloads/{download_id}/file`
- Auth: one of:
  - HTTP bearer
  - none
- TypeScript: <https://skmtc.dev/leakradar/apis/leakradar-io-api/docs/profile/raw/downloads/:download_id/file/post.ts> (a function with typed inputs; its response is checked against the schema)

Resolve a previously unlocked raw file download and redirect (307) to a short-lived download URL for the file.

## Path parameters

- `download_id` integer, required: ID of the download record (from GET /profile/raw/downloads).

## Query parameters

- `token` string, nullable: Optional one-time download token.

## Other responses

- `307`: Temporary redirect to a download URL for the raw file.
- `401`: Authentication is required.
- `403`: Account banned.
- `404`: Download not found or raw file unavailable.
- `410`: Download expired or previous attempt failed. Unlock the file again to regenerate access.
- `422`: Validation Error

## Changes

- **2026-09-01** `82a99c608e1a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leakradar/apis/leakradar-io-api/changes/profile/raw/downloads/:download_id/file/post.md)

---

[API](https://skmtc.dev/leakradar/apis/leakradar-io-api.md) - [All operations](https://skmtc.dev/leakradar/apis/leakradar-io-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leakradar/apis/leakradar-io-api/revisions/8dcd4b54cc4a?raw)
