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

# Get Ofac Batch

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

Get the status of an OFAC batch.

## Path parameters

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

## Response `200`

Retrieved status of the OFAC batch.

- V1OFACBatchResponse
  - `id` string, uuid, required — The unique identifier of the OFAC batch.
  - `name` string, required — The name of the ofac batch file
  - `similarity_threshold` number, required — The similarity threshold for the OFAC search
  - `state` 'PENDING' | 'EXECUTING' | 'COMPLETED' | 'FAILED' | 'CANCELLED', required
  - `entities_count` integer, required — Total number of entities in the batch
  - `valid_entities_count` integer, required — Total number of valid entities in the batch
  - `entities_with_match_count` integer, required — Total number of entities with a match in the batch
  - `invalid_entities_count` integer, required — Total number of invalid entities in the batch
  - `created_at` string, date-time, required — When the ofac batch was created
  - `updated_at` string, date-time, nullable — When the ofac batch was updated

## Other responses

- `404` — The OFAC batch does not exist
- `422` — Validation Error

---

[API](https://skmtc.net/baselayer/apis/baselayer-api-service.md) · [All operations](https://skmtc.net/baselayer/apis/baselayer-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baselayer/baselayer-api-service/versions/0cc89938bc26/schema)
