---
title: "Generate Input with an Automation Input Generator"
method: POST
path: "/automation-input-generators/{input_generator_id}:generate-input"
tags: ["labAutomation"]
---

# Generate Input with an Automation Input Generator

`POST /automation-input-generators/{input_generator_id}:generate-input`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/automation-input-generators/{input_generator_id}:generate-input`
- Auth: HTTP bearer

Generate Input with an Automation Input Generator

## Path parameters

- `input_generator_id` string, required

## Response `202`

This endpoint launches a [long-running task](https://docs.benchling.com/docs/api/v2/benchling-api/tasks/get-task) and returns the Task ID of the launched task.
The task response contains the Automation Input Generator with the generated file.

- AsyncTaskLink
  - `taskId` string

## Other responses

- `400`: Bad Request

---

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