---
title: "Post Ofac Batch"
method: POST
path: "/ofac/searches/batches"
tags: ["OFAC"]
---

# Post Ofac Batch

`POST /ofac/searches/batches`

Submit a CSV for batch OFAC search, no larger than 5MB.
Expects two columns with the headers `entity_name` and `reference_id`. Supports an optional `date_of_birth` column (YYYY-MM-DD format) with optional values. See sample template [here](https://storage.googleapis.com/osiris-public-assets-prod/schemas/ofac_batch_csv_example.csv)

## Query parameters

- `similarity_threshold` number — The similarity threshold for the OFAC search.

## Response `202`

Batch accepted for processing.

- 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

- `400` — Invalid request due to missing required headers, invalid file format, or invalid similarity threshold.
- `413` — The file is too large. Please upload a smaller file.
- `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)
