---
title: "Get Ofac Batch File"
method: GET
path: "/ofac/searches/batches/{batch_id}/download"
tags: ["OFAC"]
---

# Get Ofac Batch File

`GET /ofac/searches/batches/{batch_id}/download`

## Request

- Base URL: `https://api.baselayer.com`
- URL: `https://api.baselayer.com/ofac/searches/batches/{batch_id}/download`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/baselayer/apis/baselayer-api-service/docs/ofac/searches/batches/:batch_id/download/get.ts> (a function with typed inputs; its response is checked against the schema)

Download the resulting OFAC batch file in .jsonl format.
See example output file [here](https://storage.googleapis.com/osiris-public-assets-prod/schemas/ofac_batch_result_example.jsonl)

## Path parameters

- `batch_id` string, uuid, required: The unique identifier of the OFAC batch to download.

## Other responses

- `307`: Download the OFAC batch file.
- `404`: The OFAC batch does not exist or file is not available.
- `422`: Validation Error

---

[API](https://skmtc.dev/baselayer/apis/baselayer-api-service.md) - [All operations](https://skmtc.dev/baselayer/apis/baselayer-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/baselayer/apis/baselayer-api-service/revisions/0cc89938bc26?raw)
