Generate a download URL for a raw file
Return a short-lived URL that allows downloading a raw file. Either provide the sha256_original hash directly or specify both container_id and entry_path so the hash can be resolved.
You can pass parameters either as query string or in the JSON body. If both are provided, the JSON body values take precedence.
Request
- Base URLhttps://api.leakradar.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
SHA-256 of the original file (alternative to container_id + entry_path).
Container identifier (with entry_path, resolves the file hash).
Path of the entry inside the container.
Download URL lifetime in seconds (60–3600, default 900).
Request body
Optional JSON body with sha256_original, container_id, entry_path, expires_in. Example: {"sha256_original": "...", "container_id": 123, "entry_path": "path/to/file", "expires_in": 900}
Example request
{
"container_id": 123,
"entry_path": "db/users.txt",
"expires_in": 900
}Response
Download URL generated successfully.
Changes
No recorded changes to this operation across all 13 revisions of this API.