---
title: "POST /v1/agents/batch"
method: POST
path: "/v1/agents/batch"
tags: ["Agents"]
---

# POST /v1/agents/batch

`POST /v1/agents/batch`

Execute WSA Batch Endpoint

## Request body

- AgentBatchBody — Request body for executing a batch of agent requests
  - `inputs` object[], required
    - `formats` string[] — Response formats to include. All disabled by default.
    - `localization` boolean
    - `params` object
  - `shared_inputs` object, required
    - `agent` string, required
    - `formats` string[] — Response formats to include. All disabled by default.
    - `localization` boolean
    - `params` object

## Response `200`

Batch Created

- ExtractBatchResponse — Response when a batch of extract tasks is created successfully.
  - `batch_id` string, required — Unique identifier for the batch.
  - `batch_size` number, required — Number of tasks in the batch.
  - `tasks` object[], required — List of created tasks.
    - `_query` unknown, required
    - `account_name` string — Account name that owns the task.
    - `api_type` 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs'
    - `batch_id` string, nullable — Batch ID if this task is part of a batch.
    - `created_at` string, required — Timestamp when the task was created.
    - `download_url` string, uri, nullable — URL for downloading the task results.
    - `error` string, nullable — Error message if the task failed.
    - `error_type` string, nullable — Classification of the error type.
    - `id` string, required — Unique task identifier.
    - `input` unknown, required
    - `modified_at` string — Timestamp when the task was last modified.
    - `output_url` string, nullable — Storage location of the output data.
    - `queue` string — Queue name the task was submitted to.
    - `state` 'pending' | 'queued' | 'in_progress' | 'success' | 'error', required — Current state of the task.
    - `status_code` number — HTTP status code from the task execution.
    - `status_url` string, uri, required — URL for checking the task status.

## Changes

- **2026-07-12** `e8a97dc9fce2` — 5 breaking
  - response property `tasks/items/batch_id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `tasks/items/download_url` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `tasks/items/error` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `tasks/items/error_type` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - …1 more
- **2026-07-07** `ebe52c375b71` — 3 warning, 1 info
  - added the new `in_progress` enum value to the `tasks/items/state` response property for the response status `200`
  - added the new `labs` enum value to the `tasks/items/api_type` response property for the response status `200`
  - added the new `queued` enum value to the `tasks/items/state` response property for the response status `200`
  - added the optional property `tasks/items/queue` to the response with the `200` status
- **2026-06-10** `421a9851d61b` — 1 warning
  - added the new `fast-serp` enum value to the `tasks/items/api_type` response property for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/nimbleway/apis/api-gateway/changes/v1/agents/batch/post.md)

---

[API](https://skmtc.dev/nimbleway/apis/api-gateway.md) · [All operations](https://skmtc.dev/nimbleway/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nimbleway/api-gateway/revisions/d1947ec7af21/schema)
