---
title: "Retrieve batch workflow ID mappings."
method: POST
path: "/automation/v4/2027-03-beta/workflow-id-mappings/batch/read"
tags: ["Batch"]
---

# Retrieve batch workflow ID mappings.

`POST /automation/v4/2027-03-beta/workflow-id-mappings/batch/read`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/automation/v4/2027-03-beta/workflow-id-mappings/batch/read`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `automation`

Retrieve batch workflow ID mappings for automation flows. This endpoint allows you to submit a batch request to read multiple workflow ID mappings in one operation, facilitating efficient data retrieval for large sets of automation flows.

## Request body

- ApiFlowBatchMigrationInput
  - `inputs` union[], required
    - union
      - ApiFlowBatchFetchMigrationFlowIdCoordinate
        - `flowId` string
        - `type` 'FLOW_ID', required: Specifies the type of coordinate, which defaults to FLOW_ID.
      - ApiFlowBatchFetchMigrationWorkflowIdCoordinate
        - `type` 'WORKFLOW_ID', required: Specifies the type of coordinate, which defaults to WORKFLOW_ID.
        - `workflowId` string

## Response `200`

successful operation

- BatchResponseFlowIdWorkflowIdMappingResponse
  - `completedAt` string, date-time, required: The date and time when the batch process was completed, formatted as a date-time string.
  - `links` object: A collection of URLs related to the batch process.
  - `requestedAt` string, date-time: The date and time when the batch request was initiated, formatted as a date-time string.
  - `results` FlowIdWorkflowIdMappingResponse[], required
    - `flowId` integer, required: The unique identifier for the flow associated with the workflow.
    - `workflowId` integer, required: The unique identifier for the workflow associated with the flow.
  - `startedAt` string, date-time, required: The date and time when the batch process began, formatted as a date-time string.
  - `status` 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING', required: The current status of the batch process, with possible values: CANCELED, COMPLETE, PENDING, PROCESSING.

## Other responses

- `207`: multiple statuses
- `default`: An error occurred.

---

[API](https://skmtc.dev/hubspot/apis/automation-automation-v4.md) - [All operations](https://skmtc.dev/hubspot/apis/automation-automation-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/automation-automation-v4/revisions/f041eccef172?raw)
