{"openapi":"3.1.0","info":{"title":"ProspectUp API","description":"The ProspectUp public REST API. Authenticate with an API key: `Authorization: Bearer pk_live_…`. Versioning is additive-only within v1; breaking changes get a new version prefix.","version":"1.0.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key"}},"schemas":{}},"paths":{"/v1/prospects":{"get":{"operationId":"prospect_search","summary":"Search prospects (businesses)","tags":["prospects"],"description":"Search ProspectUp's global business dataset (~13.7M US local businesses) by structured filters to find NEW prospects to save: category, city and 2-letter state, rating, review count, whether they have a website, and owner-operated vs franchise (exclude_franchises, default true, which drops confirmed multi-unit chains). Optionally add free-text keywords. Returns business summaries with an already_saved flag. Reads public data and spends nothing. Category is by id: use category_resolve to turn text like \"dentist\" into category_ids first. For natural-language queries, prefer discover_search once available.","parameters":[{"schema":{"type":"string"},"in":"query","name":"query","required":false,"description":"Free-text keywords (optional)."},{"schema":{"type":"array","items":{"type":"integer"}},"in":"query","name":"category_ids","required":false,"description":"Category ids from category_resolve."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"US city name."},{"schema":{"type":"string"},"in":"query","name":"state","required":false,"description":"US state, 2-letter code preferred (e.g. \"TX\")."},{"schema":{"type":"number","minimum":0,"maximum":5},"in":"query","name":"min_rating","required":false},{"schema":{"type":"number","minimum":0,"maximum":5},"in":"query","name":"max_rating","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"min_review_count","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"max_review_count","required":false},{"schema":{"type":"boolean"},"in":"query","name":"no_reviews","required":false,"description":"Only businesses with zero reviews."},{"schema":{"type":"boolean"},"in":"query","name":"has_website","required":false,"description":"true = has a website; false = no website."},{"schema":{"type":"boolean"},"in":"query","name":"exclude_franchises","required":false,"description":"Exclude confirmed multi-unit/franchise businesses (default true)."},{"schema":{"type":"boolean"},"in":"query","name":"has_phone","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_email","required":false,"description":"Has at least one email on file."},{"schema":{"type":"boolean"},"in":"query","name":"verified","required":false,"description":"true = Google-verified only; false = not verified."},{"schema":{"type":"string"},"in":"query","name":"price_range","required":false,"description":"Price tier, e.g. \"$\", \"$$\"."},{"schema":{"type":"boolean"},"in":"query","name":"has_facebook","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_instagram","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_linkedin","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_tiktok","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_youtube","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_photos","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"photos_count_min","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"photos_count_max","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_booking","required":false,"description":"Has an online booking link."},{"schema":{"type":"boolean"},"in":"query","name":"has_description","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_owner_responses","required":false,"description":"Owner responds to reviews."},{"schema":{"type":"boolean"},"in":"query","name":"owner_name_known","required":false},{"schema":{"type":"boolean"},"in":"query","name":"owner_operated","required":false},{"schema":{"type":"boolean"},"in":"query","name":"is_service_area","required":false,"description":"Service-area (no storefront) business."},{"schema":{"type":"boolean"},"in":"query","name":"runs_fb_ads","required":false},{"schema":{"type":"boolean"},"in":"query","name":"runs_google_ads","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"review_recency_days","required":false,"description":"Reviewed within the last N days."},{"schema":{"type":"integer","minimum":0},"in":"query","name":"gbp_post_recency_days","required":false,"description":"Posted to Google within the last N days."},{"schema":{"type":"string","enum":["ok","broken"]},"in":"query","name":"website_status","required":false},{"schema":{"type":"boolean"},"in":"query","name":"mobile_optimized","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_ssl","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_schema","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_sitemap","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_blog","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_meta_desc","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_booking_widget","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_chat_widget","required":false},{"schema":{"type":"number"},"in":"query","name":"content_quality_min","required":false},{"schema":{"type":"number"},"in":"query","name":"content_quality_max","required":false},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"ecommerce_platform","required":false,"description":"e.g. [\"Shopify\",\"WooCommerce\"]."},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"cms","required":false,"description":"e.g. [\"WordPress\",\"Wix\"]."},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"technographics","required":false,"description":"Detected tech/tools."},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"business_types","required":false,"description":"AI-classified business types to include."},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"exclude_business_types","required":false},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"service_models","required":false},{"schema":{"type":"array","items":{"type":"string"}},"in":"query","name":"digital_maturity_levels","required":false},{"schema":{"type":"string","enum":["b2c","b2b","both"]},"in":"query","name":"audience","required":false},{"schema":{"type":"boolean"},"in":"query","name":"wheelchair_accessible","required":false},{"schema":{"type":"boolean"},"in":"query","name":"accepts_reservations","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_delivery","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_takeout","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_dine_in","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_outdoor_seating","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_parking","required":false},{"schema":{"type":"boolean"},"in":"query","name":"serves_alcohol","required":false},{"schema":{"type":"boolean"},"in":"query","name":"open_weekends","required":false},{"schema":{"type":"string","enum":["relevance","rating","review_count"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":50},"in":"query","name":"limit","required":false,"description":"Max results per page (default 20, max 50)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"prospects":{"type":"array","items":{"type":"object","properties":{"business_id":{},"display_name":{},"category":{},"city":{},"state":{},"rating":{},"rating_count":{},"has_website":{},"is_multi_unit":{},"already_saved":{}},"additionalProperties":true}},"total":{},"next_cursor":{}},"additionalProperties":true}}}}}}},"/v1/prospects/search/natural":{"post":{"operationId":"prospects_search_natural","summary":"Search prospects by natural language","tags":["prospects"],"description":"Natural-language prospect search: describe who you want in plain English (e.g. \"coffee shops in Austin with under 50 reviews and no website\", or \"dentists in California rated 4+ stars\") and get matching businesses from the global dataset. It parses your prompt into structured filters (returned as parsed_filters and understood so you can see and refine what it matched), then searches. Prefer this for natural-language queries; use prospect_search when you already have structured filters. Uses an LLM parse that draws on a per-organization daily budget, so a budget error is terminal (do not retry). Read-only; spends no credits.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"Plain-English description of the prospects you want."},"sort":{"type":"string","enum":["relevance","rating","review_count"]},"cursor":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max results per page (default 20, max 50)."}},"required":["query"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"/v1/prospects/near":{"post":{"operationId":"prospects_near","summary":"Search prospects near a point (radius)","tags":["prospects"],"description":"Search businesses within a radius of a lat/lng point (for field/territory prospecting), optionally filtered by category and min rating. Returns businesses with distance. Reads public data; spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude of the center point."},"lng":{"type":"number","description":"Longitude of the center point."},"radius_miles":{"type":"number","minimum":0.1,"maximum":50,"description":"Search radius (default a few miles)."},"category_id":{"type":"integer","description":"Category id (from category_resolve)."},"min_rating":{"type":"number","minimum":0,"maximum":5},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["lat","lng"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/prospects/{business_id}":{"get":{"operationId":"prospect_get","summary":"Get a prospect (business)","tags":["prospects"],"description":"Return detail for one business from ProspectUp's global dataset by business_id, plus whether your workspace has already saved or revealed it. Use after a search to inspect a candidate before saving. Reads public business data; the saved/revealed flags are scoped to your workspace. Read-only.","parameters":[{"schema":{"type":"boolean"},"in":"query","name":"include_details","required":false,"description":"Return the full record (default false returns a compact summary)."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"/v1/prospects/{business_id}/assets":{"get":{"operationId":"prospects_assets","summary":"Get a business's ready asset URLs","tags":["prospects"],"description":"Return the shareable public URLs of the FULLY-GENERATED assets for one business (by business_id): scan report, listings/NAP scan, GBP-vs-Apple maps audit, instant website, voice demo, and social posts. By default only assets whose generation is complete (ready) are returned, each with an absolute url — a still-generating asset is withheld so you never hand over a half-baked link. Pass include_generating:true to also see in-progress assets (url is null, with their status) so you can poll until ready. Only your workspace's own assets are returned (the maps audit is public). Read-only; spends nothing.","parameters":[{"schema":{"type":"array","items":{"type":"string","enum":["scan_report","listings_scan","maps_audit","instant_website","voice_demo","social_posts"]}},"in":"query","name":"asset_types","required":false,"description":"Only return these asset types (default: all available)."},{"schema":{"type":"boolean"},"in":"query","name":"include_generating","required":false,"description":"Also list assets still generating (url:null, status shown) so you can poll. Default false = ready links only."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/prospects/{business_id}/assets/generate":{"post":{"operationId":"prospects_assets_generate","summary":"Generate marketing assets for a business","tags":["prospects"],"description":"Generate one or more marketing assets for a SAVED lead (by business_id) and get their shareable URLs: scan_report, listings_scan, instant_website, voice_demo. Each costs $1 (100 credit-cents) — generating all four costs $4. The lead must already be saved to one of your lists (use prospect_save first, or this returns not_found). An asset that already exists is reused FREE by default (skip_if_exists). Generation of the website and voice demo is asynchronous (~30–45s); listings_scan (a full presence scan) runs inline and takes ~30–60s. Returns `generated` (per type: what was charged + whether it is generating/reused) and `assets` — which lists ONLY links that are already fully ready; a still-generating asset is withheld (never a half-baked link), so poll business_assets_get for it. Requires confirm_spend:true.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_types":{"type":"array","items":{"type":"string","enum":["scan_report","listings_scan","instant_website","voice_demo"]},"minItems":1,"maxItems":4,"description":"Which assets to generate. Each is $1. Pass all four to generate everything."},"skip_if_exists":{"type":"boolean","description":"Reuse an existing asset for free instead of regenerating (default true)."}},"required":["asset_types"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/{business_id}/social-posts":{"post":{"operationId":"prospects_social_posts_generate","summary":"Generate a social-posts asset for a business","tags":["prospects"],"description":"Generate a set of ready-to-post social media posts for a SAVED lead (by business_id) — the \"social_posts\" asset type. Free (spends no credits). The lead must already be saved to one of your lists (or this returns not_found). Generation is quick; once ready, get the shareable link with business_assets_get (asset_types:[\"social_posts\"]).","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/{business_id}/signals":{"get":{"operationId":"prospect_signals","summary":"Get computed signals for a business","tags":["prospects"],"description":"Return computed enrichment / technographic / SEO / digital-maturity signals for one business by business_id (the \"why reach out\" intelligence). Spends no credits. For one of your saved or revealed leads with stale data it may also queue a background refresh (within a daily per-workspace allowance).","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"/v1/prospects/{business_id}/reviews":{"get":{"operationId":"prospect_reviews","summary":"Get a business's reviews","tags":["prospects"],"description":"Return the reviews on file for a business by business_id. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}}},"/v1/prospects/{business_id}/reviews/monthly":{"get":{"operationId":"prospect_reviews_monthly","summary":"Get a business's monthly review trend","tags":["prospects"],"description":"Return a monthly rollup of a business's review volume/rating over time by business_id. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}}},"/v1/prospects/{business_id}/refresh-log":{"get":{"operationId":"prospect_refresh_log","summary":"Get a business's last enrichment diff","tags":["prospects"],"description":"Return what changed on a business at its last enrichment refresh (changed fields + when) by business_id, or null. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/prospects/{business_id}/enrich":{"post":{"operationId":"prospect_enrich","summary":"Refresh enrichment for a business","tags":["prospects"],"description":"Queue a fresh Google/data enrichment for one of your saved leads by business_id (background, ~30s). The business must be in one of your lists (save it with prospect_save first). Repeat requests the same day are de-duplicated. Spends no credits.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/{business_id}/listings-audit":{"get":{"operationId":"prospects_listings_audit","summary":"Audit a business's directory listings (NAP scan)","tags":["prospects"],"description":"Return your workspace's listings scan for a business: where it is listed across ~24 maps, directories and voice sources (Google as the baseline — Apple Maps, Bing, Facebook, YellowPages, Hotfrog, iBegin and more) and whether each listing's name, address, phone and website match its Google record, plus an overall score/grade and the shareable report_url. Each directory row has checked_directly: true when it was looked up, false when its state is inferred (note: 'inferred'). Free — it reads an existing scan. If the business has no scan yet (or to refresh one), run business_asset_generate with asset_types:[\"listings_scan\"] ($1, confirm_spend:true; skip_if_exists:false to rescan — the lead must be saved first), then call this again. Scanning takes ~30s. On REST, generate or refresh a scan with POST /v1/prospects/{business_id}/assets/generate ({\"asset_types\":[\"listings_scan\"]}; $1). Returns 404 not_found when no scan exists yet.","parameters":[{"schema":{"type":"boolean"},"in":"query","name":"force_refresh","required":false,"description":"Deprecated: refreshing now costs $1 — use business_asset_generate with skip_if_exists:false."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"/v1/prospects/{business_id}/apple-maps-audit":{"get":{"operationId":"prospects_apple_maps_audit","summary":"Audit a business on Apple Maps","tags":["prospects"],"description":"Return the cached Apple Maps presence/accuracy audit for a business (≈30 days). A finished audit returns 200; otherwise 202 with status in_progress, throttled, or not_checked. This read never starts a lookup — POST to this URL (saved or revealed leads) to run one, then poll here until 200. Phone numbers are shown only for leads you have saved or revealed.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"operationId":"prospects_apple_maps_audit_refresh","summary":"Force a fresh Apple Maps audit","tags":["prospects"],"description":"Queue a fresh Apple Maps lookup for a saved or revealed lead, even if a cached audit exists (counts toward a daily per-workspace cap). Returns 202; poll GET /v1/prospects/{business_id}/apple-maps-audit for the result.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/apple-maps-audits/bulk":{"post":{"operationId":"prospects_apple_maps_audit_bulk","summary":"Queue Apple Maps audits in bulk","tags":["prospects"],"description":"Queue Apple Maps presence/accuracy audits for up to 500 businesses at once (by business_id). Runs in the background; cache-fresh businesses are skipped unless force is set. Spends no credits. Returns queued / cached counts — poll each with business_apple_maps_audit to read results. Use to audit a whole saved list.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":500,"description":"Business ids to audit (max 500)."},"force":{"type":"boolean","description":"Re-audit even cache-fresh businesses (default false)."}},"required":["business_ids"],"additionalProperties":false}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/{business_id}/save":{"post":{"operationId":"prospect_save","summary":"Save a prospect as a lead ($1)","tags":["prospects"],"description":"Save one business from the global dataset into one of your lists as a lead. This SPENDS 1 credit ($1) and, in the same action, reveals that business's owner name, phone, and emails (no separate reveal needed). Idempotent: saving an already-saved business returns the existing lead for free. Requires confirm_spend:true. Check credit_balance_get first.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Destination list id (from list_list / list_create)."}},"required":["list_id"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/bulk-save":{"post":{"operationId":"prospects_bulk_save","summary":"Save many prospects as leads ($1 each)","tags":["prospects"],"description":"Save many businesses from the global dataset into one of your lists as leads, in a single call (batch list-building). SPENDS 1 credit ($1) per business that is not already saved (already-saved businesses are free), and reveals each saved business's contacts. Processes in order and stops early if you run out of credits (top up and call again with the rest). Requires confirm_spend:true. Check credit_balance_get first. Up to 50 businesses per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":50,"description":"Business ids to save (from prospect_search / discover_search)."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Destination list id (from list_list / list_create)."}},"required":["business_ids","list_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/prospects/reveal":{"post":{"operationId":"prospects_reveal","summary":"Reveal business contacts ($1 each)","tags":["prospects"],"description":"Reveal owner name, phone, and emails for up to 100 businesses by business_id, WITHOUT saving them as leads. SPENDS 1 credit ($1) per newly-revealed business; businesses you already revealed or saved are free. Requires confirm_spend:true. Returns the revealed contacts and the amount charged. Check credit_balance_get first.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":100,"description":"Up to 100 business ids (from prospect_search / discover_search)."}},"required":["business_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/lists":{"get":{"operationId":"lists_list","summary":"List lead lists","tags":["lists"],"description":"List your workspace's named lead lists with their live lead counts and tags. Use this to see how saved leads are organized before reading, creating, or moving leads. Paginated: pass the returned next_cursor to get the next page. Read-only.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Opaque pagination cursor from a previous call."},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max lists to return (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lists":{"type":"array","items":{"type":"object","properties":{"list_id":{},"name":{},"public_id":{},"tags":{},"lead_count":{}},"additionalProperties":true}},"next_cursor":{}},"additionalProperties":true}}}}}},"post":{"operationId":"list_create","summary":"Create a lead list","tags":["lists"],"description":"Create a new named lead list in your workspace to organize saved leads. Returns the new list, including its numeric id (use that id in list_leads, prospect_save, lead_move, etc.). Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"The list name."}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"list_id":{},"name":{},"public_id":{},"tags":{},"lead_count":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/lists/{list_id}":{"get":{"operationId":"list_get","summary":"Get one list","tags":["lists"],"description":"Return one of your lists by id (numeric or lst_ public id): name, tags, lead count. Read-only.","parameters":[{"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":true,"minimum":0},{"type":"string","pattern":"^lst_"}]},"in":"path","name":"list_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{},"name":{},"public_id":{},"tags":{},"lead_count":{}},"additionalProperties":true}}}}}},"patch":{"operationId":"list_rename","summary":"Rename a lead list","tags":["lists"],"description":"Rename an existing lead list, identified by its numeric list_id (from list_list). Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"The new name."}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"list_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"list_id":{},"name":{},"public_id":{},"tags":{},"lead_count":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"list_delete","summary":"Delete a lead list","tags":["lists"],"description":"Delete a lead list, identified by its numeric list_id. This also removes the saved-lead entries filed under that list (the entries are unlinked; any credits already spent to save/reveal them are NOT refunded). Requires confirm:true. Reversible only by support.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"list_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"deleted":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/lists/{list_id}/leads":{"get":{"operationId":"lists_leads","summary":"List leads in a list","tags":["lists"],"description":"List the saved leads inside a list, each with its CRM state (disposition, follow_up_at, last_activity_at, converted, enrichment_status, flagged) plus business basics. Filter by disposition, follow-up due (today/overdue/due), converted, enrichment_status, or flagged; sort by saved_at (default), follow_up_at, last_activity_at, or disposition. Answers \"show my interested leads\", \"follow-ups due today\", \"leads not yet enriched\". Paginated, org-scoped, read-only. Call list_list first for the list_id.","parameters":[{"schema":{"type":"array","items":{"type":"string","enum":["new","attempting","contacted","interested","meeting_booked","won","not_interested","lost","not_a_fit","bad_timing","do_not_contact"]}},"in":"query","name":"disposition","required":false,"description":"Only leads in these pipeline stages."},{"schema":{"type":"string","enum":["today","overdue","due"]},"in":"query","name":"due","required":false,"description":"Only leads whose follow-up is due today, overdue, or due now."},{"schema":{"type":"boolean"},"in":"query","name":"converted","required":false,"description":"Only converted (true) or not-converted (false) leads."},{"schema":{"type":"string","enum":["pending","complete"]},"in":"query","name":"enrichment_status","required":false,"description":"Filter by enrichment status."},{"schema":{"type":"boolean"},"in":"query","name":"flagged","required":false,"description":"Only flagged (true) or unflagged (false) leads."},{"schema":{"type":"string","enum":["saved_at","follow_up_at","last_activity_at","disposition"]},"in":"query","name":"sort","required":false,"description":"Sort order (default saved_at, newest first)."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max leads per page (default 25)."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"list_id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/leads":{"get":{"operationId":"leads_search","summary":"Search all your saved leads (org-wide)","tags":["leads"],"description":"Search and filter your saved leads across ALL your lists (org-wide CRM), not just one list. Filter by disposition, follow-up due (today/overdue/due), converted, source, min rating, contact availability (has_website/has_phone/has_email), email verification, flagged, and saved-date range; sort and paginate. Returns leads with their CRM state. Read-only. Use list_leads for a single list.","parameters":[{"schema":{"type":"array","items":{"type":"string","enum":["new","attempting","contacted","interested","meeting_booked","won","not_interested","lost","not_a_fit","bad_timing","do_not_contact"]}},"in":"query","name":"disposition","required":false,"description":"Only these pipeline stages."},{"schema":{"type":"string","enum":["today","overdue","due"]},"in":"query","name":"due","required":false,"description":"Follow-up due today, overdue, or due now."},{"schema":{"type":"boolean"},"in":"query","name":"converted","required":false},{"schema":{"type":"string"},"in":"query","name":"source","required":false},{"schema":{"type":"number","minimum":0,"maximum":5},"in":"query","name":"rating_min","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_website","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_phone","required":false},{"schema":{"type":"boolean"},"in":"query","name":"has_email","required":false},{"schema":{"type":"string","enum":["valid","invalid","catch_all","not_verified"]},"in":"query","name":"email_verification_status","required":false},{"schema":{"type":"boolean"},"in":"query","name":"flagged","required":false},{"schema":{"type":"string"},"in":"query","name":"saved_after","required":false,"description":"ISO date; only leads saved on/after this."},{"schema":{"type":"string"},"in":"query","name":"saved_before","required":false,"description":"ISO date; only leads saved on/before this."},{"schema":{"type":"string"},"in":"query","name":"sort","required":false,"description":"Sort key (e.g. saved_at, follow_up_at, last_activity_at, rating)."},{"schema":{"type":"integer","minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Per page (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"leads":{"type":"array","items":{"type":"object","properties":{"id":{},"business_id":{},"display_name":{},"city":{},"state":{},"country":{},"street":{},"address":{},"postal_code":{},"status":{},"disposition":{},"domain":{},"phone_number":{},"emails":{},"rating":{},"rating_count":{},"verified":{},"has_phone":{},"has_email":{},"has_website":{},"source":{},"converted":{},"converted_at":{},"owner_name":{},"owner_email":{},"business_email":{},"list_id":{},"list_name":{},"follow_up_at":{},"last_activity_at":{},"created_at":{}},"additionalProperties":true}},"total":{},"page":{},"per_page":{}},"additionalProperties":true}}}}}},"post":{"operationId":"leads_create","summary":"Add a business not in ProspectUp, as a lead ($1)","tags":["leads"],"description":"Create a business that is NOT in the ProspectUp dataset (from name + city + state, plus optional website / phone / address / rating) and save it as a lead. SPENDS $1. Requires confirm_spend:true. Use lead_match first to avoid duplicates; prefer prospect_search + prospect_save for businesses already in the dataset.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_name":{"type":"string","minLength":1},"city":{"type":"string","minLength":1},"state":{"type":"string","minLength":1},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Destination list id."},"website":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"category":{"type":"string"},"notes":{"type":"string","maxLength":4000}},"required":["business_name","city","state","list_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/query":{"post":{"operationId":"leads_query","summary":"Query saved leads by ANY field (advanced filter)","tags":["leads"],"description":"Query your saved leads (org-wide CRM) by ANY filterable field — including your custom fields — using a condition tree, or run a saved lead view. This is the full-power search behind the web app's saved-leads page; use it when leads_search's fixed filters are not enough. To answer a natural-language question about saved leads: first call leads_filter_catalog to get the valid field keys, types, and operators, build a condition tree from them, then pass it as `filter`. The tree is a group of conditions: { \"op\": \"AND\"|\"OR\", \"children\": [ { \"field\": \"<key>\", \"operator\": \"<op>\", \"value\": <v> }, ...nested groups ] }. Operators depend on the field type (numbers: gte/lte/gt/lt/eq/between; enums: any_of/none_of/eq; text: contains/equals/starts_with; booleans: is_true/is_false; dates: before/after/in_last_days/between). Value-less operators (is_true/is_false/exists/is_empty) take no value. Alternatively pass view_id to run a saved view (from lead_views_list). Optionally scope to one list_id and/or a free-text search over name/domain/city; sort and paginate. Read-only, spends nothing. Invalid field/operator names are rejected — re-check them against leads_filter_catalog.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filter":{"type":"object","additionalProperties":{},"description":"The condition tree (group). Build fields/operators from leads_filter_catalog. Omit to match all saved leads (or use view_id)."},"view_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Run a saved lead view instead of an inline filter (from lead_views_list). Ignored if `filter` is given."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Restrict to a single list (from list_list)."},"search":{"type":"string","maxLength":200,"description":"Free-text over business name / domain / city."},"sort":{"type":"string","maxLength":40,"description":"Sort key: saved_at | follow_up_at | last_activity_at | rating | disposition."},"dir":{"type":"string","enum":["asc","desc"],"description":"Sort direction (default desc)."},"page":{"type":"integer","minimum":1},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Per page (default 25)."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/leads/filter-catalog":{"get":{"operationId":"leads_filter_catalog","summary":"List valid lead-filter fields","tags":["leads"],"description":"List the fields you can filter saved leads on — each with its key, label, type, and allowed operators/values. The catalog auto-includes your custom fields. Read-only. Call this before lead_view_create to build a valid condition_tree.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"key":{},"domain":{},"type":{},"operators":{},"facetable":{},"executable":{},"label":{},"group":{}},"additionalProperties":true}}},"additionalProperties":true}}}}}}},"/v1/leads/export":{"post":{"operationId":"leads_export","summary":"Export saved leads as CSV","tags":["leads"],"description":"Export your saved leads as CSV text — with revealed owner name / phone / emails, and optionally engagement columns. Scope it to one list (list_id), an explicit selection (lead_ids), or a search/source; a scope is required so you never dump the whole CRM by accident. Read-only, spends nothing. For paginated JSON instead, use leads_search / list_leads.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Export this list (id from list_list)."},"lead_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":5000,"description":"Export exactly these saved-lead ids (from list_leads)."},"search":{"type":"string","maxLength":256,"description":"Only leads matching this text."},"source":{"type":"string","maxLength":256,"description":"Only leads from this source (comma-separated for several)."},"include_engagement":{"type":"boolean","description":"Add opened/replied engagement columns."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/leads/match":{"post":{"operationId":"leads_match","summary":"Find a business in ProspectUp (no save)","tags":["leads"],"description":"Look up whether a specific business is in the ProspectUp dataset by name + city + state (optionally phone / website). Returns the best match (id, name, location, rating, a confidence) or no_match. Does NOT save or spend. Use before lead_create_new to avoid duplicates.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_name":{"type":"string","minLength":1,"description":"The business name."},"city":{"type":"string","minLength":1},"state":{"type":"string","minLength":1,"description":"State (2-letter or full)."},"phone":{"type":"string"},"website":{"type":"string"}},"required":["business_name","city","state"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/leads/confirm-match":{"post":{"operationId":"leads_confirm_match","summary":"Save a matched business as a lead ($1)","tags":["leads"],"description":"Save a business found via lead_match into a list as a lead. SPENDS $1 (reveals contacts too), free if already saved. Requires confirm_spend:true. Provide the business_id from lead_match.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"The business id (from lead_match)."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Destination list id."},"notes":{"type":"string","maxLength":4000}},"required":["business_id","list_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/dispositions/bulk":{"post":{"operationId":"leads_dispositions_bulk","summary":"Set disposition on many leads","tags":["leads"],"description":"Set the same disposition on many saved leads at once, identified by lead_id (the saved-lead ids from list_leads / lead_get). \"won\" also converts them. Returns how many businesses were updated. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":500,"description":"Saved-lead ids (from list_leads)."},"disposition":{"type":"string","enum":["new","attempting","contacted","interested","meeting_booked","won","not_interested","lost","not_a_fit","bad_timing","do_not_contact"],"description":"Pipeline stage to apply to all."},"follow_up_at":{"type":"string","description":"ISO date/datetime follow-up for all (optional)."}},"required":["lead_ids","disposition"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/bulk-move":{"post":{"operationId":"leads_bulk_move","summary":"Move many leads to another list","tags":["leads"],"description":"Move many saved leads (by lead_id, from list_leads) into one destination list. Returns how many moved. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":500,"description":"Saved-lead ids (from list_leads)."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Destination list id (from list_list / list_create)."}},"required":["lead_ids","list_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/bulk-enrich":{"post":{"operationId":"leads_bulk_enrich","summary":"Refresh enrichment for saved leads","tags":["leads"],"description":"Queue a fresh Google/data enrichment refresh for up to 200 of your saved leads by business_id. Runs in the background (already-fresh leads are skipped). Spends no credits. Returns queued / already_enriched counts.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":200,"description":"Business ids of saved leads to refresh."}},"required":["business_ids"],"additionalProperties":false}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/{id}":{"get":{"operationId":"lead_get","summary":"Get a saved lead","tags":["leads"],"description":"Return detail for one saved lead by its lead_id (from list_leads): full CRM state (disposition, follow_up_at, last_activity_at, converted + value/notes, notes, custom_fields, flagged, enrichment_status, credit charged, provenance) plus the underlying business (contact, owner, category, ratings, email verification). Use lead_activity_list for the full touch history. Org-scoped and read-only. {id} is the saved-lead id.","parameters":[{"schema":{"type":"boolean"},"in":"query","name":"include_details","required":false,"description":"Return all fields (default false returns a compact summary)."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"operationId":"lead_move","summary":"Move a lead to another list","tags":["leads"],"description":"Move one saved lead (identified by lead_id, the saved-lead id from list_leads) into a different list. Spends nothing. {id} is the saved-lead id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Destination list id (from list_list / list_create)."}},"required":["list_id"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/{id}/activity":{"get":{"operationId":"lead_activity_list","summary":"Get a lead's activity history","tags":["leads"],"description":"Return the activity/touch history for a lead by business_id (calls, emails, sms, notes, and disposition changes), newest first, plus the current disposition and next follow-up. Use this to see what has happened with a lead over time. business_id is from a saved lead (lead_get / list_leads). Org-scoped and read-only. {id} is the business id.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max activity entries per page (default 25)."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"post":{"operationId":"lead_activity_log","summary":"Log an activity on a lead","tags":["leads"],"description":"Record a manual touch (call, email, sms, or note) on a saved lead, identified by business_id, with an optional outcome, comment, follow-up, and disposition change. This only LOGS the activity in your CRM history; it does NOT send an email, SMS, or anything else. Spends nothing. {id} is the business id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["call","email","sms","note"],"description":"The channel: call | email | sms | note."},"outcome":{"type":"string","maxLength":64,"description":"Short outcome label (optional)."},"comment":{"type":"string","maxLength":4000,"description":"Free-text note (optional)."},"follow_up_at":{"type":"string","description":"ISO date/datetime for a follow-up (optional)."},"set_disposition":{"type":"string","enum":["new","attempting","contacted","interested","meeting_booked","won","not_interested","lost","not_a_fit","bad_timing","do_not_contact"],"description":"Also move the lead to this pipeline stage."}},"required":["channel"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/{id}/disposition":{"put":{"operationId":"lead_disposition_set","summary":"Set a lead's disposition","tags":["leads"],"description":"Set the CRM disposition (pipeline stage) for a saved lead, identified by business_id. Setting \"won\" also marks the lead converted; \"do_not_contact\" is a CRM stage (to actually block outreach use suppression_add). Optionally set a follow_up_at reminder. Applies to that business across your workspace. Spends nothing. {id} is the business id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"disposition":{"type":"string","enum":["new","attempting","contacted","interested","meeting_booked","won","not_interested","lost","not_a_fit","bad_timing","do_not_contact"],"description":"Pipeline stage."},"follow_up_at":{"type":"string","description":"ISO date/datetime for a follow-up reminder (optional)."}},"required":["disposition"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/{id}/convert":{"post":{"operationId":"lead_convert","summary":"Mark a lead as won","tags":["leads"],"description":"Mark a saved lead (by business_id) as converted / closed-won, with an optional deal value (dollars) and notes. Applies to that business across your workspace. Spends nothing. {id} is the business id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"number","minimum":0,"description":"Deal value in dollars (optional)."},"notes":{"type":"string","maxLength":4000,"description":"Conversion notes (optional)."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"lead_unconvert","summary":"Undo a lead conversion","tags":["leads"],"description":"Undo a conversion: mark a previously-won lead (by business_id) as not converted. Spends nothing. {id} is the business id.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/{id}/report":{"post":{"operationId":"lead_report_bad","summary":"Report bad lead data","tags":["leads"],"description":"Report data-quality problems on a lead (by business_id): one or more of wrong_phone, wrong_address, business_closed, wrong_owner, duplicate, other. Helps improve the dataset. Spends nothing. {id} is the business id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"string","enum":["wrong_phone","wrong_address","business_closed","wrong_owner","duplicate","other"]},"minItems":1,"description":"One or more reasons."},"notes":{"type":"string","maxLength":4000,"description":"Extra detail (optional)."}},"required":["reasons"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/{id}/flag":{"post":{"operationId":"lead_flag_bad","summary":"Flag a bad lead (removes it, refunds $1)","tags":["leads"],"description":"Flag a saved lead as bad data (wrong number, closed, wrong owner, etc.) by its lead_id and get the $1 back. The lead is REMOVED: it disappears from your lists, exports and campaigns, and its revealed contact info is locked again. Only allowed within 7 days of saving and only if the lead was never exported or contacted (no campaign email/SMS/Instagram sent, no postcard mailed) — otherwise it is refused and nothing changes. Returns the new balance. Reversible only by support. {id} is the saved-lead id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500,"description":"Why it is bad."}},"required":["reason"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/lead-views":{"get":{"operationId":"lead_views_list","summary":"List saved lead views","tags":["lead-views"],"description":"List your saved CRM lead views (named filter presets), each with its filter condition tree and pin state. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"condition_tree":{},"pinned":{},"sort_order":{},"created_at":{},"updated_at":{}},"additionalProperties":true}}}}}}},"post":{"operationId":"lead_view_create","summary":"Create a saved lead view","tags":["lead-views"],"description":"Save a named CRM lead view (a reusable filter preset) — run it later with leads_query view_id. condition_tree is the ProspectUp filter tree: conditions { field, operator, value } grouped as { op: \"AND\"|\"OR\", children: [...] }. Get valid fields/operators from leads_filter_catalog. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"View name."},"condition_tree":{"type":"object","additionalProperties":{},"description":"The filter condition tree (see description). Omit for an empty view."},"pinned":{"type":"boolean","description":"Pin the view (default true)."}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"name":{},"condition_tree":{},"pinned":{},"sort_order":{},"created_at":{},"updated_at":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/lead-views/{id}":{"patch":{"operationId":"lead_view_update","summary":"Update a saved lead view","tags":["lead-views"],"description":"Rename, re-pin, or change the filter of a saved lead view by its id (from lead_views_list). Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"pinned":{"type":"boolean"},"condition_tree":{"type":"object","additionalProperties":{}}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"name":{},"condition_tree":{},"pinned":{},"sort_order":{},"created_at":{},"updated_at":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"lead_view_delete","summary":"Delete a saved lead view","tags":["lead-views"],"description":"Delete a saved CRM lead view by its id (from lead_views_list). Requires confirm:true. Reversible by recreating it. Spends nothing.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"deleted":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/saved-filters":{"get":{"operationId":"saved_filters_list","summary":"List saved filters (audiences)","tags":["saved-filters"],"description":"List your saved search filters / subscribed audiences. Read-only.","parameters":[{"schema":{"type":"boolean"},"in":"query","name":"subscribed","required":false,"description":"Only subscribed audiences."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"label":{},"type":{},"is_subscribed":{},"result_count":{},"created_at":{},"filter_payload":{}},"additionalProperties":true}}}}}}},"post":{"operationId":"saved_filter_create","summary":"Save / subscribe a filter (audience)","tags":["saved-filters"],"description":"Save a named search filter as a subscribed audience so ProspectUp watches for new matching businesses (see them via discover_new_leads). filter_payload is the search filters to save. Without list_id it spends nothing. With list_id, businesses that NEWLY match on later nightly runs are auto-added to that list at $1 each (save = reveal, same as prospect_save); businesses already matching when you subscribe are not added, and auto-add pauses when credits run out.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"Audience name."},"filter_payload":{"type":"object","additionalProperties":{},"description":"The search filters to save (category/city/state/facets)."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Optionally link to a list."}},"required":["label"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"label":{},"type":{},"is_subscribed":{},"result_count":{},"created_at":{},"filter_payload":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/saved-filters/new-leads":{"get":{"operationId":"saved_filters_new_leads","summary":"New leads since last check","tags":["saved-filters"],"description":"Return newly-appeared businesses that match your subscribed saved filters since you last checked (\"any new leads?\"). Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}}},"/v1/saved-filters/{id}":{"get":{"operationId":"saved_filter_get","summary":"Get a saved filter (audience)","tags":["saved-filters"],"description":"Get one saved search filter / audience by its id (from saved_filters_list). Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"operationId":"saved_filter_update","summary":"Subscribe / unsubscribe a saved filter","tags":["saved-filters"],"description":"Subscribe or unsubscribe a saved filter (audience) by its id. When subscribed, ProspectUp watches for new matching businesses (see them via discover_new_leads). If the filter is linked to a list, new matches after (re)subscribing are auto-added at $1 each; current matches are not added.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"is_subscribed":{"type":"boolean","description":"true to subscribe (watch for new matches); false to unsubscribe."}},"required":["is_subscribed"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"is_subscribed":{},"subscribed_at":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"saved_filter_delete","summary":"Delete a saved filter (audience)","tags":["saved-filters"],"description":"Delete a saved search filter / audience by its id (from saved_filters_list). Requires confirm:true. Reversible by recreating it. Spends nothing.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"deleted":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns":{"get":{"operationId":"campaigns_list","summary":"List campaigns","tags":["campaigns"],"description":"List your workspace's outreach campaigns, newest first, each with its lead count, pending-task count, and per-campaign performance: sent, replies, bounces, opens, reply_rate, and bounce_rate. Use this to rank campaigns directly (e.g. which got the most replies or bounces) in one call. Filter by status (draft/active/paused/completed/cancelled) or a name search. Read-only.","parameters":[{"schema":{"type":"string","enum":["draft","active","paused","completed","cancelled"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"q","required":false,"description":"Substring match on the campaign name."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max campaigns per page (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_id":{},"name":{},"goal":{},"status":{},"list_id":{},"lead_count":{},"pending_task_count":{},"sent":{},"bounced":{},"replies":{},"opens":{},"reply_rate":{},"bounce_rate":{},"created_at":{}},"additionalProperties":true}},"total":{},"next_cursor":{}},"additionalProperties":true}}}}}},"post":{"operationId":"campaign_create","summary":"Create a draft campaign","tags":["campaigns"],"description":"Create a new DRAFT outreach campaign. It never launches or sends anything on its own — it stays a draft that you review, finalize, and launch from the ProspectUp web app. Optionally seed its audience from one or more lists. Returns the draft campaign (status \"draft\"). Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Campaign name."},"goal":{"type":"string","maxLength":255,"description":"Freeform goal, e.g. \"book a demo\" (default \"meeting\")."},"brief":{"type":"string","maxLength":4000,"description":"Short brief describing the offer / angle (optional)."},"list_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":100,"description":"Seed the campaign audience from these list ids (optional)."}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/analytics":{"get":{"operationId":"campaigns_analytics","summary":"Campaign analytics over a date range","tags":["campaigns"],"description":"Campaign performance for a date range and/or geo/category segment — what campaign_analytics_get cannot do. Set from/to (YYYY-MM-DD) for time-bounded metrics (\"how did we do last month\"), optional step for time buckets, detail for breakdown panels, and country/city/state/category/primary_category_id to segment (\"reply rate in Texas\"). campaign_id is a numeric id, the literal \"active\" (all active campaigns), or omitted (all campaigns incl. historic). Read-only.","parameters":[{"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":true,"minimum":0},{"type":"string","enum":["active"]}]},"in":"query","name":"campaign_id","required":false,"description":"A campaign id, \"active\" for all active campaigns, or omit for all campaigns."},{"schema":{"type":"string"},"in":"query","name":"from","required":false,"description":"Start date YYYY-MM-DD (inclusive)."},{"schema":{"type":"string"},"in":"query","name":"to","required":false,"description":"End date YYYY-MM-DD (inclusive)."},{"schema":{"type":"integer","minimum":0},"in":"query","name":"step","required":false,"description":"Only this sequence step index."},{"schema":{"type":"boolean"},"in":"query","name":"detail","required":false,"description":"Include breakdown panels."},{"schema":{"type":"string"},"in":"query","name":"country","required":false},{"schema":{"type":"string"},"in":"query","name":"city","required":false},{"schema":{"type":"string"},"in":"query","name":"state","required":false},{"schema":{"type":"string"},"in":"query","name":"category","required":false},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"query","name":"primary_category_id","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{},"rates":{},"funnel":{},"pipeline_today":{},"filters_applied":{},"meta":{}},"additionalProperties":true}}}}}}},"/v1/campaigns/analytics/breakdowns":{"get":{"operationId":"campaigns_analytics_breakdowns","summary":"Campaign analytics by dimension","tags":["campaigns"],"description":"Break campaign analytics down by a dimension (e.g. status, category, mailbox) across your campaigns. Complements campaign_performance_by_category. Read-only.","parameters":[{"schema":{"type":"string"},"in":"query","name":"dimension","required":true,"description":"The breakdown dimension (e.g. status, category, mailbox)."}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/performance-by-category":{"get":{"operationId":"campaigns_performance_by_category","summary":"Campaign performance by business category","tags":["campaigns"],"description":"Break your campaign results down by the BUSINESS CATEGORY of the leads (across all your campaigns) to see which categories perform best. Returns per category: leads, sent, opens, replies, and open_rate / reply_rate (over sent), sorted by replies then opens then volume. Watch small samples: a category with 1 lead and 1 reply reads 100% but is not meaningful, so weigh rate against volume. Read-only.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Max categories to return (default 50)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{}},"additionalProperties":true}}}}}}},"/v1/campaigns/sending-schedule":{"get":{"operationId":"campaigns_sending_schedule","summary":"Email sending: how many go out today","tags":["campaigns"],"description":"The correct answer to \"how many emails go out today\" is **max_emails_today** — report THAT number, not the raw quota. It is min(daily_send_quota, mailbox_pool_capacity): the send engine can never dispatch more than the smaller of the campaign quota and the shared mailbox pool, and bound_by names which limit is binding (usually mailbox_pool during deliverability throttling). Also returns remaining_today (still sendable today), sent_today, daily_send_quota (summed active-campaign plan — OVERSTATES the real ceiling when the pool is smaller), mailbox_pool_capacity, eligible_mailboxes, failed_today, pending_backlog (whole queue, all dates), and a per-active-campaign quota breakdown. Do NOT estimate from campaign_list or tasks_due_today, and do NOT report daily_send_quota as the answer. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"max_emails_today":{},"bound_by":{},"remaining_today":{},"sent_today":{},"reserved_in_flight":{},"capacity_used_today":{},"daily_send_quota":{},"mailbox_pool_capacity":{},"eligible_mailboxes":{},"failed_today":{},"pending_backlog":{},"active_campaigns":{},"note":{}},"additionalProperties":true}}}}}}},"/v1/campaigns/sends":{"get":{"operationId":"campaigns_sends","summary":"List individual email sends","tags":["campaigns"],"description":"List the individual campaign email sends (the actual rows): recipient, subject, status, sequence step, and scheduled/sent time. Filter by campaign_id, status (queued/sending/sent/failed/bounced/skipped/drafting), and scheduled_date (YYYY-MM-DD). Answers \"show me exactly what is going out\" or \"what failed\". Paginated, org-scoped, read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"query","name":"campaign_id","required":false,"description":"Limit to one campaign (from campaign_list)."},{"schema":{"type":"string","enum":["queued","sending","sent","failed","bounced","skipped","drafting"]},"in":"query","name":"status","required":false},{"schema":{"type":"string"},"in":"query","name":"scheduled_date","required":false,"description":"YYYY-MM-DD; only sends scheduled for this date."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Per page (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sends":{"type":"array","items":{"type":"object","properties":{"id":{},"campaign_id":{},"campaign_name":{},"business_id":{},"display_name":{},"to_email":{},"subject":{},"status":{},"sequence_step":{},"scheduled_for":{},"sent_at":{}},"additionalProperties":true}},"total":{},"next_cursor":{}},"additionalProperties":true}}}}}}},"/v1/campaigns/reach-preview":{"get":{"operationId":"campaigns_reach_preview","summary":"Preview reachable audience","tags":["campaigns"],"description":"Estimate how many leads a selection (one or more lists and/or explicit lead ids, over given channels) would reach in a campaign, before building it. Read-only.","parameters":[{"schema":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":100},"in":"query","name":"list_ids","required":false},{"schema":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":1000},"in":"query","name":"lead_ids","required":false,"description":"Explicit business ids."},{"schema":{"type":"array","items":{"type":"string","enum":["email","sms","instagram","postcard"]},"maxItems":4},"in":"query","name":"channels","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"/v1/campaigns/audit-coverage":{"get":{"operationId":"campaigns_audit_coverage","summary":"Apple-audit coverage for a selection","tags":["campaigns"],"description":"For a selection of lists/leads, report how many have an Apple Maps audit with mismatches vs. all-match vs. not-on-Apple vs. no-data. Useful before a maps-audit campaign. Read-only.","parameters":[{"schema":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":100},"in":"query","name":"list_ids","required":false},{"schema":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":1000},"in":"query","name":"lead_ids","required":false,"description":"Explicit business ids."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{},"has_mismatches":{},"all_match":{},"not_on_apple":{},"no_data":{}},"additionalProperties":true}}}}}}},"/v1/campaigns/{campaign_id}":{"get":{"operationId":"campaign_get","summary":"Get a campaign","tags":["campaigns"],"description":"Return one campaign by id (org-scoped): name, status, goal, lead count, and its analytics (sent, delivered-estimated, opens, clicks, replies, bounces, unsubscribes, computed rates, and the cross-channel funnel). See campaign_analytics_get for how to read the rates. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"patch":{"operationId":"campaign_update","summary":"Update a campaign's metadata","tags":["campaigns"],"description":"Edit a campaign's name, goal, instructions, or internal notes. Does NOT change its status (never launches or pauses — sending is out of scope), its sequence/settings, or its audience. campaign_id from campaign_list. Spends nothing.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/analytics":{"get":{"operationId":"campaign_analytics","summary":"Get campaign analytics","tags":["campaigns"],"description":"Outreach analytics for one campaign (campaign_id), all active campaigns (active_only:true), or all campaigns (omit both). Returns sent, delivered (ESTIMATED as sent minus bounces — email has no delivery receipt), opens, clicks, replies, bounces, unsubscribes, computed rates, and a cross-channel funnel. Important when interpreting: rates are null (not 0) when there is no data; and open/click tracking may be disabled in production, so open_rate and click rate can read near-zero — reply_rate and bounce_rate are the trustworthy signals. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{},"rates":{},"funnel":{},"pipeline_today":{},"filters_applied":{},"meta":{}},"additionalProperties":true}}}}}}},"/v1/campaigns/{campaign_id}/activity":{"get":{"operationId":"campaign_activity","summary":"Campaign activity log","tags":["campaigns"],"description":"Return the recent activity log for a campaign (sends, opens, replies, state changes). campaign_id from campaign_list. Read-only.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max entries (default 20)."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}}},"/v1/campaigns/{campaign_id}/leads":{"get":{"operationId":"campaign_leads","summary":"List a campaign's leads (who replied / opened / bounced)","tags":["campaigns"],"description":"List the leads (businesses) inside one campaign with their per-lead engagement, so you can see WHO replied, opened, clicked, or bounced. Pass engagement to filter: all (default), replied, opened, clicked, bounced, sent, or not_sent. Repliers are returned first. Paginated. Use campaign_list to find the campaign_id. Read-only.","parameters":[{"schema":{"type":"string","enum":["all","replied","opened","clicked","bounced","sent","not_sent"]},"in":"query","name":"engagement","required":false,"description":"Filter by engagement (default all)."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max leads per page (default 25)."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":true}}}}}},"post":{"operationId":"campaign_leads_add","summary":"Add leads to a draft campaign","tags":["campaigns"],"description":"Add businesses (by business_id) to a DRAFT campaign's audience. Only works while the campaign is a draft — this guardrail avoids enrolling people into a campaign that is already live. To change an active campaign's audience, use the web app. Returns how many were added. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"minItems":1,"maxItems":1000,"description":"Business ids to add."}},"required":["business_ids"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/leads/{business_id}":{"delete":{"operationId":"campaign_lead_remove","summary":"Remove a lead from a draft campaign","tags":["campaigns"],"description":"Remove one business from a DRAFT campaign's audience (inverse of campaign_leads_add). Only works while the campaign is a draft — this guardrail avoids yanking people out of a campaign that is already live. To change an active campaign's audience, use the web app. Spends nothing.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/launch":{"post":{"operationId":"campaign_launch","summary":"Launch a draft campaign — STARTS REAL OUTREACH","tags":["campaigns"],"description":"Activate a DRAFT campaign so the send engine begins delivering its sequence: REAL emails / SMS / postcards to the enrolled prospects. This is NOT reversible — sent messages cannot be unsent. The server first checks the campaign has leads, an active mailbox pool, a return address (if the sequence has a postcard step), and enough credits, and returns a 422 otherwise. Requires confirm:true. Review the campaign (campaign_get) and its audience (campaign_leads_list) before launching. campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/resume":{"post":{"operationId":"campaign_resume","summary":"Resume a paused campaign — RESUMES REAL SENDS","tags":["campaigns"],"description":"Resume a PAUSED campaign back to active: sending of its sequence RESUMES (real emails / SMS / postcards to enrolled prospects). Anything sent after cannot be unsent. Requires the campaign to have leads (422 otherwise). Requires confirm:true. campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/reopen":{"post":{"operationId":"campaign_reopen","summary":"Reopen a completed/cancelled campaign — RESUMES REAL SENDS","tags":["campaigns"],"description":"Reopen a COMPLETED or CANCELLED campaign back to active as a living pipeline (auto-sync on): outreach RESUMES to its leads and any newly-added ones (real emails / SMS / postcards). Only a completed or cancelled campaign with leads can be reopened (422 otherwise). Requires confirm:true. campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/pause":{"post":{"operationId":"campaign_pause","summary":"Pause a campaign","tags":["campaigns"],"description":"Pause an active campaign (stops further sending; also pauses any linked autopilot). Does not delete anything. campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/complete":{"post":{"operationId":"campaign_complete","summary":"Mark a campaign complete","tags":["campaigns"],"description":"Mark a campaign as completed (terminal; no more sending). campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/cancel":{"post":{"operationId":"campaign_cancel","summary":"Cancel a campaign","tags":["campaigns"],"description":"Cancel a campaign (terminal; stops sending and pauses linked autopilot). campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/clone":{"post":{"operationId":"campaign_clone","summary":"Clone a campaign to a new draft","tags":["campaigns"],"description":"Copy a campaign's config/settings into a brand-new DRAFT (no leads, nothing sent). Returns the new draft campaign. campaign_id from campaign_list.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/conversations":{"get":{"operationId":"conversations_list","summary":"List inbox reply threads","tags":["conversations"],"description":"List reply threads in your inbox (prospects who replied to campaigns), with filters: folder, category, status (open/done), a search, campaign, assignee, and a date range. Paginated. Read-only.","parameters":[{"schema":{"type":"string"},"in":"query","name":"folder","required":false,"description":"Inbox folder (default \"inbox\")."},{"schema":{"type":"string"},"in":"query","name":"category","required":false},{"schema":{"type":"string","enum":["open","done"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"q","required":false,"description":"Search threads."},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"query","name":"campaign_id","required":false},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"query","name":"assignee","required":false},{"schema":{"type":"string"},"in":"query","name":"from","required":false,"description":"ISO date, threads on/after."},{"schema":{"type":"string"},"in":"query","name":"to","required":false,"description":"ISO date, threads on/before."},{"schema":{"type":"integer","minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Per page (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"conversations":{"type":"array","items":{"type":"object","properties":{"campaign_id":{},"campaign_name":{},"business_id":{},"lead_name":{},"lead_email":{},"city":{},"state":{},"mailbox_id":{},"mailbox_email":{},"last_inbound_at":{},"last_inbound_snippet":{},"last_inbound_subject":{},"inbound_count":{},"outbound_count":{},"category":{},"effective_category":{},"is_unread":{},"is_important":{},"is_open":{},"snoozed_until":{},"status":{},"assigned_to":{},"assignee_name":{},"is_won":{}},"additionalProperties":true}},"total":{},"page":{},"limit":{},"counts":{}},"additionalProperties":true}}}}}}},"/v1/conversations/unread-count":{"get":{"operationId":"conversations_unread_count","summary":"Inbox unread count","tags":["conversations"],"description":"Return how many unread reply threads are in your inbox. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"unread":{}},"additionalProperties":true}}}}}}},"/v1/conversations/{campaign_id}/{business_id}":{"get":{"operationId":"conversations_get","summary":"Get a reply conversation","tags":["conversations"],"description":"Return the full message thread (the prospect's replies and the outreach that prompted them) for one lead in one campaign, by campaign_id + business_id. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/conversations/{campaign_id}/{business_id}/read":{"post":{"operationId":"conversations_read","summary":"Mark a reply thread read/unread","tags":["conversations"],"description":"Mark one inbox thread (campaign_id + business_id) as read (default) or unread. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"type":"boolean","description":"true = read (default), false = unread."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/conversations/{campaign_id}/{business_id}/important":{"post":{"operationId":"conversations_important","summary":"Flag a reply thread important","tags":["conversations"],"description":"Set or clear the important flag on an inbox thread (campaign_id + business_id). Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"important":{"type":"boolean","description":"true = important, false = not."}},"required":["important"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/conversations/{campaign_id}/{business_id}/status":{"post":{"operationId":"conversations_status","summary":"Set a reply thread status","tags":["conversations"],"description":"Set an inbox thread (campaign_id + business_id) to open or done. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","done"]}},"required":["status"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/conversations/{campaign_id}/{business_id}/snooze":{"post":{"operationId":"conversations_snooze","summary":"Snooze a reply thread","tags":["conversations"],"description":"Snooze an inbox thread until a given time (ISO 8601), or pass null to un-snooze. campaign_id + business_id. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"snoozed_until":{"type":"string","nullable":true,"description":"ISO 8601 timestamp to snooze until, or null to clear."}},"required":["snoozed_until"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/conversations/{campaign_id}/{business_id}/assign":{"post":{"operationId":"conversations_assign","summary":"Assign a reply thread","tags":["conversations"],"description":"Assign an inbox thread (campaign_id + business_id) to a team member by user id, or pass null to unassign. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assigned_to":{"type":"integer","exclusiveMinimum":true,"minimum":0,"nullable":true,"description":"The user id to assign to, or null to unassign."}},"required":["assigned_to"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/conversations/{campaign_id}/{business_id}/category":{"post":{"operationId":"conversations_category","summary":"Categorize a reply thread","tags":["conversations"],"description":"Set or clear the category label on an inbox thread (campaign_id + business_id). Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","maxLength":64,"nullable":true,"description":"The category label, or null to clear."}},"required":["category"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/suppressions":{"get":{"operationId":"suppressions_list","summary":"List do-not-contact entries","tags":["suppressions"],"description":"List your workspace's do-not-contact (suppression) entries, newest first, optionally filtered by reason or a search substring. Read-only.","parameters":[{"schema":{"type":"string","enum":["manual","unsubscribe","bounce","complaint"]},"in":"query","name":"reason","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"q","required":false,"description":"Substring match on the blocked email/domain."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max entries per page (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"id":{},"value":{},"scope":{},"reason":{},"campaign_id":{},"created_at":{}},"additionalProperties":true}},"total":{},"next_cursor":{}},"additionalProperties":true}}}}}},"post":{"operationId":"suppressions_add","summary":"Add to do-not-contact list","tags":["suppressions"],"description":"Add an email address or a whole domain to your workspace's do-not-contact (suppression) list, so outreach never goes to it. Provide exactly one of email or domain. Reversible (an admin can remove it in the web app). Idempotent: adding the same entry twice is a no-op. Sends nothing and spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"A single email address to block."},"domain":{"type":"string","description":"A bare domain (e.g. \"competitor.com\") to block entirely."},"reason":{"type":"string","enum":["manual","unsubscribe","bounce","complaint"],"description":"Why it is blocked (default \"manual\")."}},"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/suppressions/stats":{"get":{"operationId":"suppressions_stats","summary":"Do-not-contact stats","tags":["suppressions"],"description":"Return counts of your do-not-contact (suppression) entries by reason (total / unsubscribe / bounce / complaint / manual). Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{},"unsubscribe":{},"bounce":{},"complaint":{},"manual":{}},"additionalProperties":true}}}}}}},"/v1/suppressions/bulk":{"post":{"operationId":"suppressions_bulk_add","summary":"Bulk add to do-not-contact","tags":["suppressions"],"description":"Add many emails/domains to your do-not-contact list at once (up to 10,000), as an array or newline/comma text. Idempotent. Sends nothing, spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"string"},"maxItems":10000,"description":"Array of emails/domains."},"text":{"type":"string","description":"Or a newline/comma-separated blob."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/suppressions/{suppression_id}":{"delete":{"operationId":"suppressions_remove","summary":"Remove from do-not-contact list","tags":["suppressions"],"description":"Remove one entry from your do-not-contact (suppression) list by its id (from suppression_list), which re-permits outreach to that email/domain. Because it re-enables contact to someone previously blocked (possibly an unsubscribe or complaint), it requires confirm:true. Removing an unsubscribe or complaint entry additionally requires a workspace owner/admin role (members can remove bounce/manual entries only). Reversible by re-adding. Inverse of suppression_add. NOTE: this re-permits outreach to a previously blocked recipient (possibly an unsubscribe or complaint).","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"suppression_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/suppressions/export":{"get":{"operationId":"suppressions_export","summary":"Export the do-not-contact list","tags":["suppressions"],"description":"Export your entire do-not-contact (suppression) list as CSV (columns email,scope,reason,source,blocked_at). Returns { format, filename, content }. Read-only.","responses":{"200":{"description":"Default Response"}}}},"/v1/skips":{"get":{"operationId":"skips_list","summary":"List skipped businesses","tags":["skips"],"description":"List businesses you have skipped (excluded from prospecting), paginated, with an optional search. Read-only.","parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"q","required":false,"description":"Search the skipped businesses."},{"schema":{"type":"integer","minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Per page (default 25)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"skips":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}},"total":{},"page":{},"per_page":{}},"additionalProperties":true}}}}}},"post":{"operationId":"skip_add","summary":"Skip a business","tags":["skips"],"description":"Mark a business as skipped so it is excluded from your prospecting views. business_id is from a search. Idempotent. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"The business id to skip."}},"required":["business_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"skips_clear_all","summary":"Clear all skipped businesses","tags":["skips"],"description":"Remove EVERY business from your skip list at once, so they all reappear in prospecting views. Requires confirm:true (bulk; reversible only by re-skipping each). Spends nothing.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"deleted":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/skips/{business_id}":{"delete":{"operationId":"skip_remove","summary":"Un-skip a business","tags":["skips"],"description":"Remove a business from your skip list so it reappears in prospecting views. business_id is the one you skipped (from skips_list). Idempotent. Inverse of skip_add. Spends nothing.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/credits/balance":{"get":{"operationId":"credits_balance","summary":"Get credit balance","tags":["credits"],"description":"Return the current ProspectUp credit balance for your workspace, in credit-cents and US dollars. Use this to check available credits before actions that spend them (each lead reveal or asset costs 100 credit-cents, i.e. one dollar). Read-only; spends nothing.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"balance_cents":{},"balance_dollars":{}},"additionalProperties":true}}}}}}},"/v1/credits/transactions":{"get":{"operationId":"credits_transactions","summary":"List credit transactions","tags":["credits"],"description":"List your workspace's credit ledger (charges, top-ups, refunds), newest first. Time-cursor paginated: pass the returned next_before to fetch older entries. Read-only.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"ISO timestamp; return entries older than this (from a previous next_before)."},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Max entries (default 50)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"id":{},"amount_cents":{},"balance_after_cents":{},"transaction_type":{},"reference_type":{},"reference_id":{},"description":{},"created_at":{}},"additionalProperties":true}},"next_before":{}},"additionalProperties":true}}}}}}},"/v1/field/exclusions":{"get":{"operationId":"field_exclusions","summary":"Businesses to exclude on the map","tags":["field"],"description":"Return the business ids you have already saved (to grey out / exclude on a map view). Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"saved_ids":{}},"additionalProperties":true}}}}}}},"/v1/field/visits":{"get":{"operationId":"field_visits_list","summary":"List field visits for a day","tags":["field"],"description":"List the field visits you logged on a given date. date is YYYY-MM-DD; omit it for today. Read-only.","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"date","required":false,"description":"YYYY-MM-DD; defaults to today."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"visits":{}},"additionalProperties":true}}}}}},"post":{"operationId":"field_visit_log","summary":"Log a field visit","tags":["field"],"description":"Record a field visit to a business: outcome (interested / callback / not_in / not_interested), the route date (YYYY-MM-DD), optional notes and transport mode. business_id from a search/lead. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_id":{"type":"integer","exclusiveMinimum":true,"minimum":0},"outcome":{"type":"string","enum":["interested","callback","not_in","not_interested"]},"route_date":{"type":"string","description":"YYYY-MM-DD."},"notes":{"type":"string","maxLength":4000},"transport_mode":{"type":"string"}},"required":["business_id","outcome","route_date"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/field/route-plan":{"post":{"operationId":"field_route_plan","summary":"Plan a visit route","tags":["field"],"description":"Compute an ordered visit route across a set of businesses (one of your lists, or explicit business ids, e.g. from a search) for a transport mode (driving/walking/bicycling/transit). Returns the ordered stops + total distance. Read-only; no credits charged. Limited to 27 stops (10 for transit) and a daily per-workspace directions allowance; an identical plan within a day is served from cache.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transport_mode":{"type":"string","description":"driving (default), walking, bicycling, or transit."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0},"business_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":100,"description":"Business ids with coordinates (a route takes at most 27 stops)."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/batches":{"post":{"operationId":"batches_create","summary":"Build a batch of leads from filters ($1/lead, refunds undelivered)","tags":["batches"],"description":"Build up to target_size NEW leads matching your filters directly into a list, in the background — the programmatic equivalent of Discover → Batch in the web app.\n\nREQUIRED STEPS BEFORE CALLING (do these or the build is rejected):\n1. Categories → run category_resolve([\"auto repair\"]) and pass the returned id(s) as category_ids.\n2. Location → run locations_search(\"California\") (a state or a city) and pass the returned id STRINGS as location_ids, e.g. [\"state:California\"] or [\"city:Fremont:California\"]. location_ids is REQUIRED (this is the most common mistake — a city/state NAME is not accepted, only the ids from locations_search).\n3. Destination → list_id (existing) or new_list_name (created atomically with the job).\n4. confirm_spend:true → a $1 hold is placed per targeted lead and every UNDELIVERED lead is refunded (a 100-target that finds 80 costs $80).\n\nOPTIONAL QUALITY FILTERS (same as prospect_search): has_email, has_website (false = no website), has_phone, min_rating / max_rating (e.g. max_rating:4 for \"under 4 stars\"), min_review_count / max_review_count, no_reviews, has_facebook, has_instagram, owner_operated. Combine freely — e.g. \"plumbers in TX with an email and no website under 4 stars\" = category plumber + location TX + has_email:true + has_website:false + max_rating:4.\n\nReturns { job_id, status:\"pending\" }. THE BUILD IS ASYNCHRONOUS — it is NOT done when this returns. You MUST then poll batch_status(job_id) every ~10-20s until status is \"complete\" (or \"failed\"); actual_size is the number of leads actually delivered. Never tell the user the batch is complete until batch_status says so.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target_size":{"type":"integer","minimum":1,"maximum":1000,"description":"How many leads to build (1-1000). $1 hold each; undelivered refunded."},"list_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Existing list id to build into (from list_list). Use this OR new_list_name."},"new_list_name":{"type":"string","minLength":1,"maxLength":255,"description":"Name for a new list, created with the job. Use this OR list_id."},"category_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"description":"Category ids from category_resolve. Provide these OR business_type_text OR filter_by."},"location_ids":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"description":"Location id STRINGS from locations_search (e.g. [\"state:California\"]). REQUIRED unless filter_by is given."},"business_type_text":{"type":"string","maxLength":255,"description":"Free-text business type (e.g. \"auto repair\") — an alternative or supplement to category_ids."},"filter_by":{"type":"string","maxLength":4000,"description":"Advanced: a raw Typesense filter string. If given, location_ids is not required."},"include_franchises":{"type":"boolean","description":"Include multi-unit/franchise businesses (default false = owner-operated SMBs only)."},"min_rating":{"type":"number","minimum":0,"maximum":5,"description":"Minimum Google star rating."},"max_rating":{"type":"number","minimum":0,"maximum":5,"description":"Maximum Google star rating, e.g. 4 for \"under 4 stars\"."},"min_review_count":{"type":"integer","minimum":0},"max_review_count":{"type":"integer","minimum":0},"no_reviews":{"type":"boolean","description":"Only businesses with zero reviews."},"has_website":{"type":"boolean","description":"true = has a website; false = NO website."},"has_phone":{"type":"boolean"},"has_email":{"type":"boolean","description":"Has at least one email on file."},"verified":{"type":"boolean","description":"Google-verified businesses only."},"price_range":{"type":"string","description":"Price tier, e.g. \"$\", \"$$\"."},"has_facebook":{"type":"boolean"},"has_instagram":{"type":"boolean"},"has_linkedin":{"type":"boolean"},"has_tiktok":{"type":"boolean"},"has_youtube":{"type":"boolean"},"has_photos":{"type":"boolean"},"photos_count_min":{"type":"integer","minimum":0},"photos_count_max":{"type":"integer","minimum":0},"has_booking":{"type":"boolean","description":"Has an online booking link."},"has_description":{"type":"boolean"},"has_owner_responses":{"type":"boolean","description":"Owner responds to reviews."},"owner_name_known":{"type":"boolean"},"owner_operated":{"type":"boolean"},"is_service_area":{"type":"boolean","description":"Service-area (no storefront) business."},"runs_fb_ads":{"type":"boolean"},"runs_google_ads":{"type":"boolean"},"review_recency_days":{"type":"integer","minimum":0,"description":"Reviewed within the last N days."},"gbp_post_recency_days":{"type":"integer","minimum":0,"description":"Posted to Google within the last N days."},"website_status":{"type":"string","enum":["ok","broken"]},"mobile_optimized":{"type":"boolean"},"has_ssl":{"type":"boolean"},"has_schema":{"type":"boolean"},"has_sitemap":{"type":"boolean"},"has_blog":{"type":"boolean"},"has_meta_desc":{"type":"boolean"},"has_booking_widget":{"type":"boolean"},"has_chat_widget":{"type":"boolean"},"content_quality_min":{"type":"number"},"content_quality_max":{"type":"number"},"ecommerce_platform":{"type":"array","items":{"type":"string"},"description":"e.g. [\"Shopify\",\"WooCommerce\"]."},"cms":{"type":"array","items":{"type":"string"},"description":"e.g. [\"WordPress\",\"Wix\"]."},"technographics":{"type":"array","items":{"type":"string"},"description":"Detected tech/tools."},"business_types":{"type":"array","items":{"type":"string"},"description":"AI-classified business types to include."},"exclude_business_types":{"type":"array","items":{"type":"string"}},"service_models":{"type":"array","items":{"type":"string"}},"digital_maturity_levels":{"type":"array","items":{"type":"string"}},"audience":{"type":"string","enum":["b2c","b2b","both"]},"wheelchair_accessible":{"type":"boolean"},"accepts_reservations":{"type":"boolean"},"has_delivery":{"type":"boolean"},"has_takeout":{"type":"boolean"},"has_dine_in":{"type":"boolean"},"has_outdoor_seating":{"type":"boolean"},"has_parking":{"type":"boolean"},"serves_alcohol":{"type":"boolean"},"open_weekends":{"type":"boolean"}},"required":["target_size"],"additionalProperties":false}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"get":{"operationId":"batches_list","summary":"List batch-build jobs","tags":["batches"],"description":"List your recent batch-build jobs with their status. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"status":{},"list_id":{},"list_public_id":{},"list_name":{},"target_size":{},"actual_size":{},"credits_charged":{},"error_message":{},"started_at":{},"completed_at":{},"created_at":{},"is_apple_discrepancy":{},"progress":{}},"additionalProperties":true}}}}}}}},"/v1/batches/{job_id}":{"get":{"operationId":"batches_get","summary":"Get a batch-build job status (poll until completed)","tags":["batches"],"description":"Return the status + progress of a batch-build job (job_id from batch_build_start). POLL this every ~10-20s until status is \"complete\" or \"failed\" — the build runs in the background and is not instant. Key fields: status (pending → running → complete | failed), target_size, actual_size (leads actually DELIVERED into the list), credits_charged, credit_refund_transaction_id (set once undelivered holds are refunded), progress, and error_message. Only report the batch as done — and only quote actual_size, not target_size — when status is \"complete\". Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"job_id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/categories":{"get":{"operationId":"categories_list","summary":"List / search categories","tags":["reference"],"description":"List or search ProspectUp business categories (id + name). Use to browse categories or resolve names to ids. Read-only.","parameters":[{"schema":{"type":"string"},"in":"query","name":"q","required":false,"description":"Search categories by name."},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}}},"/v1/categories/resolve":{"post":{"operationId":"categories_resolve","summary":"Resolve category names to ids","tags":["reference"],"description":"Turn business-category text (e.g. \"dentist\", \"coffee shop\", \"hvac\") into ProspectUp category ids for use as category_ids in prospect_search. Pass one or more names; for each you get the best-match id, canonical display_name, and slug (match is null when nothing matches). Reads the public category catalog. Read-only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20,"description":"Category names / keywords to resolve."}},"required":["names"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/locations":{"get":{"operationId":"locations_list","summary":"Search locations","tags":["reference"],"description":"Search US locations (cities / states) for building location filters. Returns matching location labels + ids. Read-only.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"q","required":true,"description":"Search text (city or state)."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"type":{},"label":{},"city":{},"state":{}},"additionalProperties":true}}}}}}}},"/v1/reference/subtypes":{"get":{"operationId":"reference_subtypes","summary":"Suggest business subtypes","tags":["reference"],"description":"Typeahead: given a keyword, suggest matching business subtypes to use as a search filter. Read-only.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"q","required":true},{"schema":{"type":"integer","minimum":1,"maximum":20},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{},"suggestions":{}},"additionalProperties":true}}}}}}},"/v1/reference/cities":{"get":{"operationId":"reference_cities","summary":"Suggest cities","tags":["reference"],"description":"Typeahead: given a keyword (and optional 2-letter state), suggest matching US cities for a location filter. Read-only.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"q","required":true},{"schema":{"type":"string"},"in":"query","name":"state","required":false},{"schema":{"type":"integer","minimum":1,"maximum":20},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{},"suggestions":{}},"additionalProperties":true}}}}}}},"/v1/reports":{"get":{"operationId":"reports_list","summary":"List generated reports","tags":["reports"],"description":"List the scan reports generated in your workspace, each with its shareable absolute url (plus per-report view metrics), paginated. For the full asset set of ONE business (maps audit, website, voice demo, …) use business_assets_get. Read-only.","parameters":[{"schema":{"type":"integer","minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"token":{},"status":{},"view_count":{},"unique_visitor_count":{},"avg_time_spent_seconds":{},"generated_at":{},"last_viewed_at":{},"business_id":{},"display_name":{},"city":{},"state":{}},"additionalProperties":true}}}}}}}},"/v1/tasks/due-today":{"get":{"operationId":"tasks_due_today","summary":"Tasks due today","tags":["tasks"],"description":"List active-campaign leads whose next outreach step is due (the day's task queue), with the business, campaign, and task type. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"business_id":{},"email_status":{},"text_status":{},"display_name":{},"city":{},"state":{},"campaign_id":{},"campaign_name":{},"task_type":{}},"additionalProperties":true}}}}}}}},"/v1/notifications":{"get":{"operationId":"notifications_list","summary":"List notifications","tags":["notifications"],"description":"List your workspace's in-app ProspectUp notifications, newest first, with an unread total. Pass unread_only to see only unread items. Read-only.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false,"description":"Max notifications (default 25)."},{"schema":{"type":"boolean"},"in":"query","name":"unread_only","required":false,"description":"Only return unread notifications."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"unread_count":{},"notifications":{"type":"array","items":{"type":"object","properties":{"notification_id":{},"type":{},"title":{},"body":{},"read":{},"created_at":{}},"additionalProperties":true}},"next_cursor":{}},"additionalProperties":true}}}}}}},"/v1/notifications/{notification_id}/read":{"post":{"operationId":"notifications_mark_read","summary":"Mark a notification read","tags":["notifications"],"description":"Mark one in-app notification as read by its notification_id. Org-scoped and idempotent.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"notification_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/notifications/read-all":{"post":{"operationId":"notifications_mark_all_read","summary":"Mark all notifications read","tags":["notifications"],"description":"Mark every unread in-app notification as read for your workspace. Returns how many were updated. Org-scoped and idempotent.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/dashboard/stats":{"get":{"operationId":"dashboard_stats","summary":"Dashboard campaign stats","tags":["dashboard"],"description":"Return the workspace dashboard campaign summary stats. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{},"top_campaigns":{},"credits":{},"is_mock":{}},"additionalProperties":true}}}}}}},"/v1/support/tickets":{"post":{"operationId":"support_tickets_create","summary":"File a support ticket","tags":["support"],"description":"Send a support request to the ProspectUp team on your behalf (a question, bug, or feature request). Creates an internal ticket; does not contact any prospect. Optionally categorize it with topic (billing | bug | feature | account | campaign | other).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","enum":["billing","bug","feature","account","campaign","other"],"description":"Ticket category. One of billing | bug | feature | account | campaign | other. Defaults to \"other\"."},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Short subject (4–200 chars). Derived from the message if omitted."},"message":{"type":"string","minLength":10,"maxLength":8000,"description":"The request details (10–8000 chars)."}},"required":["message"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/automations":{"get":{"operationId":"automations_list","summary":"List autopilot automation rules","tags":["automations"],"description":"List your autopilot (automation) rules — each links a saved-search to a campaign/list and auto-procures leads on a schedule. Returns each rule with its linked campaign + list, status, and lifetime totals (total_leads procured, total_spend_cents). Read-only. Answers \"what automations do I have running and what have they spent\".","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"public_id":{},"name":{},"status":{},"campaign_id":{},"campaign_name":{},"list_id":{},"list_name":{},"nl_prompt":{},"daily_lead_cap":{},"schedule_days":{},"schedule_tz":{},"schedule_hour":{},"auto_pause_empty_days":{},"last_run_at":{},"last_run_job_id":{},"total_leads":{},"total_spend_cents":{},"created_at":{},"updated_at":{}},"additionalProperties":true}}}}}}},"post":{"operationId":"automations_create","summary":"Create an autopilot rule","tags":["automations"],"description":"Create an autopilot rule: a scheduled saved-search that auto-procures new leads (spending credits per lead) into a rule-owned list and auto-enrolls them into the given campaign. The rule starts ACTIVE — if the campaign is active, procurement begins on the next scheduled day. Provide at least one targeting signal (filter_by, category_ids, or business_type_text). Not allowed on a COMPLETED campaign (attaching a rule would reopen it, and restarting campaigns stays out of the API — reopen it in the web app first). Requires confirm:true because it sets up recurring spend + outreach enrollment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaign_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"The campaign the rule feeds (from campaign_list)."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Rule name."},"daily_lead_cap":{"type":"integer","minimum":1,"maximum":1000,"description":"Max leads procured per run day (1–1000). Each procured lead spends credits."},"schedule_days":{"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"minItems":1,"maxItems":7,"description":"Which weekdays the rule runs (e.g. [\"mon\",\"wed\",\"fri\"])."},"schedule_hour":{"type":"integer","minimum":0,"maximum":23,"description":"Local firing hour 0–23 (default 9)."},"schedule_tz":{"type":"string","maxLength":64,"description":"IANA timezone (default: the campaign's timezone)."},"auto_pause_empty_days":{"type":"integer","minimum":1,"maximum":30,"description":"Auto-pause after this many consecutive empty runs (default 3)."},"filter_by":{"type":"string","maxLength":2048,"description":"Saved-search filter expression for targeting."},"category_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":50,"description":"Target category ids (from category_resolve / categories_list)."},"location_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":100,"description":"Target location ids (from locations_search)."},"business_type_text":{"type":"string","maxLength":255,"description":"Free-text business type to target, e.g. \"coffee shop\"."},"nl_prompt":{"type":"string","maxLength":2000,"description":"Natural-language description of the target (stored for reference)."},"email_verification_filter":{"type":"array","items":{"type":"string","enum":["valid","catch_all","not_verified"]},"minItems":1,"description":"Enrollment gate written onto the campaign: which email-verification statuses may enroll (default stays as-is)."}},"required":["campaign_id","name","daily_lead_cap","schedule_days"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"public_id":{},"name":{},"status":{},"campaign_id":{},"campaign_name":{},"list_id":{},"list_name":{},"nl_prompt":{},"daily_lead_cap":{},"schedule_days":{},"schedule_tz":{},"schedule_hour":{},"auto_pause_empty_days":{},"last_run_at":{},"last_run_job_id":{},"total_leads":{},"total_spend_cents":{},"created_at":{},"updated_at":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/automations/settings":{"get":{"operationId":"automations_settings","summary":"Autopilot budget + month-to-date spend","tags":["automations"],"description":"Your autopilot (automation) budget: the monthly spend cap and how much autopilot has spent so far this month. Read-only. Answers \"how much of my automation budget is left\".","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"monthly_cap_cents":{},"month_spent_cents":{}},"additionalProperties":true}}}}}},"patch":{"operationId":"automations_settings_update","summary":"Set the autopilot monthly spend cap","tags":["automations"],"description":"Set (or remove) your workspace's autopilot monthly spend cap in cents. All rules stop procuring for the rest of the month once month-to-date autopilot spend reaches the cap. Pass null to REMOVE the cap (unlimited — use deliberately). Requires confirm:true because it changes how much autopilot may spend.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"monthly_cap_cents":{"type":"integer","minimum":0,"nullable":true,"description":"New monthly cap in cents (e.g. 5000 = $50), or null to remove the cap."}},"required":["monthly_cap_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"monthly_cap_cents":{},"month_spent_cents":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/automations/{rule_id}":{"get":{"operationId":"automations_get","summary":"Get one autopilot rule + run history","tags":["automations"],"description":"Get a single autopilot rule by id (from autopilot_rules_list) plus its recent run log: per-run date, leads_added, assets_generated, spend, outcome, and reason. Read-only. Answers \"why did my automation stop\" or \"what did it add and when\".","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"rule_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{},"public_id":{},"name":{},"status":{},"campaign_id":{},"campaign_name":{},"list_id":{},"list_name":{},"nl_prompt":{},"daily_lead_cap":{},"schedule_days":{},"schedule_tz":{},"schedule_hour":{},"auto_pause_empty_days":{},"last_run_at":{},"last_run_job_id":{},"total_leads":{},"total_spend_cents":{},"created_at":{},"updated_at":{}},"additionalProperties":true}}}}}},"patch":{"operationId":"automations_update","summary":"Update an autopilot rule","tags":["automations"],"description":"Edit an autopilot rule's name, daily lead cap, schedule, auto-pause threshold, targeting, or enrollment gate. Changes apply from the next scheduled run. Does not change the rule status (use pause/resume). Requires confirm:true because the rule drives recurring credit spend + campaign enrollment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Rule name."},"daily_lead_cap":{"type":"integer","minimum":1,"maximum":1000,"description":"Max leads procured per run day (1–1000). Each procured lead spends credits."},"schedule_days":{"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"minItems":1,"maxItems":7,"description":"Which weekdays the rule runs (e.g. [\"mon\",\"wed\",\"fri\"])."},"schedule_hour":{"type":"integer","minimum":0,"maximum":23,"description":"Local firing hour 0–23 (default 9)."},"schedule_tz":{"type":"string","maxLength":64,"description":"IANA timezone (default: the campaign's timezone)."},"auto_pause_empty_days":{"type":"integer","minimum":1,"maximum":30,"description":"Auto-pause after this many consecutive empty runs (default 3)."},"filter_by":{"type":"string","maxLength":2048,"description":"Saved-search filter expression for targeting."},"category_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":50,"description":"Target category ids (from category_resolve / categories_list)."},"location_ids":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":100,"description":"Target location ids (from locations_search)."},"business_type_text":{"type":"string","maxLength":255,"description":"Free-text business type to target, e.g. \"coffee shop\"."},"nl_prompt":{"type":"string","maxLength":2000,"description":"Natural-language description of the target (stored for reference)."},"email_verification_filter":{"type":"array","items":{"type":"string","enum":["valid","catch_all","not_verified"]},"minItems":1,"description":"Enrollment gate written onto the campaign: which email-verification statuses may enroll (default stays as-is)."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"rule_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"public_id":{},"name":{},"status":{},"campaign_id":{},"campaign_name":{},"list_id":{},"list_name":{},"nl_prompt":{},"daily_lead_cap":{},"schedule_days":{},"schedule_tz":{},"schedule_hour":{},"auto_pause_empty_days":{},"last_run_at":{},"last_run_job_id":{},"total_leads":{},"total_spend_cents":{},"created_at":{},"updated_at":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"automations_delete","summary":"Delete an autopilot rule","tags":["automations"],"description":"Delete (soft) an autopilot rule: stops all future procurement permanently. The rule-owned list and its already-enrolled leads are kept and the campaign keeps running — only the automation stops. Requires confirm:true; recreate the rule to undo.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"rule_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/automations/{rule_id}/pause":{"post":{"operationId":"automations_pause","summary":"Pause an autopilot rule","tags":["automations"],"description":"Pause an autopilot rule: halts its scheduled procurement (no new leads, no new spend). Already-enrolled leads and the campaign itself are untouched. Reversible with autopilot_rule_resume.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"rule_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/automations/{rule_id}/resume":{"post":{"operationId":"automations_resume","summary":"Resume an autopilot rule","tags":["automations"],"description":"Resume a paused (or auto-paused) autopilot rule and reset its empty-run streak. Scheduled procurement — credit spend + campaign enrollment — restarts on the next scheduled day (only while its campaign is active). Requires confirm:true because it re-enables recurring spend + outreach enrollment.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"rule_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/account":{"get":{"operationId":"account_get","summary":"Get my account & workspace","tags":["account"],"description":"Return the calling credential's identity and active workspace: your user (name, email, verified), the workspace (name, industry, team size), your LIVE role in it, onboarding state, and trial/plan status. Use this to confirm WHICH workspace the agent is operating in (the #1 source of \"why is it empty\" confusion). Read-only; spends nothing.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{},"org":{},"onboarding":{},"is_admin":{},"role":{}},"additionalProperties":true}}}}}}},"/v1/account/preferences":{"get":{"operationId":"preferences_get","summary":"List copy-steering preferences","tags":["account"],"description":"List your workspace's saved COPY-STEERING preferences: free-text standing instructions (e.g. \"never open with a question\", \"keep subject lines under 6 words\") that the AI copy generator applies to every campaign's generated copy. Each row has id, preference text, active flag, source, and use_count. NOT email-recipient or account settings. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"post":{"operationId":"preference_add","summary":"Add a copy-steering preference","tags":["account"],"description":"Save a standing copy-steering instruction for the workspace — a short free-text directive the AI copy generator will apply to ALL future generated campaign copy (e.g. \"mention our 30-day guarantee\", \"no exclamation marks\"). Affects real outreach copy from the next generation onward; never sends anything itself. Remove with preference_remove. Returns the new preference id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preference":{"type":"string","minLength":1,"maxLength":1000,"description":"The standing instruction, one directive per call."}},"required":["preference"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/account/team":{"get":{"operationId":"team_list","summary":"List workspace team members","tags":["account"],"description":"List the members of your workspace with their roles and status, plus any pending invites. Owner/admin only (a non-admin credential gets a permission error). Read-only; no member changes are made here.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"currentUserId":{},"members":{},"pendingInvites":{}},"additionalProperties":true}}}}}}},"/v1/account/settings":{"get":{"operationId":"settings_get","summary":"Get workspace outreach settings","tags":["account"],"description":"Return your workspace's outreach settings: sending window (days/hours/timezone), follow-up policy, signature + sender title + company name, service profile (what you sell, target industries, geography, pricing), AI copy defaults (tone, length, avoid-phrases, custom instructions), and Instagram outreach config. Email infrastructure credentials are never included — custom_smtp_configured and google_workspace_connected report connection STATUS only. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sending_window":{},"followup":{},"signature":{},"sender_title":{},"company_name":{},"service":{},"ai":{},"instagram":{},"custom_smtp_configured":{},"google_workspace_connected":{}},"additionalProperties":true}}}}}}},"/v1/account/preferences/{preference_id}":{"delete":{"operationId":"preference_remove","summary":"Remove a copy-steering preference","tags":["account"],"description":"Delete a saved copy-steering preference by id (from preferences_get), so future generated copy stops following it. Already-generated copy is untouched. Requires confirm:true.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"preference_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/account/fit-score-weights":{"get":{"operationId":"fit_score_weights_get","summary":"Get fit-score weights","tags":["account"],"description":"Return your workspace's fit-score weights — how strongly each signal (website quality, digital maturity, GBP completeness, reputation strength, social presence, digital neglect) counts toward every prospect's 0–100 fit score. Defaults apply when never customized. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"weights":{}},"additionalProperties":true}}}}}},"put":{"operationId":"fit_score_weights_set","summary":"Set fit-score weights","tags":["account"],"description":"Set your workspace's fit-score weights (all six, each 0–10). Changes how every prospect's 0–100 fit score is computed from here on — omitting a key is not allowed because the server would reset it to its default, so read fit_score_weights_get first and send the full set. Reversible; spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"weights":{"type":"object","properties":{"website_quality":{"type":"number","minimum":0,"maximum":10,"description":"Weight for website quality (0–10, default 1)."},"digital_maturity":{"type":"number","minimum":0,"maximum":10,"description":"Weight for digital maturity (0–10, default 1)."},"gbp_completeness":{"type":"number","minimum":0,"maximum":10,"description":"Weight for gbp completeness (0–10, default 1)."},"reputation_strength":{"type":"number","minimum":0,"maximum":10,"description":"Weight for reputation strength (0–10, default 1)."},"social_presence":{"type":"number","minimum":0,"maximum":10,"description":"Weight for social presence (0–10, default 1)."},"digital_neglect":{"type":"number","minimum":0,"maximum":10,"description":"Weight for digital neglect (0–10, default 2)."}},"required":["website_quality","digital_maturity","gbp_completeness","reputation_strength","social_presence","digital_neglect"],"additionalProperties":false,"description":"All six weights (0–10 each)."}},"required":["weights"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/sequence":{"post":{"operationId":"campaign_sequence_append","summary":"Append a step to a draft campaign sequence","tags":["campaigns"],"description":"Append one step (postcard | email | sms | instagram | email_followup) to a DRAFT campaign's sequence. Only works while the campaign is a draft — appending to a live campaign would schedule new outreach, so edit active/paused campaigns in the web app. Existing steps are untouched (add-only). Returns the full sequence after the append. Sends nothing and spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"step":{"type":"object","properties":{"type":{"type":"string","enum":["postcard","email","sms","instagram","email_followup"],"description":"Channel for this step."},"day":{"type":"number","minimum":0,"maximum":365,"description":"Days after the previous step (0 = same day as enrollment for the first step)."},"prompt":{"type":"string","maxLength":4000,"description":"Free-text guidance for the AI copy of this step."},"cta_copy":{"type":"string","maxLength":1000},"offer_copy":{"type":"string","maxLength":2000},"email_subject":{"type":"string","maxLength":500,"description":"Subject line (email steps). Supports {{business_name}} merge tags and spintax."},"email_brief":{"type":"string","maxLength":4000,"description":"Body brief that steers the generated email copy."},"email_cta":{"type":"string","maxLength":1000},"sms_brief":{"type":"string","maxLength":2000,"description":"Brief for SMS steps."},"ig_opener":{"type":"string","maxLength":2000,"description":"Opener for Instagram steps."},"template_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"nullable":true,"description":"Postcard template id (postcard steps)."},"postcard_size":{"type":"string","enum":["4x6","6x9","6x11"]},"qr_destination_type":{"type":"string","enum":["report","custom_url"]},"custom_qr_url":{"type":"string","maxLength":2048,"nullable":true,"description":"Custom QR destination (postcard steps); only http(s) URLs are kept."}},"required":["type","day"],"additionalProperties":false,"description":"The step to append."}},"required":["step"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"put":{"operationId":"campaign_sequence_set","summary":"Replace a draft campaign's whole sequence","tags":["campaigns"],"description":"Replace a DRAFT campaign's entire sequence with the steps you provide, in order — the way to REORDER, EDIT, or bulk-REPLACE steps (campaign_sequence_append only adds; campaign_sequence_remove drops one). Read the current sequence from campaign_get, change the array (reorder / edit copy / drop steps), then pass the complete result here. Only works while the campaign is a draft — restructuring a live campaign would reschedule outreach for enrolled leads, so edit active/paused campaigns in the web app. Returns the full sequence after the replace. Sends nothing and spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["postcard","email","sms","instagram","email_followup"],"description":"Channel for this step."},"day":{"type":"number","minimum":0,"maximum":365,"description":"Days after the previous step (0 = same day as enrollment for the first step)."},"prompt":{"type":"string","maxLength":4000,"description":"Free-text guidance for the AI copy of this step."},"cta_copy":{"type":"string","maxLength":1000},"offer_copy":{"type":"string","maxLength":2000},"email_subject":{"type":"string","maxLength":500,"description":"Subject line (email steps). Supports {{business_name}} merge tags and spintax."},"email_brief":{"type":"string","maxLength":4000,"description":"Body brief that steers the generated email copy."},"email_cta":{"type":"string","maxLength":1000},"sms_brief":{"type":"string","maxLength":2000,"description":"Brief for SMS steps."},"ig_opener":{"type":"string","maxLength":2000,"description":"Opener for Instagram steps."},"template_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"nullable":true,"description":"Postcard template id (postcard steps)."},"postcard_size":{"type":"string","enum":["4x6","6x9","6x11"]},"qr_destination_type":{"type":"string","enum":["report","custom_url"]},"custom_qr_url":{"type":"string","maxLength":2048,"nullable":true,"description":"Custom QR destination (postcard steps); only http(s) URLs are kept."}},"required":["type","day"],"additionalProperties":false},"minItems":1,"maxItems":20,"description":"The COMPLETE intended sequence, in send order (at least one step). This fully replaces the existing steps."}},"required":["steps"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"campaign_sequence_remove","summary":"Remove one step from a draft campaign sequence","tags":["campaigns"],"description":"Remove a single step from a DRAFT campaign's sequence — by its 0-based position (index) or its step id (from campaign_get). Only works while the campaign is a draft (same reason as campaign_sequence_set). Cannot remove the last remaining step — a campaign needs at least one; use campaign_sequence_set to replace the whole sequence instead. Returns the sequence after removal. Sends nothing and spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"description":"0-based position of the step to remove (from campaign_get sequence order)."},"step_id":{"type":"string","maxLength":100,"description":"The step id to remove (from campaign_get) — use instead of index."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/copy":{"post":{"operationId":"campaign_copy_generate","summary":"Generate copy for one campaign lead","tags":["campaigns"],"description":"Generate (or re-generate) the AI outreach copy for ONE enrolled lead + sequence step, and store it on that lead. OVERWRITES any copy already stored for the lead — the previous version is not kept. Never sends anything: the stored copy only goes out if/when the campaign itself sends (launching stays out of the API). Not available on operator-copy campaigns (their per-lead copy is hand-written; generating would erase it). Returns the generated subject/body. Spends no credits.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"An ENROLLED lead (from campaign_leads_list)."},"step_type":{"type":"string","enum":["postcard","email","sms","instagram","email_followup"],"description":"Which sequence step to generate for (default: the first step)."},"step_id":{"type":"string","maxLength":100,"description":"Exact step id (from campaign_get sequence) when several steps share a type, e.g. two email_followup steps."},"polish_instructions":{"type":"string","maxLength":2000,"description":"One-off guidance applied to this generation only (e.g. \"shorter, mention the missing Apple listing\")."}},"required":["business_id"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/copy/regenerate":{"post":{"operationId":"campaign_copy_regenerate","summary":"Clear and regenerate a campaign's unsent copy","tags":["campaigns"],"description":"Clear the stored AI copy for ALL of a campaign's unsent leads (already-sent leads keep theirs) and queue fresh generation. Use after changing the brief/instructions/sequence so pending sends pick up the new direction. Destructive to the stored drafts (they are wiped, then regenerated); never sends anything. Blocked on completed/cancelled campaigns and on operator-copy campaigns (their hand-written copy would be erased). Returns how many email drafts and postcards were cleared. Spends no credits.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/postcard-copy":{"post":{"operationId":"postcard_copy_generate","summary":"Generate postcard copy for a campaign lead","tags":["campaigns"],"description":"Generate the AI postcard copy for ONE lead in a campaign, using a postcard template. Needs campaign_id, business_id (an enrolled lead), and template_id (a postcard template). Stores the copy on the campaign postcard for that lead — it does NOT print or send mail (sending stays out of the API). Free (spends no credits). Returns the generated copy.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"business_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"An enrolled lead (from campaign_leads_list)."},"template_id":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"A postcard template id (from a postcard-template list)."}},"required":["business_id","template_id"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaign-templates/{template_id}/use":{"post":{"operationId":"campaign_template_use","summary":"Create a campaign from a template","tags":["campaigns"],"description":"Create a new DRAFT campaign pre-filled from a template (template_id from campaign_templates_list) — copies its sequence, channels, and default settings so you start from a proven setup instead of scratch. Optional name (defaults to the template name). Returns the new draft campaign; then configure it (campaign_configure / campaign_mailboxes_set), add leads, and launch. Nothing is sent.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Name for the new campaign (defaults to the template name)."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/mailboxes":{"get":{"operationId":"mailboxes_list","summary":"List your sending mailboxes","tags":["campaigns"],"description":"List the email mailboxes your workspace can send campaigns from — each with its id, sender email + display name, status (active / warming / paused / error), and daily send cap. Use this to pick mailbox ids for campaign_mailboxes_set. Email-infrastructure/vendor details are never exposed. Read-only.","responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{campaign_id}/mailboxes":{"patch":{"operationId":"campaign_mailboxes_set","summary":"Choose which mailboxes a campaign sends from","tags":["campaigns"],"description":"Add and/or remove sending mailboxes for a campaign (by mailbox id from mailboxes_list) — this controls which inboxes deliver its outreach. Provide add[] and/or remove[]. Set this before launching so a campaign sends from the intended mailbox pool. campaign_id from campaign_list. Sends nothing by itself.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"add":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":500,"description":"Mailbox ids to add (from mailboxes_list)."},"remove":{"type":"array","items":{"type":"integer","exclusiveMinimum":true,"minimum":0},"maxItems":500,"description":"Mailbox ids to remove."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/configure":{"patch":{"operationId":"campaign_configure","summary":"Configure a campaign's sending settings","tags":["campaigns"],"description":"Set a DRAFT or PAUSED campaign's sending configuration before launch: the sending window (which weekdays + the daily start/end time + timezone), send mode (auto vs manual), daily send quota, default asset type, the enrollment email-verification gate, recipient preference, sender name/role, and per-send pacing. Only draft or paused campaigns can be reconfigured (changing a live one mid-send is blocked — pause it first). Existing sequence and mailbox selection are preserved. campaign_id from campaign_list. Sends nothing by itself.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"type":"string","maxLength":64,"description":"IANA timezone the send window is measured in, e.g. \"America/New_York\"."},"send_days":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"minItems":1,"maxItems":7,"description":"Weekdays to send on, 0=Sunday..6=Saturday. e.g. [1,2,3,4,5] = Mon–Fri."},"sending_window":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"24h \"HH:MM\", e.g. \"09:00\"."},"end":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"24h \"HH:MM\", e.g. \"17:00\"."}},"required":["start","end"],"additionalProperties":false,"description":"Daily window sends are allowed in (in the campaign timezone)."},"send_mode":{"type":"string","enum":["auto","manual"],"description":"auto = the engine sends automatically; manual = queues each send to your Tasks list to send by hand."},"daily_quota":{"type":"integer","minimum":1,"maximum":100000,"description":"Max emails per day for this campaign."},"asset_type":{"type":"string","enum":["report","maps_audit","instant_website","voice_demo","social_posts","custom","none"],"description":"Default asset attached to the outreach."},"email_verification_filter":{"type":"array","items":{"type":"string","enum":["valid","catch_all","not_verified","invalid"]},"minItems":1,"description":"Which email-verification statuses may enroll — the deliverability quality gate (e.g. [\"valid\"] = verified only)."},"recipient_preference":{"type":"string","enum":["business_preferred","business_only","any_deliverable"],"description":"Which address to send to: prefer the business inbox, business only, or any deliverable address."},"sender_name":{"type":"string","maxLength":120,"description":"Signature sender name."},"sender_role":{"type":"string","maxLength":120,"description":"Signature sender title/role."},"send_gap_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Minutes between sends per mailbox; 0 = spread evenly across the window."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/leads/{business_id}/skip":{"post":{"operationId":"campaign_lead_skip","summary":"Skip one lead on a campaign channel","tags":["campaigns"],"description":"Skip a single enrolled lead for ONE channel of a campaign (email | sms | instagram | postcard) with a reason — the lead stops surfacing for that channel and won't be contacted on it; other channels are untouched. Use to drop a bad fit or a wrong handle without removing the lead entirely (campaign_lead_remove takes it off the campaign). Safe on live campaigns — it only PREVENTS a send, never triggers one. campaign_id + business_id from campaign_leads_list. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["instagram","email","sms","postcard"],"description":"Which channel to skip the lead on."},"reason":{"type":"string","enum":["wrong_handle","private_account","not_a_fit","other"],"description":"Why it is skipped: wrong_handle | private_account | not_a_fit | other. Feeds lead-quality scoring."},"free_text":{"type":"string","maxLength":1000,"description":"Optional note (especially for reason=other)."}},"required":["channel","reason"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true},{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"business_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/priority":{"patch":{"operationId":"campaign_priority_set","summary":"Set a campaign's send priority","tags":["campaigns"],"description":"Set a campaign's send priority — when several campaigns share the same sending mailboxes, the LOWER priority number claims the day's send capacity first (1 = sends first; unset/default = 100). Use to make an urgent cadence win shared capacity, or push a lower-value one to the back. Takes effect on the next send cycle; does not change quotas or trigger a send. Works on draft, active, or paused campaigns (not completed/cancelled). campaign_id from campaign_list. Spends nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer","minimum":1,"maximum":10000,"description":"Send-priority rank; LOWER goes first (1 = highest priority). Set 100 to return to the default."}},"required":["priority"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaign-templates":{"get":{"operationId":"campaign_templates_list","summary":"List campaign templates","tags":["templates"],"description":"List reusable campaign templates available to your workspace — your own saved ones plus any shared/system templates. Use to find a starting point before building a campaign. Read-only.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"scope":{},"name":{},"description":{},"settings":{},"meta":{},"source_campaign_id":{},"times_used":{},"created_by":{},"created_at":{},"updated_at":{}},"additionalProperties":true}}}}}}},"post":{"operationId":"campaign_template_create","summary":"Create a campaign template","tags":["templates"],"description":"Save a new reusable campaign template (name + optional description + settings, i.e. the sequence/channel/copy defaults a future campaign starts from). Sends nothing. Returns the created template.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Template name."},"description":{"type":"string","maxLength":2000},"settings":{"type":"object","additionalProperties":{},"description":"Template config (sequence/channels/copy defaults); validated server-side."}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaign-templates/{template_id}":{"get":{"operationId":"campaign_template_get","summary":"Get a campaign template","tags":["templates"],"description":"Return one campaign template by id (from campaign_templates_list): its name, channels/sequence, and default settings. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{},"scope":{},"name":{},"description":{},"settings":{},"meta":{},"source_campaign_id":{},"times_used":{},"created_by":{},"created_at":{},"updated_at":{}},"additionalProperties":true}}}}}},"patch":{"operationId":"campaign_template_update","summary":"Update a campaign template","tags":["templates"],"description":"Edit a campaign template's name, description, or settings (from campaign_templates_list). Sends nothing. Only your own templates (not shared/system ones) can be edited.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":2000},"settings":{"type":"object","additionalProperties":{}}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"campaign_template_delete","summary":"Delete a campaign template","tags":["templates"],"description":"Delete (soft) one of your campaign templates by id. Shared/system templates cannot be deleted. Requires confirm:true.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaign-templates/{template_id}/duplicate":{"post":{"operationId":"campaign_template_duplicate","summary":"Duplicate a campaign template","tags":["templates"],"description":"Copy an existing campaign template into a new one you own (e.g. to tweak a shared/system template). Returns the copy.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/campaigns/{campaign_id}/save-as-template":{"post":{"operationId":"campaign_save_as_template","summary":"Save a campaign as a template","tags":["templates"],"description":"Save an existing campaign's configuration as a reusable template (by campaign_id, from campaign_list). Optional name/description default to the campaign's. Sends nothing. Returns the created template.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":2000}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"campaign_id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/reply-templates":{"get":{"operationId":"reply_templates_list","summary":"List reply templates","tags":["templates"],"description":"List your workspace's saved reply templates (reusable snippets for responding to prospects). Read-only. Note: MCP does not send replies — these are for reference/drafting.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}}}}}},"post":{"operationId":"reply_template_create","summary":"Create a reply template","tags":["templates"],"description":"Save a new reply template (a reusable snippet for replying to prospects). Sends nothing — it just stores the snippet for later use. Returns the created template.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Template name."},"body_text":{"type":"string","minLength":1,"maxLength":25000,"description":"The reply text."},"body_html":{"type":"string","maxLength":50000,"description":"Optional HTML version."}},"required":["name","body_text"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/reply-templates/{reply_template_id}":{"delete":{"operationId":"reply_template_delete","summary":"Delete a reply template","tags":["templates"],"description":"Delete one of your reply templates by id (from reply_templates_list). Requires confirm:true.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"reply_template_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/postcard-templates":{"post":{"operationId":"postcard_template_create","summary":"Create a postcard template","tags":["templates"],"description":"Save a new postcard design template (name, design object, and size e.g. \"6x9\"). Sends no mail — it just stores the reusable design. Returns the created template.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Template name."},"design":{"type":"object","additionalProperties":{},"description":"The postcard design object (front/back layout, copy, image refs)."},"size":{"type":"string","enum":["4x6","6x9","6x11"],"description":"Postcard size (default 6x9)."}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/postcard-templates/{template_id}":{"patch":{"operationId":"postcard_template_update","summary":"Update a postcard template","tags":["templates"],"description":"Edit a postcard template's name, design, or size (from a postcard-template list). Sends no mail.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"design":{"type":"object","additionalProperties":{}},"size":{"type":"string","enum":["4x6","6x9","6x11"]}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}},"delete":{"operationId":"postcard_template_delete","summary":"Delete a postcard template","tags":["templates"],"description":"Delete a postcard template by id. Requires confirm:true.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"template_id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/webhooks/event-types":{"get":{"operationId":"webhooks_event_types","summary":"List webhook event types","tags":["webhooks"],"description":"The catalog of events you can subscribe a webhook to. `*` subscribes to all.","responses":{"200":{"description":"Default Response"}}}},"/v1/webhooks":{"get":{"operationId":"webhooks_list","summary":"List webhook endpoints","tags":["webhooks"],"description":"Your registered webhook endpoints (secrets are never returned after creation).","responses":{"200":{"description":"Default Response"}}},"post":{"operationId":"webhooks_create","summary":"Create a webhook endpoint","tags":["webhooks"],"description":"Register an HTTPS URL. The signing secret is returned ONCE in this response — store it; it is never shown again. Deliveries are signed with `X-ProspectUp-Signature: t=<unix>,v1=<hmac-sha256>` over `<t>.<rawBody>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"HTTPS endpoint that will receive POSTed events."},"event_types":{"type":"array","items":{"type":"string"},"description":"Event types to subscribe to; omit or [\"*\"] for all."},"description":{"type":"string","maxLength":255}},"required":["url"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{},"url":{},"description":{},"event_types":{},"enabled":{},"disabled_reason":{},"created_at":{},"secret":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/webhooks/{id}":{"get":{"operationId":"webhooks_get","summary":"Get a webhook endpoint","tags":["webhooks"],"parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"operationId":"webhooks_delete","summary":"Delete a webhook endpoint","tags":["webhooks"],"description":"Stops all future deliveries to this endpoint.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"deleted":{}},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/webhooks/{id}/ping":{"post":{"operationId":"webhooks_ping","summary":"Send a test event","tags":["webhooks"],"description":"Queues a `webhook.ping` delivery to this endpoint so you can verify signature handling. Delivered within ~1 minute; check the delivery status via your receiver.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/import":{"post":{"operationId":"leads_import","summary":"Import leads from a CSV","tags":["leads"],"description":"Upload a CSV as `multipart/form-data` to stage a lead import. Fields: `file` (the CSV, required), `list_name` (required — names the new list), `column_map` (optional JSON mapping your headers to lead fields), `tags` (optional JSON array). Returns `202` with a preview (valid/duplicate counts + the credit hold placed at $1 per new valid row). Then POST /v1/leads/import/{id}/confirm to charge + run, or /cancel to refund. Poll GET /v1/leads/import/{id}.","responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/import/{id}":{"get":{"operationId":"leads_import_get","summary":"Get a CSV import job","tags":["leads"],"description":"Get the status of a CSV import job by id (from the upload response): whether it is a preview awaiting confirmation, running, or complete, plus row counts. Read-only.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/leads/import/{id}/confirm":{"post":{"operationId":"leads_import_confirm","summary":"Confirm a CSV import (charges the hold, starts it)","tags":["leads"],"description":"Confirm a previewed CSV import by its job id: converts the credit hold placed at upload ($1 per new valid row) into a charge and starts importing in the background. Requires confirm_spend:true. Poll the job for progress. The unused portion of the hold is refunded on completion.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/leads/import/{id}/cancel":{"post":{"operationId":"leads_import_cancel","summary":"Cancel a CSV import","tags":["leads"],"description":"Cancel a previewed CSV import by its job id and refund the credit hold placed at upload. Safe: nothing is charged and no leads are created. Inverse of confirming.","parameters":[{"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{},"additionalProperties":true},{"type":"array"},{}]}}}}}}},"/v1/sales/summary":{"get":{"operationId":"sales_summary_get","summary":"Get the sales summary","tags":["sales"],"description":"One-call summary of what ProspectUp is doing for your workspace, for a dashboard. Returns: tiles for the last `days` (default 7) with the previous period and a daily series — new leads found by your saved audiences, conversations started (first HUMAN reply; auto-replies excluded), prospects who looked at your work (asset views excluding bots and your own previews, plus postcard QR scans), and open Interested/Meeting threads waiting in the inbox; an all-time pipeline (businesses in your lists, reached, replied, won) with won value counted once per business; your active/paused campaigns by most recent reply; and what needs you (warm replies, won businesses with their Google Place IDs, hot prospects, each with their asset opens), each with a link into the web app. Also results for the window (or all_time): revenue and clients won with the previous period, credit balance and credits used, a lead-to-client funnel, and per custom asset type (scan report, website, voice demo, listings scan) how many were made, opened by prospects, and the reply rate of outreach that sent it; campaigns carry the asset they send, sent, replies, Won and Won value. Counts are distinct businesses. Read-only; spends nothing.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":90},"in":"query","name":"days","required":false,"description":"Window length in calendar days (default 7)."},{"schema":{"type":"boolean"},"in":"query","name":"all_time","required":false,"description":"Results (funnel, revenue won, credits used, asset performance) over all time instead of the window. Tiles keep the window."}],"responses":{"200":{"description":"Default Response"}}}},"/v1/prospects/count":{"post":{"operationId":"prospects_count","summary":"Count matching prospects","tags":["sales","prospects"],"description":"Count businesses in ProspectUp's global dataset that match either structured filters (the same filters as prospect_search: category_ids, city, state, rating, review count, website, social, Google profile and website signals, ...) or a plain-English `prompt` (parsed like discover_search). Returns the total, what was matched, and `open_url`, a link that opens the same search in the ProspectUp web app. Returns no businesses. Structured filters are free; a prompt uses an LLM parse that draws on a per-organization daily budget, so a budget error is terminal (do not retry). Pass a prompt OR filters, not both. Read-only; spends no credits.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":500,"description":"Plain-English description, e.g. \"plumbers in Austin, TX\"."},"category_ids":{"type":"array","items":{"type":"integer"},"description":"Category ids from category_resolve."},"city":{"type":"string","description":"US city name."},"state":{"type":"string","description":"US state, 2-letter code preferred (e.g. \"TX\")."},"min_rating":{"type":"number","minimum":0,"maximum":5},"max_rating":{"type":"number","minimum":0,"maximum":5},"min_review_count":{"type":"integer","minimum":0},"max_review_count":{"type":"integer","minimum":0},"no_reviews":{"type":"boolean","description":"Only businesses with zero reviews."},"has_website":{"type":"boolean","description":"true = has a website; false = no website."},"exclude_franchises":{"type":"boolean","description":"Exclude confirmed multi-unit/franchise businesses (default true)."},"has_phone":{"type":"boolean"},"has_email":{"type":"boolean","description":"Has at least one email on file."},"verified":{"type":"boolean","description":"true = Google-verified only; false = not verified."},"price_range":{"type":"string","description":"Price tier, e.g. \"$\", \"$$\"."},"has_facebook":{"type":"boolean"},"has_instagram":{"type":"boolean"},"has_linkedin":{"type":"boolean"},"has_tiktok":{"type":"boolean"},"has_youtube":{"type":"boolean"},"has_photos":{"type":"boolean"},"photos_count_min":{"type":"integer","minimum":0},"photos_count_max":{"type":"integer","minimum":0},"has_booking":{"type":"boolean","description":"Has an online booking link."},"has_description":{"type":"boolean"},"has_owner_responses":{"type":"boolean","description":"Owner responds to reviews."},"owner_name_known":{"type":"boolean"},"owner_operated":{"type":"boolean"},"is_service_area":{"type":"boolean","description":"Service-area (no storefront) business."},"runs_fb_ads":{"type":"boolean"},"runs_google_ads":{"type":"boolean"},"review_recency_days":{"type":"integer","minimum":0,"description":"Reviewed within the last N days."},"gbp_post_recency_days":{"type":"integer","minimum":0,"description":"Posted to Google within the last N days."},"website_status":{"type":"string","enum":["ok","broken"]},"mobile_optimized":{"type":"boolean"},"has_ssl":{"type":"boolean"},"has_schema":{"type":"boolean"},"has_sitemap":{"type":"boolean"},"has_blog":{"type":"boolean"},"has_meta_desc":{"type":"boolean"},"has_booking_widget":{"type":"boolean"},"has_chat_widget":{"type":"boolean"},"content_quality_min":{"type":"number"},"content_quality_max":{"type":"number"},"ecommerce_platform":{"type":"array","items":{"type":"string"},"description":"e.g. [\"Shopify\",\"WooCommerce\"]."},"cms":{"type":"array","items":{"type":"string"},"description":"e.g. [\"WordPress\",\"Wix\"]."},"technographics":{"type":"array","items":{"type":"string"},"description":"Detected tech/tools."},"business_types":{"type":"array","items":{"type":"string"},"description":"AI-classified business types to include."},"exclude_business_types":{"type":"array","items":{"type":"string"}},"service_models":{"type":"array","items":{"type":"string"}},"digital_maturity_levels":{"type":"array","items":{"type":"string"}},"audience":{"type":"string","enum":["b2c","b2b","both"]},"wheelchair_accessible":{"type":"boolean"},"accepts_reservations":{"type":"boolean"},"has_delivery":{"type":"boolean"},"has_takeout":{"type":"boolean"},"has_dine_in":{"type":"boolean"},"has_outdoor_seating":{"type":"boolean"},"has_parking":{"type":"boolean"},"serves_alcohol":{"type":"boolean"},"open_weekends":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}}},"servers":[{"url":"https://api.prospectup.ai"}],"security":[{"bearerAuth":[]}]}