---
title: "Get resulted file for the task"
method: POST
path: "/file/{id}"
tags: ["file"]
---

# Get resulted file for the task

`POST /file/{id}`

Download the completed results of a PFI bulk data task in NDJSON or CSV format.

## Path parameters

- `id` string, required

## Request body

- FileRequest — Request to download a specific data file. For JSON format, columns may be an empty array to return all fields; for CSV format, columns are required.
  - `columns` string[]
  - `format` 'json' | 'csv'

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `425` — Too Early
- `429` — Too Many Requests

---

[API](https://skmtc.net/recordedfuture/apis/alert-api.md) · [All operations](https://skmtc.net/recordedfuture/apis/alert-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/recordedfuture/alert-api/revisions/c8c2f68d8b60/schema)
