---
title: "Submit a Local Leads Search"
method: POST
path: "/bulk/local-leads"
tags: ["Bulk Jobs"]
---

# Submit a Local Leads Search

`POST /bulk/local-leads`

Submit long-running local-leads searches to the dedicated bulk queue.

## Request body

- object
  - `keywords` string[], required — Search terms. Expanded against every city — one search row per keyword × city pair.
  - `cities` string[], required — Cities to search. Expanded against every keyword.
  - `countryCodes` string[] — Two-letter country code per city, aligned by index. Defaults to `US` when omitted.
  - `fileName` string — Label for the resulting job, shown in the dashboard.
  - `magicKey` string — Promotional key that waives credit charges when valid.

## Response `202`

Local-leads job accepted.

- BulkSubmissionResponse — Response for a successful bulk job submission. HTTP 202 Accepted.
  - `jobId` string, uuid, required — UUID identifier for the bulk job.
  - `product` string, required — The enrichment product this job is running.
  - `endpoint` string, nullable
  - `totalRows` integer, required — Total number of rows in the submission.
  - `status` string, required — Always 'uploaded' for a freshly submitted job.
  - `queue` object, required
    - `position` integer
    - `started` boolean
    - `queuedAt` string, date-time
  - `statusUrl` string, uri
  - `streamUrl` string, uri
  - `wsUrl` string
  - `resultsUrl` string, uri
  - `rowsUrl` string, uri
  - `errorsUrl` string, uri
  - `eventsUrl` string, uri
  - `eventsExportUrl` string, uri
  - `logsUrl` string, uri
  - `downloadUrl` string, uri
  - `progressUrl` string, uri
  - `token` string — Progress token for follow-up reads without the API key.
  - `exp` integer — Unix timestamp when the progress token expires.

## Other responses

- `400` — Bad Request - The request was malformed or contains invalid parameters. **Common causes:** - Missing required fields - Invalid field format (e.g., malformed email) - Invalid JSON syntax - Invalid parameter values
- `401` — Unauthorized - Authentication failed. **Common causes:** - Missing X-API-Key header - Invalid or expired API key - Malformed API key

## Changes

- **2026-08-25** `1f289eff3a26` — 3 breaking
  - the `allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `400`
  - the `oneOf[#/components/schemas/InvalidApiKeyError]/allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `401`
  - the `oneOf[#/components/schemas/MissingAuthenticationError]/allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `401`
- **2026-08-05** `08b59585eeb7` — 2 breaking, 3 info
  - added the new required request property `cities`
  - added the new required request property `keywords`
  - added the new optional request property `countryCodes`
  - added the new optional request property `fileName`
  - …1 more
- **2026-07-26** `f01f73557a67` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/leadmagic/apis/leadmagic-api/changes/bulk/local-leads/post.md)

---

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