Middesk subpackage_liens API
The subpackage_liens API from Middesk — 2 operation(s) for subpackage_liens.
The subpackage_liens API from Middesk — 2 operation(s) for subpackage_liens.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/middesk-subpackage-liens-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Middesk subpackage_actions Subpackage Liens API
version: 1.0.0
servers:
- url: https://api.middesk.com
description: Default
tags:
- name: subpackage_liens
paths:
/v1/businesses/{business_id}/liens:
get:
operationId: list-liens
summary: List liens for a business
tags:
- subpackage_liens
parameters:
- name: business_id
in: path
description: Business ID
required: true
schema:
type: string
- name: Authorization
in: header
description: Bearer authentication
required: true
schema:
type: string
responses:
'200':
description: liens found
content:
application/json:
schema:
description: Any type
'404':
description: business not found
content:
application/json:
schema:
$ref: '#/components/schemas/type__ErrorResponse'
post:
operationId: create-lien
summary: Create a lien for a business
tags:
- subpackage_liens
parameters:
- name: business_id
in: path
description: Business ID
required: true
schema:
type: string
- name: Authorization
in: header
description: Bearer authentication
required: true
schema:
type: string
responses:
'201':
description: lien created using account defaults
content:
application/json:
schema:
description: Any type
'400':
description: invalid secured parties configuration
content:
application/json:
schema:
$ref: '#/components/schemas/type__ErrorResponse'
'403':
description: identity or verify order required
content:
application/json:
schema:
$ref: '#/components/schemas/type__ErrorResponse'
'404':
description: business not found
content:
application/json:
schema:
$ref: '#/components/schemas/type__ErrorResponse'
requestBody:
content:
application/json:
schema:
type: object
properties:
state:
$ref: '#/components/schemas/type_liens_LienRequestParamState'
description: State where the lien will be filed. Use `state` for a single state or `states` for multiple states. If both are provided, `states` takes precedence.
states:
type: array
items:
$ref: '#/components/schemas/type_liens_LienRequestParamStatesItem'
description: Array of states to file the lien in. Creates one lien per state. Returns a list response. Either `state` or `states` is required.
debtors:
type: array
items:
$ref: '#/components/schemas/type_liens_LienRequestParamDebtorsItem'
description: Array of debtor details
secured_parties:
type: array
items:
$ref: '#/components/schemas/type_liens_LienRequestParamSecuredPartiesItem'
description: Array of secured party details (optional - uses account defaults if not provided)
secured_party:
$ref: '#/components/schemas/type_liens_LienRequestParamSecuredParty'
description: Single secured party (alternative to secured_parties array)
collateral:
type: string
description: Collateral description (optional - uses account default if not provided)
loan_principal_amount_cents:
type: integer
description: Loan principal amount in cents
packet_number:
type: string
description: Packet number for the filing (optional - auto-generated if not provided)
alternative_designation:
type: string
description: Alternative designation (for Tennessee filings)
required:
- debtors
/v1/businesses/{business_id}/liens/batch:
post:
operationId: create-lien-filings-in-batch
summary: Create lien filings in batch
description: Creates multiple lien filings in a single request. Each entry is processed independently. Successful entries return lien objects, failed entries return per-item errors.
tags:
- subpackage_liens
parameters:
- name: business_id
in: path
description: Business ID
required: true
schema:
type: string
- name: Authorization
in: header
description: Bearer authentication
required: true
schema:
type: string
responses:
'200':
description: batch processed
content:
application/json:
schema:
description: Any type
'422':
description: batch validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/type__CreateLienFilingsInBatchRequestUnprocessableEntityErrorBody'
requestBody:
content:
application/json:
schema:
type: object
properties:
liens:
type: array
items:
$ref: '#/components/schemas/type_liens_LienBatchRequestParamLiensItem'
description: Array of lien filing entries. Each entry creates one lien. Each entry must have a unique state. Maximum 50 entries per request.
required:
- liens
components:
schemas:
type__ErrorResponseErrorsItem:
type: object
properties:
message:
type: string
required:
- message
title: ErrorResponseErrorsItem
type_liens_LienBatchRequestParamLiensItemState:
type: string
enum:
- 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
description: State where the lien will be filed
title: LienBatchRequestParamLiensItemState
type__LienAddressState:
type: string
enum:
- 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
title: LienAddressState
type_liens_LienRequestParamSecuredParty:
type: object
properties:
organization_name:
type: string
description: Secured party organization name
role:
$ref: '#/components/schemas/type_liens_LienRequestParamSecuredPartyRole'
description: Role (assignee or assignor)
addresses:
type: array
items:
$ref: '#/components/schemas/type__LienAddress'
description: Single secured party (alternative to secured_parties array)
title: LienRequestParamSecuredParty
type_liens_LienBatchRequestParamLiensItemSecuredPartiesItemRole:
type: string
enum:
- assignee
- assignor
title: LienBatchRequestParamLiensItemSecuredPartiesItemRole
type_liens_LienRequestParamSecuredPartyRole:
type: string
enum:
- assignee
- assignor
description: Role (assignee or assignor)
title: LienRequestParamSecuredPartyRole
type__ErrorResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/type__ErrorResponseErrorsItem'
required:
- errors
title: ErrorResponse
type_liens_LienBatchRequestParamLiensItemSecuredPartiesItem:
type: object
properties:
organization_name:
type: string
role:
$ref: '#/components/schemas/type_liens_LienBatchRequestParamLiensItemSecuredPartiesItemRole'
addresses:
type: array
items:
$ref: '#/components/schemas/type__LienAddress'
title: LienBatchRequestParamLiensItemSecuredPartiesItem
type_liens_LienRequestParamDebtorsItem:
type: object
properties:
organization_name:
type: string
description: Debtor organization name
tin:
type: string
description: Tax identification number (required for certain states)
addresses:
type: array
items:
$ref: '#/components/schemas/type__LienAddress'
title: LienRequestParamDebtorsItem
type_liens_LienRequestParamStatesItem:
type: string
enum:
- 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
title: LienRequestParamStatesItem
type_liens_LienRequestParamState:
type: string
enum:
- 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
description: State where the lien will be filed. Use `state` for a single state or `states` for multiple states. If both are provided, `states` takes precedence.
title: LienRequestParamState
type_liens_LienBatchRequestParamLiensItem:
type: object
properties:
state:
$ref: '#/components/schemas/type_liens_LienBatchRequestParamLiensItemState'
description: State where the lien will be filed
debtors:
type: array
items:
$ref: '#/components/schemas/type_liens_LienBatchRequestParamLiensItemDebtorsItem'
description: Array of debtor details
secured_parties:
type: array
items:
$ref: '#/components/schemas/type_liens_LienBatchRequestParamLiensItemSecuredPartiesItem'
description: Secured party details for this entry. Falls back to account defaults if not provided.
collateral:
type: string
description: Collateral description. Falls back to account default if not provided.
loan_principal_amount_cents:
type: integer
description: Loan principal amount in cents
packet_number:
type: string
description: Packet number for the filing. Auto-generated if not provided.
alternative_designation:
type: string
description: Alternative designation (for Tennessee filings)
required:
- state
- debtors
title: LienBatchRequestParamLiensItem
type_liens_LienRequestParamSecuredPartiesItemRole:
type: string
enum:
- assignee
- assignor
description: Role (assignee or assignor)
title: LienRequestParamSecuredPartiesItemRole
type_liens_LienRequestParamSecuredPartiesItem:
type: object
properties:
organization_name:
type: string
description: Secured party organization name
role:
$ref: '#/components/schemas/type_liens_LienRequestParamSecuredPartiesItemRole'
description: Role (assignee or assignor)
addresses:
type: array
items:
$ref: '#/components/schemas/type__LienAddress'
title: LienRequestParamSecuredPartiesItem
type__CreateLienFilingsInBatchRequestUnprocessableEntityErrorBody:
type: object
properties:
error:
type: string
required:
- error
title: CreateLienFilingsInBatchRequestUnprocessableEntityErrorBody
type_liens_LienBatchRequestParamLiensItemDebtorsItem:
type: object
properties:
organization_name:
type: string
description: Debtor organization name
tin:
type: string
description: Tax identification number (required for certain states)
addresses:
type: array
items:
$ref: '#/components/schemas/type__LienAddress'
title: LienBatchRequestParamLiensItemDebtorsItem
type__LienAddress:
type: object
properties:
address_line1:
type: string
address_line2:
type: string
city:
type: string
state:
$ref: '#/components/schemas/type__LienAddressState'
postal_code:
type: string
title: LienAddress
securitySchemes:
bearer_auth:
type: http
scheme: bearer