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

# Get resulted file for the task

`POST /file/{id}`

## Request

- Base URL: `https://pfi.regemini.com/api/v1`
- URL: `https://pfi.regemini.com/api/v1/file/{id}`
- Auth: API key in header `X-RFToken`

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.dev/recordedfuture/apis/payment-fraud-intelligence-api.md) - [All operations](https://skmtc.dev/recordedfuture/apis/payment-fraud-intelligence-api/llms.txt) - [OpenAPI document](https://skmtc.dev/recordedfuture/apis/payment-fraud-intelligence-api/revisions/6e927dcbef39?raw)
