Parse the prompt and save a draft without extraction. Unknown top-level keys are rejected. Qualification uses either any or all contact channels; only qualified leads are delivered and charged. Null disables qualification. Inspect, estimate, then run the draft.
Headers
- Idempotency-Keystring
Optional single header, 1-255 printable ASCII characters. Workspace-owned keys expire after 24 hours. Same canonical JSON body, method, route and campaign ID replay the stored response; different request returns 422 idempotency_key_reused. Live work returns 409 idempotency_in_progress and Retry-After: 1. A 5xx is not stored.
max 255 characters
Bodyapplication/json
- promptstringrequired
Natural-language business search; required. Creates a draft without starting extraction.
- ad_intelligenceboolean
Collect advertising intelligence.
- enrich_websiteboolean
Collect business website metadata and contacts.
- exclude_aggregatorsboolean
Exclude directory and aggregator listings.
- extract_emailsboolean
Discover email addresses on the business website.
- fieldsstring[]
Place-field IDs from GET /place-fields. Omitted uses the default selection. Selected fields determine sparse result properties and enrichment.
- generate_icebreakersboolean
Generate an outreach icebreaker for each delivered business.
- glstring
Google country code; explicit region overrides prompt inference.
Response201application/json
Headers: Idempotent-Replayed, Location
- idstring
Campaign ID; the {id} in every campaign path.
- namestring
The name given at creation, or one derived from the prompt.
- promptstring
The plain-language request the campaign was created from.
- statusstring
draft, queued, running, cancelling, completed, failed or cancelled; each campaign runs once
draftqueuedrunningcancellingcompletedfailedcancelled - target_countinteger
Leads asked for.
- result_countinteger
Leads delivered so far.
- qualifierany
Contact channels a lead must have to be delivered (any or all of them); null when there is no qualifier.
- fieldsstring[]
Place-field IDs each result carries; see GET /place-fields.
Errors
curl -X POST "https://app.localicp.com/api/v1/campaigns" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: 00000000-0000-4000-8000-000000000000" \
-H "Content-Type: application/json" \
-d '{
"prompt": "3 dentists in Iasi Romania",
"name": "Local OpenAPI verification",
"target_count": 3,
"qualifier": null,
"fields": [
"name",
"phone",
"website"
],
"max_photos": -1
}'{
"id": "53040d19-ba88-47df-9efa-0051a68e808a",
"name": "Local OpenAPI verification",
"prompt": "3 dentists in Iasi Romania",
"status": "draft",
"target_count": 3,
"result_count": 0,
"qualifier": null,
"fields": [
"name",
"phone",
"website"
],
"progress": null,
"shortfall": null,
"error": null,
"usage": {
"held": 0,
"charged": 0,
"refunded": 0,
"state": "none"
},
"created_at": "2026-10-10T15:30:24.945617Z",
"updated_at": "2026-10-10T15:30:24.951703Z",
"started_at": null,
"completed_at": null,
"language": {
"lang": "ro",
"gl": "ro",
"source": "inferred"
},
"links": {
"self": "/api/v1/campaigns/53040d19-ba88-47df-9efa-0051a68e808a",
"results": "/api/v1/campaigns/53040d19-ba88-47df-9efa-0051a68e808a/results",
"export": "/api/v1/campaigns/53040d19-ba88-47df-9efa-0051a68e808a/export",
"app": "http://localhost:5173/campaigns/53040d19-ba88-47df-9efa-0051a68e808a"
}
}