---
title: "Create lien filings in batch"
method: POST
path: "/v1/businesses/{business_id}/liens/batch"
tags: ["liens"]
---

# Create lien filings in batch

`POST /v1/businesses/{business_id}/liens/batch`

## Request

- Base URL: `https://api.middesk.com`
- URL: `https://api.middesk.com/v1/businesses/{business_id}/liens/batch`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/middesk/apis/middesk-api/docs/v1/businesses/:business_id/liens/batch/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates multiple lien filings in a single request. Each entry is processed independently. Successful entries return lien objects, failed entries return per-item errors.

## Path parameters

- `business_id` string, required

## Request body

- object
  - `liens` LiensLienBatchRequestParamLiensItem[], required: Array of lien filing entries. Each entry creates one lien. Each entry must have a unique state. Maximum 50 entries per request.
    - `state` 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY', required: State where the lien will be filed
    - `debtors` LiensLienBatchRequestParamLiensItemDebtorsItem[], required: Array of debtor details
      - `organization_name` string: Debtor organization name
      - `tin` string: Tax identification number (required for certain states)
      - `addresses` LienAddress[]
        - `address_line1` string
        - `address_line2` string
        - `city` string
        - `state` 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY'
        - `postal_code` string
    - `secured_parties` LiensLienBatchRequestParamLiensItemSecuredPartiesItem[]: Secured party details for this entry. Falls back to account defaults if not provided.
      - `organization_name` string
      - `role` 'assignee' | 'assignor'
      - `addresses` LienAddress[]
        - `address_line1` string
        - `address_line2` string
        - `city` string
        - `state` 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY'
        - `postal_code` string
    - `collateral` string: Collateral description. Falls back to account default if not provided.
    - `loan_principal_amount_cents` integer: Loan principal amount in cents
    - `packet_number` string: Packet number for the filing. Auto-generated if not provided. Cannot contain underscores.
    - `alternative_designation` string: Alternative designation (for Tennessee filings)

## Response `200`

batch processed

- unknown

## Other responses

- `422`: batch validation failed

## Changes

- **2026-09-17** `4c9cd4e834ba`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `bearer_auth` was added to the API
- **2026-09-12** `668373c892ce`: 1 info
  - api operation id `createLienFilingsInBatch` removed and replaced with `liens_createLienFilingsInBatch`
- **2026-08-22** `b496a7929e98`: 3 breaking
  - added the pattern `^[^_]*$` to the request property `liens/items/packet_number`
  - added the pattern `^\d{5}(?:[-\s]\d{4})?$` to the request property `liens/items/debtors/items/addresses/items/postal_code`
  - added the pattern `^\d{5}(?:[-\s]\d{4})?$` to the request property `liens/items/secured_parties/items/addresses/items/postal_code`
- **2026-07-31** `d142de33085b`: 1 breaking, 1 info
  - removed the required property `error` from the response with the `422` status
  - added the required property `errors` to the response with the `422` status

[Operation history](https://skmtc.dev/middesk/apis/middesk-api/changes/v1/businesses/:business_id/liens/batch/post.md)

---

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