Middesk subpackage_businessBatches API

The subpackage_businessBatches API from Middesk — 3 operation(s) for subpackage_businessbatches.

Operations 4

GET /v1/business_batches List business batches #
POST /v1/business_batches Create a business batch #
GET /v1/business_batches/{id} Retrieve a business batch #
GET /v1/business_batches/{id}/csv Download business batch CSV #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/middesk-subpackage-businessbatches-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

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 Specification

middesk-subpackage-businessbatches-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Middesk subpackage_actions Subpackage Business Batches API
  version: 1.0.0
servers:
- url: https://api.middesk.com
  description: Default
tags:
- name: subpackage_businessBatches
paths:
  /v1/business_batches:
    get:
      operationId: list-business-batches
      summary: List business batches
      tags:
      - subpackage_businessBatches
      parameters:
      - name: page
        in: query
        description: Page number
        required: false
        schema:
          type: integer
      - name: per_page
        in: query
        description: Items per page
        required: false
        schema:
          type: integer
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: business batches list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_businessBatches_ListBusinessBatchesResponse'
    post:
      operationId: create-business-batch
      summary: Create a business batch
      tags:
      - subpackage_businessBatches
      parameters:
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: business batch created
          content:
            application/json:
              schema:
                description: Any type
        '400':
          description: invalid request
          content:
            application/json:
              schema:
                description: Any type
        '422':
          description: validation errors
          content:
            application/json:
              schema:
                description: Any type
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Name for the business batch
                filename:
                  type: string
                  description: CSV filename
                csv:
                  type: string
                  description: Base64 encoded CSV data
              required:
              - name
              - filename
              - csv
  /v1/business_batches/{id}:
    get:
      operationId: get-business-batch
      summary: Retrieve a business batch
      tags:
      - subpackage_businessBatches
      parameters:
      - name: id
        in: path
        description: Business Batch ID
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: business batch found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type__BusinessBatch'
        '404':
          description: business batch not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type__ErrorResponse'
  /v1/business_batches/{id}/csv:
    get:
      operationId: get-business-batch-csv
      summary: Download business batch CSV
      tags:
      - subpackage_businessBatches
      parameters:
      - name: id
        in: path
        description: Business Batch ID
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: csv download
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '404':
          description: business batch not found
          content:
            application/json:
              schema:
                description: Any type
components:
  schemas:
    type__ErrorResponseErrorsItem:
      type: object
      properties:
        message:
          type: string
      required:
      - message
      title: ErrorResponseErrorsItem
    type__ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/type__ErrorResponseErrorsItem'
      required:
      - errors
      title: ErrorResponse
    type__BusinessBatchAccount:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
        pilot:
          type: boolean
      required:
      - id
      - name
      - slug
      - pilot
      title: BusinessBatchAccount
    type_businessBatches_ListBusinessBatchesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/type__BusinessBatch'
        object:
          type: string
        has_more:
          type: boolean
        total_count:
          type: integer
      required:
      - object
      - has_more
      title: ListBusinessBatchesResponse
    type__BusinessBatch:
      type: object
      properties:
        object:
          type: string
        id:
          type: string
          format: uuid
        name:
          type: string
        filename:
          type: string
        business_count:
          type: integer
        completed_business_count:
          type: integer
        created_at:
          type: string
          format: date-time
        account:
          $ref: '#/components/schemas/type__BusinessBatchAccount'
      required:
      - object
      - id
      - name
      - filename
      - business_count
      - completed_business_count
      - created_at
      - account
      title: BusinessBatch
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer