---
title: "Get a batch"
method: GET
path: "/api/lead-gen/batches/{batchId}"
tags: ["Lead Gen"]
---

# Get a batch

`GET /api/lead-gen/batches/{batchId}`

## Request

- Base URL: `https://www.1clickwebsite.ai`
- URL: `https://www.1clickwebsite.ai/api/lead-gen/batches/{batchId}`
- Auth: HTTP bearer

Returns a batch and its items. Completed items include the generated public URL and saved site state.

## Path parameters

- `batchId` string, uuid, required

## Response `200`

Batch with generated items

- object
  - `ok` boolean
  - `batch` LeadGenBatch
    - `id` string, uuid
    - `status` string
    - `industry` string
    - `template_key` string
    - `total_count` integer
    - `credits_reserved` integer
  - `items` LeadGenItem[]
    - `id` string, uuid
    - `status` string
    - `business_name` string
    - `public_url` string, uri, nullable
    - `primary_color` string, nullable
    - `logo_url` string, uri, nullable
    - `template_key` string

## Other responses

- `401`: Missing, invalid, or revoked API key
- `404`: Resource not found or not owned by the authenticated account

---

[API](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api.md) · [All operations](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/revisions/e842c9b4e4ec?raw)
