---
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

---

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