Skip to main content
Glama

Server Details

Find B2B companies, research them with AI and run cold email campaigns from your agent.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
OAuth
Works in Glama
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
Sellvance/sellvance-mcp
GitHub Stars
0
Server Listing
Sellvance MCP server
ChatGPT
–
Claude
–

TDQS

C2.9/5.0

Scored across 271 tools

Disambiguation2/5

While individual descriptions are exceptionally detailed, the 271-tool surface contains many near-duplicates whose boundaries are hard to hold in an agent's working memory: `leads_bulk_add_to_segment` vs `leads_bulk_add_to_segment_bulk` vs `leads_bulk_selection_action`, `messages_approve` vs `campaigns_approve_messages` vs `messages_bulk_approve`, and parallel `list`/`retrieve`/`json_gz` variants for discovery reference data. Overlapping DNS-record tools (`..._dns_records_create`, `..._dns_records_list` which also creates, `..._live_retrieve`, `..._delete_create`, `..._update_create`) are especially difficult to tell apart. The rich descriptions mitigate but do not eliminate misselection risk.

Naming Consistency3/5

Most names follow a readable resource_verb snake_case pattern (e.g. `leads_get`, `segments_list`, `messages_send_now`), but verb vocabulary is inconsistent: `get` vs `retrieve` vs `list`, `delete` vs `destroy`, and DRF-style suffixes like `partial_update`, `delete_create`, `update_create`, and `run_all` are mixed in. Namespace prefixes also vary inconsistently (`campaigns_`, `workspaces_`, `action_items_`, `discovery_`, and many unprefixed). It is still broadly parseable, but not a clean uniform convention.

Tool Count1/5

271 tools is an extreme mismatch for practical agent use; even for a large outreach/CRM platform this far exceeds the 3-15 tool sweet spot. The sheer volume makes tool selection, context budgeting, and lifecycle reasoning impractical without extensive external documentation.

Completeness4/5

Coverage of the core domain is very broad: campaigns, sequences, steps, leads, segments, messages, mailboxes, domains, compliance, consents, suppressions, discovery, saved searches, experiment plans, and jobs all have substantial lifecycle operations. Some referenced tools appear absent from the surface (e.g. `billing_balance`, `billing_pricelist`, `files_download`), and a few operational gaps remain, but the surface is largely complete for the stated platform.

Publisher details

Operator
Sellvance
Operator website
https://sellvance.com
Vendor relationship
First-party
Documentation
Not provided
Privacy policy
Not provided
Trust center
Not provided
Restrictions
Not provided

Available Tools

271 tools
action_items_listAInspect

The Tasks list, newest first, across active and paused campaigns. kind says which:

  • failed — an API step's call failed. Resolve with campaigns_action_retry, campaigns_action_mark_done or campaigns_action_skip.

  • manual — a manual step is due; instructions says what to do (lead variables filled in). When it is done, call campaigns_action_mark_done (optionally with context values); the next step, e.g. an email, waits until then. Or campaigns_action_skip.

  • rerouted — an email step the compliance rules don't allow for this lead (consent needed in their country, a personal mailbox) became a task to reach them on rerouted_to (linkedin / call) instead, per the campaign's blocked_email_fallback. instructions says why and how. Call campaigns_action_mark_done once you reached out (the lead moves to the next step) or campaigns_action_skip.

Filter with ?campaign=<sqid> / ?step=<sqid> / ?kind=; paginated with ?page= / ?per_page=.

Method: GET /api/v1/workspaces/{workspace_sqid}/action-items/

Inputs: kind, page, step, campaign, +1 more.

campaigns_action_executionsCInspect

Every attempt, newest first: status, outputs written, error, who triggered it.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/logs/{log_sqid}/executions/

Inputs: sqid (required), log_sqid (required).

campaigns_action_mark_doneAInspect

Completes a manual step once the person has done it, or an API step whose work was done outside Sellvance (e.g. the external system was down). Optional context is written to the lead first — the values the API would have returned, like {"promo_end": "2026-11-30"} — coerced to each context field's type, so later emails that use them still render. Moves the lead to 35 (Step Done); it then continues with the next step on the normal delay. Works on a failed (15) or pending (0) step, and on an email step rerouted to a LinkedIn / call task (16, kind=rerouted in action_items_list) once you reached the lead that way.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/logs/{log_sqid}/mark-done/

Inputs: sqid (required), log_sqid (required), note, context.

campaigns_action_retryAInspect

A failed API step holds only its own lead (status 15, Action Failed); this puts it back to Pending so the next scheduler tick (≤10 min) runs it again. With run_now=true it runs immediately and the response carries the outcome (35 Step Done or 15 Action Failed). Side effects: this makes the real external call again; profiles that send {{run.key}} as an Idempotency-Key are protected from double effects.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/logs/{log_sqid}/retry/

Inputs: sqid (required), log_sqid (required), run_now.

campaigns_action_retry_failedAInspect

Puts every lead at 15 (Action Failed) on this step back to Pending; the next tick runs them. Use after an outage of the external system. Side effects: real calls.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/steps/{step_sqid}/retry-failed/

Inputs: sqid (required), step_sqid (required).

campaigns_action_skipAInspect

Cancels the campaign for this one lead (pending messages and steps). The lead ends COMPLETED so autopilot does not enrol it again and re-run the call; use leads_bulk_reset_to_new to put it back in play. Other leads are untouched.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/logs/{log_sqid}/skip/

Inputs: sqid (required), log_sqid (required).

campaigns_activateAInspect

Flips is_active=true and kicks off background processing. Returns immediately; actual send throughput is gated by per-mailbox daily limits (see email_configs and send-limits).

Who gets enrolled depends on autopilot. With is_autopilot_enabled=true, leads are enrolled from the campaign's segment up to add_limit a day, starting now. With it off, activating enrols nobody — add leads yourself with campaigns_add_leads, which ignores the cap.

Pre-flight checks the user should run first:

  • billing_balance ≥ estimated cost — size it from the live rates in billing_pricelist.

  • At least one enabled email_config attached to the campaign.

  • With the unsubscribe link or open tracking on, at least one mailbox whose domain serves those links (link_domain_issue on the campaign); otherwise 409 link_domain — links never point at the shared sellvance.com.

  • messages_preview ran without template errors.

  • campaigns_preflight: show the user the compliance report (who the country/opt-out rules exclude and why) and record their acknowledgement with campaigns_preflight_acknowledge. When the workspace enforces the pre-flight, activating without a current acknowledgement is 409 preflight_ack_required (the body carries the report). Otherwise activation proceeds, the missing acknowledgement is logged, and the response's compliance_preflight carries the report so you can show it. Excluded leads are dropped automatically either way.

Idempotent on already-active campaigns.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/activate/

Inputs: name (required), sqid (required), segment (required), sequence (required), +13 more.

campaigns_add_leadsAInspect

Add specified leads to the campaign's first step regardless of the daily add_limit quota. Validation is per-lead: ineligible leads are returned in skipped with a stable reason code (not_found, not_in_segment, status_not_new, already_enrolled, no_first_step, suppressed — the address opted out or bounced) instead of aborting the whole request.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/add-leads/

Inputs: sqid (required), lead_sqids (required).

campaigns_approve_messagesAInspect

Bulk equivalent of messages_approve, scoped to one campaign step. Mirrors the UI Approve button on the /ws/outreach/campaign/<sqid>/step/<step_sqid>/created page. Typical flow after campaigns_generate_messages completes:

  1. campaigns_generate_messages on a set of leads → returns task_sqid.

  2. jobs_get(task_sqid) → wait for COMPLETED.

  3. campaigns_approve_messages with the same lead_sqids → flip all their freshly-generated messages NEW/REVIEW_REQUIRED → APPROVED; send scheduler picks them up on the next tick.

Input is Lead sqids, not Message sqids — the view resolves each lead to its current Message for this (campaign, step) pair. Reuses the same identifier the agent already has from the generate-messages call.

Synchronous, no cost. Approving just flips the Message status and computes scheduled_at via get_next_delivery_time (respecting per-mailbox daily / hourly limits). No connects are charged — the connects are already paid at generation time.

Idempotent. Approving an already-APPROVED message reschedules it (useful if you paused a campaign and want to restart sends with fresh delivery times). Messages in terminal states (SENT, DELIVERED, READ, BOUNCED, UNSUBSCRIBED, CANCELED) are skipped with reason already_finalized — no way to un-send an email.

Skip reason codes: not_found (no lead with that sqid in workspace), not_enrolled_on_step (no CampaignLog for this campaign+step+lead), no_message (CampaignLog exists but generation hasn't produced a Message yet — re-call campaigns_generate_messages first), already_finalized, compliance_blocked (a compliance rule excludes the lead — compliance_reason says which; the message was canceled).

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/steps/{step_sqid}/approve-messages/

Inputs: sqid (required), step_sqid (required), lead_sqids (required).

campaigns_archiveAInspect

Files the campaign away without deleting anything. Cancels it for every lead first (so nothing keeps sending from behind the shelf), unpins it, and moves it to state=40 ARCHIVED, which campaigns_list hides by default.

Everything is kept: every message sent to a lead, the campaign's stats, and its step history. This is the endpoint to reach for when campaigns_delete returns 409.

Archiving also releases the campaign's hold on its sequence and segment: once archived, deleting either of those succeeds and the campaign's reference to it is set to null. Reversible with campaigns_unarchive — but only while the sequence and segment still exist.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/archive/

Inputs: sqid (required).

campaigns_autopilot_runAInspect

Forces one autopilot tick: works out how far this campaign is from filling today's quota, restarts enrichment chains that stalled upstream, and pulls fresh prospects from the saved searches feeding its segment.

dry_run defaults to true — the response is identical but nothing is written and no connects are spent. Pass dry_run=false to actually acquire. A live run charges ADD_LEAD_FROM_DISCOVERY per new lead plus whatever the upstream enrichment chain costs, so check billing_balance first.

Enrichment is asynchronous: reconciled[].task_sqids are jobs to poll with jobs_get, and leads pulled now reach the campaign only once their chain and its qualification finish.

Never enables anything on the user's behalf — a paused saved search or a disabled qualification comes back in blockers. Note a saved search's is_enabled is irrelevant here: it gates the hourly scheduled run only. Set its add_limit to 0 to stop autopilot pulling from it.

Typical flow: campaigns_pipeline to see the blockers, fix them, run this with dry_run=true to check the plan, then dry_run=false. Autopilot does all of this by itself every 10 minutes when is_autopilot_enabled is set.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/autopilot-run/

Inputs: sqid (required), dry_run, max_pull.

campaigns_cancelAInspect

Cancels every pending and scheduled message for this campaign, resets its live leads, and moves it to state=30 CANCELLED. Already-sent messages are preserved; in-progress sends finish. Irreversible — to resume, you'd need to create a new campaign. Prefer campaigns_pause if you just want a temporary halt, or campaigns_archive if you also want it out of the campaign list (archiving cancels first).

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/cancel/

Inputs: sqid (required).

campaigns_createAInspect

A campaign binds one sequence to one segment, plus the SMTP email_configs it can send through. After creation:

  1. The campaign is paused (is_active=false) by default.

  2. Use messages_preview with the sequence + segment to see what the first emails will look like for real leads — this lets the user catch template bugs before sending.

  3. campaigns_activate to start sending. Messages are generated in the background (returns a job_sqid).

Immutable fields after creation: sequence, segment. To retarget, delete and recreate. email_configs, priority, is_autopilot_enabled, add_limit, and unsubscribe settings can all be updated later.

Without at least one enabled SMTP email_config attached, activation will fail.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/

Inputs: name (required), segment (required), sequence (required), pinned, +12 more.

campaigns_deleteAInspect

Deletes the campaign record and everything that hangs off it — its step history and the messages it generated, sent ones included.

For that reason it returns 409 campaign_has_sent_messages as soon as the campaign has sent anything: those messages are the record of what was said to a lead and are not ours to erase. Use campaigns_archive for a campaign that is simply finished — it stops the campaign, hides it from the list, keeps every message, and frees its sequence and segment to be deleted.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/

Inputs: sqid (required).

campaigns_facetsAInspect

Returns the distinct values of one campaign column with their counts, ordered by count descending — the data behind the value checklist in the campaign list's column menus.

Filterable columns: name, is_active, pinned, priority, add_limit, sequence_name, segment_name, created_at, updated_at. The row counters and signal verdicts are computed per row and are not offered.

Pass the other columns' active qf entries to get counts that match what is on screen; any entry for field itself is ignored.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/facets/

Inputs: field (required), q, limit.

campaigns_generate_messagesAInspect

Per-step, per-lead equivalent of the auto-generation that runs during campaigns_activate. Use this to cover leads that are still PENDING on a specific step — typically because:

  • new leads were enrolled after the campaign first activated,

  • a previous activation ran out of connects mid-way, or

  • the user wants to regenerate selectively after tweaking the sequence template.

Input is Lead sqids, not CampaignLog sqids. The natural source is campaigns_step_logs with ?status=0. The endpoint resolves each Lead to its CampaignLog row for this (campaign, step) pair, filters to status=PENDING, and queues the generation as a background Celery task.

Returns task_sqid — poll jobs_get(task_sqid) until status == 'COMPLETED' (or 'FAILED'). Per-lead generation errors (unresolved ${vars}, AI snippet failures) appear in the task's result payload; the affected rows stay PENDING so a follow-up call can retry them.

Cost. One COMPOSE_EMAIL charge per generated message; see billing_pricelist for the current rate. The task does a batch-level balance pre-check before charging anything; if the account is short on connects the whole task fails cleanly with no partial charges. Call billing_balance before batches of 1000+.

Idempotent. If the task crashes halfway, re-calling with the same lead sqids picks up the still-PENDING rows; already-generated rows are skipped silently inside the per-row SELECT … FOR UPDATE SKIP LOCKED transaction.

Race-safe with the background process_campaign_steps_pending_status scheduler — both paths use the same row lock.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/steps/{step_sqid}/generate-messages/

Inputs: sqid (required), step_sqid (required), lead_sqids (required).

campaigns_getAInspect

Returns the full campaign record. When diagnosing 'why isn't this campaign sending?', inspect these fields in order:

  1. is_active — false means paused/draft; flip with campaigns_activate.

  2. add_limit — 0 disables automatic enrolment (campaign stays active but no new leads are pulled from the segment). Manual campaigns_add_leads bypasses the cap. Positive values cap NEW enrolments per UTC day.

  3. current_add_count vs add_limit — if equal, today's quota is exhausted; resets at UTC midnight (last_add_reset_at).

  4. list_stats.available — how many segment leads are eligible right now. 0 with total > 0 usually means already-enroled, missing email, or bounced.

  5. is_autopilot_enabled — if false, messages sit in REVIEW_REQUIRED until approved via messages_approve.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/

Inputs: sqid (required).

campaigns_listAInspect

Returns campaigns ordered by priority desc, then creation time desc.

Archived campaigns are hidden by default. Pass ?state=archived to see only those, ?state=__all__ for everything, or a comma-separated list (?state=active,paused). state is the lifecycle: 0 ACTIVE, 10 PAUSED, 20 COMPLETED, 30 CANCELLED, 40 ARCHIVED; is_active is the derived "currently sending" flag.

Key response fields to inspect:

  • add_limit — UTC-daily cap on NEW leads auto-enroled from the segment. 0 disables automatic enrolment (a common gotcha: a campaign can be is_active=true yet pull no new leads). Manual campaigns_add_leads bypasses the cap.

  • current_add_count / last_add_reset_at — today's counter toward add_limit, resets at UTC midnight.

  • list_stats — {available, added_today, completed, total} for the bound segment. available=0 on an active campaign often means the segment is drained OR add_limit=0.

  • is_autopilot_enabled — if true, messages skip REVIEW_REQUIRED and send straight through.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/

Inputs: qf, limit, state, offset, +4 more.

campaigns_mergeAInspect

Body {target: '<other_campaign_sqid>'} — moves every lead from this campaign into the target and marks the source cancelled. Useful when you realise two campaigns are essentially the same and want to avoid double-emailing.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/merge/

Inputs: sqid (required), target (required).

campaigns_messages_chartAInspect

Daily time series of messages for a campaign. Query params: from=YYYY-MM-DD and to=YYYY-MM-DD (≤180 days apart). Returns three date-keyed dicts: {sent, failed, read} so you can build a throughput / bounce / read-rate chart. Useful for weekly campaign health reports.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/messages-chart/

Inputs: to (required), from (required), sqid (required).

campaigns_pauseAInspect

Stops generating or scheduling new messages. Already-queued messages finish sending (envelope-level). Idempotent — safe to call on an already-paused campaign. Use campaigns_activate to resume. If you want to stop permanently including the queue, use campaigns_cancel instead.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/pause/

Inputs: name (required), sqid (required), segment (required), sequence (required), +13 more.

campaigns_pinCInspect

Cosmetic only — does not affect priority or processing.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/pin/

Inputs: sqid (required).

campaigns_pipelineAInspect

The 'why is my campaign empty?' endpoint. Returns what one autopilot tick would do right now — computed as a dry run, so it writes nothing and spends nothing — plus the recent history of what it actually did.

sizing carries the arithmetic. The deficit is bounded by two independent ceilings: remaining_add_quota (the campaign's daily enrolment cap) and remaining_send_capacity (mailbox slots left after already-queued messages). Leads already on hand (ready_in_target) and already bought and still enriching (in_flight_upstream) are then subtracted.

blockers[] is the actionable part — each has a stable code and, where relevant, the object_sqid to go fix.

availability answers "are the campaign's lists used up?": per segment on the chain, how many leads are ready, still processing, filtered out by qualification, or already used.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/pipeline/

Inputs: sqid (required), history.

campaigns_preflightAInspect

The compliance pre-flight report for a campaign: who the country, opt-out, personal-mailbox and evidence rules will exclude, and why. Covers the segment's NEW leads plus the leads already enrolled and not finished.

Show the user headline first: allowed of total contacts can be emailed, set_aside held back now, would_set_aside more once rules in warn mode are switched on (they are still emailed today), plus summary / would_summary, the one-line explanations to quote. groups is the same split by short label, each contact counted once (largest first).

Also returns totals (allowed = no finding at all, excluded = blocked by a rule in enforce mode, warned = would be excluded once that rule is enforced), tiers (country rule tiers), reasons (the details: one row per reason and country, with a short label and why/fix text, class, consent_can_lift, can_unlock — the customer can lift it per lead: a consent record, or for personal_mailbox (class business_use) an existing customer, a published business listing or leads_confirm_business_use — and a few example_lead_sqids), workspace_checks (sender details, GDPR legitimate-interest assessment and privacy notice when EU/EEA/UK leads are present), mailboxes (health of the campaign's mailboxes), report_hash, and acknowledgement (whether the user's acknowledgement still covers this report).

Lists over 20,000 leads are sampled evenly and the counts scaled (sample). The report is cached for two minutes; pass refresh=true after fixing something. Excluded leads are dropped automatically at generate, approve and send — this report makes that visible.

Typical flow: show the report to the user, then campaigns_preflight_acknowledge with its report_hash, then campaigns_activate.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/preflight/

Inputs: sqid (required), refresh.

campaigns_preflight_acknowledgeAInspect

Record that the user reviewed the pre-flight report. Send the report_hash from campaigns_preflight. Only acknowledge after showing the user the report's excluded and warned counts and reasons — this is the customer accepting the rules, not a formality.

An acknowledgement lasts until the exclusions change materially (a new reason or country, or the excluded/warned count moving by more than 10% or 50 leads). 409 preflight_report_changed when the hash is not the current report's — the response carries the fresh report; review it and acknowledge again. When the workspace's pre-flight gate is enforced, campaigns_activate refuses (409 preflight_ack_required) until this is done.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/preflight/acknowledge/

Inputs: sqid (required), report_hash (required).

campaigns_signalsAInspect

Delivery, interest, and harm — each an exact binomial test against the workspace thresholds, answering whether a result is genuinely bad or merely early.

Read delivery first. It counts out-of-office auto-replies, which mail providers suppress for messages filed as spam, making it a measure of inbox placement that is independent of the offer. The test reads business recipients only — counts.business_auto_replies of counts.business_sends — because personal mailboxes (Gmail, Outlook.com / Hotmail) rarely set an out-of-office; delivery.sample_size is therefore the business sends, not all sends. When delivery fails, interest returns status="blocked" and must not be interpreted: reply rate confounds placement with persuasion, and a message that never arrived cannot be judged on its writing.

Human responses overrule a delivery failure. A genuine reply or an unsubscribe proves a person had the message in front of them, so when (genuine replies + unsubscribes) / sends alone reaches the expected auto-reply rate, a failed auto-reply test becomes pass with confirmed_by_replies: true (the name covers both) and interest is read normally. The same rate also confirms delivery when fewer than min_sample sends went to business recipients, so a consumer-only campaign is judged on its responses.

mailboxes breaks delivery down per sending mailbox: counts / delivery for this campaign's sends, and other_counts / other_delivery for the same mailbox in the workspace's other active or paused campaigns. When delivery fails, delivery_diagnosis reads that comparison: kind="mailbox" (the listed mailboxes fail elsewhere too — fix infrastructure), "content" (they deliver fine elsewhere — fix this campaign's copy/links), or "unknown" (no comparison volume). It is null unless delivery failed.

Each signal returns status (pass / fail / inconclusive / blocked), the observed rate, an exact Clopper-Pearson confidence interval, and the p-value against the threshold. inconclusive means the sample is too small to decide, not that the result is bad — check sends_to_conclude for how many more sends are needed.

Every rate in the response is a proportion, not a percentage: 0.02 means 2%. (The workspace settings that configure the thresholds are percentages; the conversion happens server-side.)

variant_count does not enter the arithmetic. It states how many distinct template renderings produced the sample, so a negative verdict on a single variant is read as evidence about that configuration rather than about the audience.

Optional ?days=N restricts the window (default: all time).

compliance_monitor is the auto-pause monitor's own rolling 7-day view (it ignores days): status (ok / warn / over_threshold / paused / insufficient_data), hard_bounce (warn 2%, pause 3%, at least 50 sends) and unsubscribe (warn 2%, pause 5%), each with rate, count, sent, level; and auto_paused_at / auto_pause_reason when the monitor paused the campaign. Resume a paused campaign with campaigns_activate; the monitor then waits 24 h before it can pause it again.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/signals/

Inputs: sqid (required), days.

campaigns_statsAInspect

Per-step funnel breakdown and KPI cards for a single campaign. Returns funnel (each step's pending/created/approved/sent/failed/unsubscribed/replied counts + bounce_rate) and kpis: sent / read / bounced as {total, prev, delta_pct, spark}, and reply = {contacted, replied, interested, reply_rate, interested_rate, prev_reply_rate, delta_pct, spark}. Reply and interested rates are percentages per lead contacted, not per message. ?days= is one of 0 (all time), 7, 14 (default), 30; for all time prev, delta_pct and spark are null/empty. One call replaces fetching step_logs per step and counting by hand.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/stats/

Inputs: sqid (required), days.

campaigns_step_logsAInspect

Paginated per-lead enrolment log for one step of one campaign. Each row includes status (int) and status_display (human label), lead sqid/name, and the latest outbound message's scheduled/sent timestamps. Use ?status=<code> to filter (0=Pending, 10=Message Created, 20=Message Approved, 30=Message Sent, 40=Replied, 50=Unsubscribed, 60=Canceled, 70=Failed). 40=Replied is any human reply (terminal: the sequence stops). Paginated with ?page= and ?per_page=.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/steps/{step_sqid}/logs/

Inputs: sqid (required), step_sqid (required), page, status, +1 more.

campaigns_typeaheadAInspect

Fast name autocomplete for campaign pickers. Query ?q=<text>&limit=<n> (limit capped at 50). Returns [{sqid, name}, ...]. Use when building UIs or letting the user select a campaign without a full list fetch.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/typeahead/

Inputs: no named parameters.

campaigns_unarchiveAInspect

Moves the campaign back to state=10 PAUSED. Never straight to active: archiving cancelled its queue and reset its leads, so resuming has to be a deliberate campaigns_activate after you have looked at it.

Returns 409 if the sequence or segment was deleted while the campaign sat in the archive — that campaign is history now, and the way forward is a new one.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/unarchive/

Inputs: sqid (required).

campaigns_unpinCInspect

Cosmetic only — does not affect priority or processing.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/unpin/

Inputs: sqid (required).

campaigns_updateCInspect

CRUD + actions for campaigns.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/

Inputs: sqid (required), name, pinned, segment, +13 more.

companies_getAInspect

Fetch one company from the discovery database. Use the guid returned by companies_search. Returns the same shape as the list endpoint. For the full enriched view (profiles, addresses, contacts), use companies_get_details instead.

Method: GET /api/v1/discovery/companies/{guid}/

Inputs: guid (required).

companies_get_detailsAInspect

Full company profile including linked addresses, contacts (emails/phones), social profiles, enrichment profiles, and all industry/keyword tags. Heavier than companies_get — use when presenting a company for the user to decide on, not for bulk scans.

Method: GET /api/v1/discovery/companies/{guid}/details/

Inputs: guid (required).

company_persons_getAInspect

Single person-company association. Rarely useful on its own — company_persons_list or persons_get is usually what you want.

Method: GET /api/v1/discovery/company-persons/{id}/

Inputs: id (required).

company_persons_listAInspect

Return the people associated with one company (current and former). Pass ?company=<company_guid> — the endpoint returns an empty list otherwise, because 400M un-scoped person records would be unusable. Ordered by is_current desc then start_date desc, so current employees appear first.

What you get per row. person GUID, name, headline, job title at this company, start/end dates, the person's country + locality, and seniority. To turn a selection into leads, call leads_bulk_add_to_segment with the company_guid and person_guid pairs.

Method: GET /api/v1/discovery/company-persons/

Inputs: limit, title, offset, company, +6 more.

compliance_country_rulesAInspect

The versioned country rules the gates apply: for each country its tier (allow_footer = opt-out country, allowed with sender details and an unsubscribe link; allow_with_source = only published, role-relevant addresses; conditional; block = prior consent required; block_unverified = consent required until the rules are verified) and the extra conditions (options). Unlisted countries get default_tier. Use it to plan which markets a campaign can reach before building it. Not legal advice.

Method: GET /api/v1/compliance/country-rules/

Inputs: no named parameters.

compliance_decisions_listAInspect

Every warn/block a compliance gate produced for this workspace, plus one allow row per sent message (proof the check ran). Use it to answer "why wasn't this lead emailed?": filter by lead or campaign. Each row carries explanation ({why, fix}) for its reason code. Newest first.

Method: GET /api/v1/workspaces/{workspace_sqid}/compliance-decisions/

Inputs: gate, lead, limit, since, +6 more.

compliance_lia_confirmAInspect

Stores lia_text (the reviewed assessment; at least 200 characters) and sets lia_confirmed_at to now. Send confirm: true only after the user has read and agreed with the text: it records that they made the assessment. The confirmation is logged with the user and a hash of the text.

Method: POST /api/v1/workspaces/{workspace_sqid}/compliance/lia/confirm/

Inputs: confirm (required), lia_text (required).

compliance_lia_draftAInspect

A pre-filled legitimate interest assessment (GDPR Art. 6(1)(f)) for this workspace — purpose, necessity and balancing tests plus the safeguards Sellvance enforces — from the workspace description and, with ?campaign=<sqid>, the campaign and its segment. Review it with the user, adapt it, then confirm it with compliance_lia_confirm. Until confirmed, EEA/UK leads get the lia_not_confirmed finding (gate lia). A template, not legal advice.

Method: GET /api/v1/workspaces/{workspace_sqid}/compliance/lia/draft/

Inputs: campaign.

compliance_privacy_notice_draftAInspect

A privacy notice for the people this workspace emails without having met them (GDPR Art. 14): who you are (sender legal name and address), what data, where it comes from, purpose, legal basis, retention, rights including objection, and contact. Publish it on your website and set privacy_notice_url (workspaces_partial_update); emails to EEA/UK recipients link it. A template, not legal advice.

Method: GET /api/v1/workspaces/{workspace_sqid}/compliance/privacy-notice/draft/

Inputs: no named parameters.

compliance_privacy_notice_hostAInspect

Sets privacy_notice_url to a page Sellvance serves with the generated notice (/p/<workspace_sqid>/privacy/). Only while hosting is enabled on this installation (hosting_available); otherwise 409 hosting_unavailable — publish the draft yourself.

Method: POST /api/v1/workspaces/{workspace_sqid}/compliance/privacy-notice/host/

Inputs: no named parameters.

consents_bulkAInspect

Bulk version of consents_create for leads the customer uploaded (CSV, CRM, API). Each record: email, obtained_at, method, consent_text, evidence_url (optional). Rows are checked one by one: the response lists the created sqids and, per refused row, {row, email, errors} (row is 1-based). One bad row never stops the others.

Contacts from the Sellvance database (leads found through discovery, saved searches or Find Email) are cold by definition: consent for them is accepted only one record at a time, with evidence (evidence_url), and is queued for spot-check review. Bulk endpoints refuse such rows.

Attestation. Every upload must carry attestation_version="1", which confirms: "I confirm that each person in these records gave consent to receive business email from us, that the consent was obtained lawfully, and that I can produce the evidence on request. I understand that uploading a record that is not true breaks the Acceptable Use Policy." Show this text to the user and get their confirmation first. A record of the confirmation (user, time, IP) is kept with the upload.

Method: POST /api/v1/workspaces/{workspace_sqid}/consents/bulk/

Inputs: records (required), attestation_version (required).

consents_createAInspect

Record that a person consented to business email from this workspace. Give email or lead (sqid); the record is matched to the workspace lead with that address. Required: when (obtained_at, in the past), how (method), the wording shown (consent_text).

Contacts from the Sellvance database (leads found through discovery, saved searches or Find Email) are cold by definition: consent for them is accepted only one record at a time, with evidence (evidence_url), and is queued for spot-check review. Bulk endpoints refuse such rows.

Attestation. Every upload must carry attestation_version="1", which confirms: "I confirm that each person in these records gave consent to receive business email from us, that the consent was obtained lawfully, and that I can produce the evidence on request. I understand that uploading a record that is not true breaks the Acceptable Use Policy." Show this text to the user and get their confirmation first. A record of the confirmation (user, time, IP) is kept with the upload.

Method: POST /api/v1/workspaces/{workspace_sqid}/consents/

Inputs: method (required), obtained_at (required), consent_text (required), attestation_version (required), +4 more.

consents_getCInspect

Get one consent record

Method: GET /api/v1/workspaces/{workspace_sqid}/consents/{sqid}/

Inputs: sqid (required).

consents_listAInspect

Consent records the workspace uploaded. A consent lifts the rules that need one (consent-only countries such as Germany, sole traders, missing publication evidence); it never lifts an opt-out made after it, a personal mailbox or an unknown country. Only a hash of the address is stored, so filter with email= rather than reading addresses back.

Method: GET /api/v1/workspaces/{workspace_sqid}/consents/

Inputs: lead, email, limit, active, +2 more.

consents_revokeAInspect

Stop a consent record counting (the person withdrew consent, or it was recorded by mistake). The record is kept for the audit trail. An unsubscribe or opt-out reply revokes consent automatically. Idempotent.

Method: POST /api/v1/workspaces/{workspace_sqid}/consents/{sqid}/revoke/

Inputs: sqid (required), reason.

context_fields_bulk_set_typeCInspect

The declared type drives sorting and the operators offered in filters. It is a hint, not a constraint: values already stored under the old type are not converted or validated.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/bulk-set-type/

Inputs: sqids (required), field_type (required).

context_fields_bulk_toggleAInspect

Sets use on every listed field (sqids) at once. Fields with use=true are passed to the AI that writes messages; keep it off for internal fields such as scores, to keep prompts short.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/bulk-toggle/

Inputs: use (required), sqids (required).

context_fields_facetsAInspect

Returns the distinct values of one column of the context field list itself — not of the lead values behind it — with their counts, ordered by count descending. This is the data behind the value checklist in the field list's column menus.

Filterable columns: key, description, field_type, use, order.

Pass the other columns' active qf entries to get counts that match what is on screen; any entry for field itself is ignored.

Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/facets/

Inputs: field (required), q, limit.

context_fields_purgeAInspect

The destructive counterpart to a plain delete. A plain workspaces_context_fields_destroy removes only the definition and leaves each lead's stored value in place (it then shows on the lead page as an unregistered field). This starts a background task that also removes the key from every lead's context, then deletes the field.

Irreversible. Segment membership is not recomputed — re-run the affected segments' filters if the field fed one.

Returns {task_sqid}; poll jobs_get for progress.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/purge/

Inputs: sqid (required).

context_fields_referencesAInspect

Lists every filter condition, view column, automation config and sequence-step template in the workspace that names this field's key.

Renaming does not rewrite any of them — the values on leads move, everything here keeps pointing at the old key and stops working. Call this first and show the user what will break.

Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/references/

Inputs: sqid (required).

context_fields_renameAInspect

Starts a background task that moves each lead's value from the old key to new_key, then renames the field itself. Leads that already hold new_key keep their existing value and are reported as conflicts.

Filters, views, automations and ${key} templates are not rewritten — call context_fields_references first to see what will be left dangling.

Returns {task_sqid}; poll jobs_get for progress.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/rename/

Inputs: sqid (required), new_key (required).

context_fields_template_variablesAInspect

Returns the complete list of variables that can be used in sequence step templates and compose messages: workspace-defined context fields, discovery company/person fields, and built-in computed variables (e.g. last_message_date). Each entry has key, description, and field_type.

Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/template-variables/

Inputs: no named parameters.

discovery_countries_listAInspect

Countries in the discovery database, with the numeric id that companies_search takes in countries. Filter with name (substring, case-insensitive), e.g. name=germany, or by continent id.

Method: GET /api/v1/discovery/countries/

Inputs: name, limit, id__in, offset, +1 more.

discovery_countries_retrieveBInspect

One country by its numeric id.

Method: GET /api/v1/discovery/countries/{id}/

Inputs: id (required).

discovery_domains_listAInspect

Website domains known to the discovery database. Filter with name (substring), e.g. name=acme.com, to find the domain id behind a company website. To find a company by its site, companies_search with website is usually simpler.

Method: GET /api/v1/discovery/domains/

Inputs: name, limit, offset.

discovery_domains_retrieveBInspect

One website domain by its numeric id.

Method: GET /api/v1/discovery/domains/{id}/

Inputs: id (required).

discovery_industries_listAInspect

The older free-text industry list, with the numeric id that companies_search takes in industries. Kept for stored filters: for new searches use the industry taxonomy from discovery_industry_tags_list and the industry_tags filter. Filter with name (substring) or parent (industry ids).

Method: GET /api/v1/discovery/industries/

Inputs: name, limit, id__in, offset, +1 more.

discovery_industries_retrieveBInspect

One legacy industry by its numeric id.

Method: GET /api/v1/discovery/industries/{id}/

Inputs: id (required).

discovery_industry_tags_listAInspect

The Layer 2 industry vocabulary — the slugs to filter companies by. Use this to discover the vocabulary before calling companies_search: passing free text as an industry will not match, because the filter takes slugs from this list.

slug is the stable public identifier and is never reused. A retired tag keeps its slug and reports is_active: false, so a stored filter never silently changes meaning.

group plus group_label give a two-level picker in one request. boundary names the neighbours a tag is easy to confuse with — it is a hint, not a prohibition, and both tags can apply. mutually_exclusive is the real prohibition and is deliberately tiny.

Method: GET /api/v1/discovery/industry-tags/

Inputs: q, group, limit, offset, +2 more.

discovery_industry_tags_retrieveCInspect

Looked up by slug, not by a numeric id.

Method: GET /api/v1/discovery/industry-tags/{slug}/

Inputs: slug (required).

discovery_keywords_listAInspect

Keywords attached to companies (e.g. 'SaaS', 'hiring'), with the numeric id that companies_search takes in keywords. Filter with name (substring). Keyword coverage is uneven, so for what a company does prefer industry_tags or the full-text about filter.

Method: GET /api/v1/discovery/keywords/

Inputs: kind, name, limit, id__in, +2 more.

discovery_keywords_retrieveBInspect

One keyword by its numeric id.

Method: GET /api/v1/discovery/keywords/{id}/

Inputs: id (required).

discovery_localities_listAInspect

Cities and towns, with the numeric id that companies_search takes in cities. Filter with name (substring), region and country (ids from the region and country lookups). Narrow by region: a bare city name such as Springfield matches many places.

Method: GET /api/v1/discovery/localities/

Inputs: name, limit, id__in, offset, +2 more.

discovery_localities_retrieveCInspect

One city or town by its numeric id.

Method: GET /api/v1/discovery/localities/{id}/

Inputs: id (required).

discovery_reference_countries_json_gz_retrieveAInspect

Every country with id, code, name and its compliance email tier (email_tier, email_tier_label, email_allowed). Gzipped JSON array of every row, with an ETag: send If-None-Match to get a 304 when nothing changed. Meant for clients that cache the whole table; to look up a few values, discovery_countries_list is lighter.

Method: GET /api/v1/discovery/reference/countries.json.gz

Inputs: no named parameters.

discovery_reference_industries_json_gz_retrieveAInspect

Every legacy industry with id and name. New searches should use industry tags instead. Gzipped JSON array of every row, with an ETag: send If-None-Match to get a 304 when nothing changed. Meant for clients that cache the whole table; to look up a few values, discovery_industries_list is lighter.

Method: GET /api/v1/discovery/reference/industries.json.gz

Inputs: no named parameters.

discovery_reference_industry_tags_json_gz_retrieveAInspect

The whole industry taxonomy: slug, label, group, description, synonyms, boundaries, including retired tags (is_active: false). Gzipped JSON array of every row, with an ETag: send If-None-Match to get a 304 when nothing changed. Meant for clients that cache the whole table; to look up a few values, discovery_industry_tags_list is lighter.

Method: GET /api/v1/discovery/reference/industry-tags.json.gz

Inputs: no named parameters.

discovery_reference_localities_json_gz_retrieveAInspect

Every city and town with id, name, coordinates, and its region and country. Gzipped JSON array of every row, with an ETag: send If-None-Match to get a 304 when nothing changed. Meant for clients that cache the whole table; to look up a few values, discovery_localities_list is lighter.

Method: GET /api/v1/discovery/reference/localities.json.gz

Inputs: no named parameters.

discovery_reference_regions_json_gz_retrieveAInspect

Every region (state, province) with id, name and country_id. Gzipped JSON array of every row, with an ETag: send If-None-Match to get a 304 when nothing changed. Meant for clients that cache the whole table; to look up a few values, discovery_regions_list is lighter.

Method: GET /api/v1/discovery/reference/regions.json.gz

Inputs: no named parameters.

discovery_regions_listAInspect

States, provinces and other first-level regions, with the numeric id that companies_search takes in regions. Filter with name (substring) and country (country ids from discovery_countries_list); pass country too, because many names repeat across countries.

Method: GET /api/v1/discovery/regions/

Inputs: name, limit, id__in, offset, +1 more.

discovery_regions_retrieveBInspect

One region by its numeric id.

Method: GET /api/v1/discovery/regions/{id}/

Inputs: id (required).

discovery_stat_codes_listAInspect

ISIC / NAICS / NACE codes that the Layer 2 tags map onto, for callers who need to interoperate with an official classification.

A blank label means the official reference table has not been imported yet, not that the code is unknown — the rows are created from the codes the taxonomy references.

Method: GET /api/v1/discovery/stat-codes/

Inputs: q, code, level, limit, +3 more.

discovery_stat_codes_retrieveAInspect

One ISIC / NAICS / NACE code by its numeric id. To filter companies by codes, pass scheme:code values such as naics2022:326 in the stat_codes filter of companies_search.

Method: GET /api/v1/discovery/stat-codes/{id}/

Inputs: id (required).

discovery_watched_parameters_listAInspect

The vocabulary for the web_has, web_lacks, web_appeared and web_disappeared company filters: each parameter the crawl watches on a company's site (CMS, ad tags, analytics, consent banner, mail provider, ...) and the values it can take. Send name alone for any value, or name:value.

Read-only: discovery/watched/parameters.yaml is the source of truth and every deploy reloads it.

Method: GET /api/v1/discovery/watched-parameters/

Inputs: no named parameters.

enrichments_logsAInspect

Latest 500 enrichment runs across every segment in the workspace, newest first. Use segments_enrichments_logs for a single segment's runs. Each entry includes segment_sqid, automation_sqid, enrichment_type, success (bool), created_at, error_message, connects_used, lead_sqid.

Method: GET /api/v1/workspaces/{workspace_sqid}/enrichments/logs/

Inputs: no named parameters.

experiment_plans_count_segmentAInspect

Counts discovery companies matching the plan's search_params, stores the number as segment_size (with segment_counted_at) and recomputes the estimate, which adds a blocking segment_too_small problem when the segment cannot supply the companies the experiment needs. Free: no connects. Returns the updated plan; read estimate.feasible and estimate.problems. A plan with no criteria gets segment_size: null.

Method: POST /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/count-segment/

Inputs: sqid (required).

experiment_plans_createAInspect

An experiment plan sizes ONE campaign tested against a target reply rate by the Signal Check: the hypothesis (segment × persona × offer → reply rate ≥ target), the operating assumptions and the segment's discovery criteria. The server recomputes estimate on every save. Plans compare nothing: there are no arms or variants. Planning is free and unlimited on every account.

Required: name, expected_rate. target_rate defaults to the workspace target. Use experiment_plans_estimate first to iterate without saving, then experiment_plans_count_segment to check the segment is big enough.

Read estimate.feasible and estimate.problems first. "Not feasible" is a valid, useful answer: each blocking problem's message says why (segment too small, rates too close to separate, sample above the cap, too slow) and what to change. Non-blocking problems are warnings. All rates are proportions (0.05 == 5%), never percentages.

Method: POST /api/v1/workspaces/{workspace_sqid}/experiment-plans/

Inputs: name (required), expected_rate (required), offer, steps, +10 more.

experiment_plans_deleteBInspect

Deletes the plan; a shared link stops working.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/

Inputs: sqid (required).

experiment_plans_estimateAInspect

Stateless what-if: sizes one experiment (one campaign tested against a target reply rate by the Signal Check) from the inputs and returns what it takes — emails, leads, companies, connects, sending days and days to a verdict — and whether it can work at all. Saves nothing and costs nothing.

Read estimate.feasible and estimate.problems first. "Not feasible" is a valid, useful answer: each blocking problem's message says why (segment too small, rates too close to separate, sample above the cap, too slow) and what to change. Non-blocking problems are warnings. All rates are proportions (0.05 == 5%), never percentages.

The target should come from the customer's economics, not an industry average: pass acv, reply_to_deal_rate and cost_per_send (all-in) to get break_even_rate = cost_per_send / (acv × reply_to_deal_rate), a suggested target_rate. Never suggest a 'typical' or benchmark reply rate.

Pass count_segment: true with search_params (the companies_search / saved search criteria) to count matching companies and check the segment is big enough; counting is free. Otherwise pass segment_size if you know it. Typical flow: estimate until feasible → experiment_plans_create to keep it → experiment_plans_share or experiment_plans_export to hand it to a person.

Method: POST /api/v1/workspaces/{workspace_sqid}/experiment-plans/estimate/

Inputs: expected_rate (required), acv, steps, mailboxes, +9 more.

experiment_plans_exportAInspect

Returns the Experiment Plan document as markdown (the same content as the shared page): hypothesis, question, segment criteria and size, emails / leads / companies / connects / days with the mailbox assumptions, feasibility and problems, stopping rules, and a link to the playbook. Contains no lead or contact data. Add ?download=1 for a file attachment.

Method: GET /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/export/

Inputs: sqid (required), download.

experiment_plans_getBInspect

An experiment plan sizes ONE campaign tested against a target reply rate by the Signal Check: the hypothesis (segment × persona × offer → reply rate ≥ target), the operating assumptions and the segment's discovery criteria. The server recomputes estimate on every save. Plans compare nothing: there are no arms or variants. Planning is free and unlimited on every account.

Read estimate.feasible and estimate.problems first. "Not feasible" is a valid, useful answer: each blocking problem's message says why (segment too small, rates too close to separate, sample above the cap, too slow) and what to change. Non-blocking problems are warnings. All rates are proportions (0.05 == 5%), never percentages.

Method: GET /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/

Inputs: sqid (required).

experiment_plans_listAInspect

An experiment plan sizes ONE campaign tested against a target reply rate by the Signal Check: the hypothesis (segment × persona × offer → reply rate ≥ target), the operating assumptions and the segment's discovery criteria. The server recomputes estimate on every save. Plans compare nothing: there are no arms or variants. Planning is free and unlimited on every account.

Read estimate.feasible and estimate.problems first. "Not feasible" is a valid, useful answer: each blocking problem's message says why (segment too small, rates too close to separate, sample above the cap, too slow) and what to change. Non-blocking problems are warnings. All rates are proportions (0.05 == 5%), never percentages. Newest-updated first.

Method: GET /api/v1/workspaces/{workspace_sqid}/experiment-plans/

Inputs: limit, offset.

experiment_plans_shareAInspect

Turns on a public, read-only, unlisted page for the plan and returns its share_url. Anyone with the link can read the hypothesis, segment criteria in words, the numbers and the stopping rules; never leads, contacts or internal ids. Idempotent: calling it again returns the same link.

Method: POST /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/share/

Inputs: sqid (required).

experiment_plans_unshareAInspect

Turns the public page off; the old link returns 404 from now on. Sharing again creates a new link.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/share/

Inputs: sqid (required).

experiment_plans_updateAInspect

Change any input; the estimate is recomputed. Changing search_params clears segment_size (call experiment_plans_count_segment again) unless you send segment_size in the same request.

Read estimate.feasible and estimate.problems first. "Not feasible" is a valid, useful answer: each blocking problem's message says why (segment too small, rates too close to separate, sample above the cap, too slow) and what to change. Non-blocking problems are warnings. All rates are proportions (0.05 == 5%), never percentages.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/

Inputs: sqid (required), name, offer, steps, +11 more.

jobs_cancelAInspect

Signals a running task to stop. The worker checks for cancellation between leads and will stop within a few seconds. Only tasks with status IN_PROGRESS or PENDING can be cancelled.

Method: POST /api/v1/workspaces/{workspace_sqid}/jobs/{sqid}/cancel/

Inputs: sqid (required).

jobs_getAInspect

Use to track long-running operations kicked off by other tools — CSV imports, bulk enrichments, campaign activations all return a task_sqid to pass here. Poll every 2–5 seconds while status == 'RUNNING', stop when it's COMPLETED or FAILED. seconds_remaining gives a rough ETA once progress > 0.

Method: GET /api/v1/workspaces/{workspace_sqid}/jobs/{sqid}/

Inputs: sqid (required).

jobs_listBInspect

Returns the latest background tasks. Use ?status=RUNNING to see what's in flight, ?status=FAILED to triage errors. Each task has a task_name (e.g. leads_import, run_adhoc_enrichment) and a progress 0–100.

Method: GET /api/v1/workspaces/{workspace_sqid}/jobs/

Inputs: limit, offset.

lead_add_to_segmentAInspect

Add a single lead to a segment. Body {segment_sqid: '...'}. Simpler counterpart to leads_bulk_add_to_segment when working one lead at a time.

Method: POST /api/v1/workspaces/{workspace_sqid}/lead-segments/{sqid}/add-to-segment/

Inputs: sqid (required).

lead_remove_from_segmentBInspect

Remove a single lead from a segment. Body {segment_sqid: '...'}. Does not delete the lead.

Method: POST /api/v1/workspaces/{workspace_sqid}/lead-segments/{sqid}/remove-from-segment/

Inputs: sqid (required).

leads_assign_discoveryAInspect

Associates a lead the workspace already owns with a record from the discovery database, instead of creating a new lead the way leads_bulk_add_to_segment does. Body: {company_guid, person_guid?} — the company is required, the person optional.

Effects. The GUIDs are unlocked for the workspace (so enrichments and leads_update accept them afterwards), the lead's discovery_company_guid/discovery_person_guid are overwritten, and — only when the lead has no contact yet — a contact is backfilled from the discovery record.

Cost. One ADD_LEAD_FROM_DISCOVERY charge per call, plus one CONTACT_ACCESS charge when person_guid names a person this workspace has never unlocked. Returns 402 when the balance or the daily spend limit will not cover it; nothing is linked in that case.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/assign-discovery/

Inputs: sqid (required), company_guid (required), person_guid.

leads_automation_logsBInspect

Returns recent automation run logs for this lead, newest first. Optional ?field= filter narrows to logs from automations whose output includes the named field. Each entry includes automation name, type, success, result (the enrichment output), error, and usage metrics.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/automation-logs/

Inputs: sqid (required).

leads_bulk_add_to_segmentAInspect

The primary way to move prospects from the shared discovery database into the user's workspace. Provide the target segment sqid and a list of {company_guid, person_guid} pairs — person_guid may be null for company-only leads. The endpoint creates one Lead per pair (deduplicated against existing leads by email/linkedin), adds them to the segment, and returns num_created.

Cost. Charges ADD_LEAD_FROM_DISCOVERY per newly-created lead (not per duplicate skip); the current rate is in billing_pricelist. Pre-check with billing_balance for batches >1k.

Async. Currently synchronous for reasonable batch sizes (<500). For larger imports, prefer the CSV import wizard (imports_leads_create → _analyze_create → _execute_create) which returns a task_sqid and runs in the background.

Typical flow. companies_search → company_persons_list → pick the people you want → call this endpoint with their GUIDs.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/add-leads/

Inputs: no named parameters.

leads_bulk_add_to_segment_bulkAInspect

Bulk move existing workspace leads into a segment. Body {segment_sqid, lead_sqids: [...]}. For importing new leads from discovery, use leads_bulk_add_to_segment (the discovery one) instead.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-add-to-segment/

Inputs: no named parameters.

leads_bulk_archiveAInspect

Sets the selected leads to ARCHIVED — the "stop contacting this person, but keep the record" state.

Any lead still live in a campaign has that campaign cancelled for it first: pending messages are cancelled and the CampaignLog rows are retired. Sends that already went out keep their status so campaign reporting is unaffected.

Validation is per-lead: ineligible leads are returned in skipped with a stable reason code instead of failing the request. unsubscribed leads are never archived — that is a legal opt-out, and ARCHIVED can be reset back to NEW, which would launder the opt-out away.

Archiving is reversible via leads_bulk_reset_to_new, which accepts ARCHIVED leads and returns them to NEW.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-archive/

Inputs: lead_sqids (required).

leads_bulk_deleteAInspect

Hard-deletes leads: segment memberships, automation logs and pending campaign state go with them. Irreversible — prefer leads_bulk_archive unless the records are junk (a bad import, test data).

Leads that have ever been emailed are never deleted (reason contacted): that would erase sent mail from campaign history. Archive them instead. Opt-outs are kept regardless — they live in the suppression list, not on the lead.

To delete every lead of a list or a CSV import, use leads_bulk_selection_action with action=delete.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-delete/

Inputs: lead_sqids (required).

leads_bulk_remove_from_segmentAInspect

Bulk remove leads from a segment. Body {segment_sqid, lead_sqids: [...]}. Leads themselves are not deleted.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-remove-from-segment/

Inputs: no named parameters.

leads_bulk_reset_to_newAInspect

Returns the selected leads to NEW status so they can be added to a campaign again — the same one they already ran through, or a different one.

Campaign history is preserved: the leads' CampaignLog rows keep recording that they replied, completed or failed in previous campaigns. Only the lead status moves. Use this to run a follow-up campaign at someone who already converted, or to push a new goal at someone who replied.

Validation is per-lead: ineligible leads are returned in skipped with a stable reason code instead of failing the request. in_progress leads are live in a campaign right now — cancel that campaign for them instead. unsubscribed leads can never be reset; that is a legal opt-out, not a workflow state.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-reset/

Inputs: lead_sqids (required).

leads_bulk_selection_actionAInspect

The "Select all N leads in this list" counterpart of the per-sqid bulk endpoints. selection is the lead list's query parameters (segment, filter, view, q, import_id, status, qf); the job acts on every lead the list returns for them, resolved once when it starts.

action and the endpoint it behaves like:

  • add_to_segment (segment_sqid, new creates a list) — leads_bulk_add_to_segment_bulk

  • remove_from_segment (segment_sqid) — leads_bulk_remove_from_segment

  • add_to_campaign (campaign_sqid) — campaigns_add_leads

  • reset — leads_bulk_reset_to_new

  • archive — leads_bulk_archive

  • delete — leads_bulk_delete; refused unless the selection is narrowed, so an empty one cannot wipe the workspace

Like the list, an empty status leaves ARCHIVED leads out; pass __all__ to include them. Runs in the background: 202 with task_sqid; the finished job's result has done_count and skipped counted by reason code. E.g. {"action": "delete", "selection": {"import_id": "nlppkx"}} removes one CSV import.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-selection/

Inputs: action (required), selection (required), segment_sqid, campaign_sqid.

leads_campaign_log_change_statusAInspect

Manually transition the status of a specific CampaignLog. Allowed transitions: SENT <-> FAILED <-> REPLIED (bidirectional), APPROVED -> CREATED. Blocked when a later sequence step already exists for the same lead+campaign. Moving to REPLIED (40) records a reply: it stamps replied_at, cancels the rest of the sequence, and marks a lead that was NEW / IN_PROGRESS / COMPLETED as REPLIED. Moving away from REPLIED clears replied_at.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/campaign-logs/{campaign_log_sqid}/change-status/

Inputs: sqid (required), lead_name (required), campaign_log_sqid (required), notes, +10 more.

leads_campaign_logsAInspect

Returns campaign step logs for this lead, newest first. Each entry shows the campaign, step, status (integer code and display label), and an is_current_step flag indicating the most advanced non-canceled step per campaign.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/campaign-logs/

Inputs: sqid (required).

leads_clear_business_useAInspect

Removes the confirmation set by leads_confirm_business_use: the personal mailbox is blocked again (Terms section 3a) unless another proof applies (existing customer, consent record, published business listing). Logged as business_use_cleared. 400 when the lead has no confirmation. Returns the lead.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/clear-business-use/

Inputs: sqid (required).

leads_confirm_business_useAInspect

Our Terms (section 3a) prohibit emailing personal or free-webmail addresses (gmail.com, outlook.com…) except where the address is verifiably and exclusively used by the recipient as their business contact. The personal_mailbox compliance rule blocks such leads unless one of these shows it: the lead is an existing customer (prior_customer), an active consent record exists for the address, the address was found published on a business page (email_provenance=published with source_url), or you confirm it here.

Body: {evidence} — at least 10 characters: a link to where the person publishes the address, or a short note ("address on our invoices and contract since 2019"). Leads from the Sellvance database (data_source discovery, saved_search, enrichment_find_email) need a link (http/https). One lead per call; there is no bulk version. 400 when the address is not a personal mailbox or the evidence is missing. The confirmation is logged (compliance_decisions_list, reason business_use_confirmed) and cleared automatically when the lead's contact changes. It lifts only the personal-mailbox rule; country rules still apply. Returns the lead.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/confirm-business-use/

Inputs: sqid (required), evidence (required).

leads_context_mergeAInspect

Shallow-merges the request body into lead.context. Use this to add or update individual context fields without touching the rest. After the merge, the lead is re-evaluated against every segment's filters so any new matches take effect.

To replace the entire context dict, use leads_update with a full context field instead.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/context/

Inputs: sqid (required), notes, status, contact, +9 more.

leads_createAInspect

Use this for one-off lead creation (e.g. the user pasted a contact). For bulk, always prefer leads_bulk_add_to_segment (from discovery) or the CSV import wizard — creating leads one-by-one is slow and costs the same connects.

After creation, the lead is automatically evaluated against every segment's filters and added where it matches.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/create/

Inputs: lead_name (required), notes, status, contact, +8 more.

leads_deleteAInspect

Hard-deletes the lead, removes it from all segments, and cancels any pending messages. Irreversible — prefer setting status to ARCHIVED. A lead that has ever been emailed cannot be deleted (400): that would erase sent mail from campaign history; archive it instead. Many leads at once: leads_bulk_delete.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/

Inputs: sqid (required).

leads_getBInspect

Fetch one lead by sqid. Returns the full context dict plus segments (with automation counts), context field automations, and discovery company/person preview snippets.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/

Inputs: sqid (required).

leads_run_automationAInspect

Dispatches an async task to run one or all automations on this lead. Body: {automation_sqid: '...'} to run a specific automation, or omit to run all automations from all segments the lead belongs to. Returns {task_sqid} — poll jobs_get for progress.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/run-automation/

Inputs: sqid (required), lead_name (required), notes, status, +9 more.

leads_typeaheadAInspect

Lightweight name search for type-ahead dropdowns. Matches lead_name from the start, case-insensitively, and returns at most limit rows (default 20, hard cap 50). With no q, returns the most recently updated leads so the dropdown is not empty on open.

Each row carries the lead's current discovery links (discovery_company_guid/discovery_person_guid plus resolved names) so a caller can warn before leads_assign_discovery replaces them. For full lead listing with filters and columns, use workspaces_leads_list instead.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/typeahead/

Inputs: q, limit.

leads_updateAInspect

Patch any writable field. To merge context fields (rather than replace the whole dict), use the leads_context action instead — it does a shallow merge.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/

Inputs: sqid (required), notes, status, contact, +9 more.

messages_acknowledgeBInspect

Human-loop signal: a reply was read and triaged. Moves status to ACKNOWLEDGED so the UI stops surfacing it in the 'unread replies' view. Does not auto-advance the lead in any sequence.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/acknowledge/

Inputs: body (required), sqid (required), subject (required), channel.

messages_approveAInspect

Moves status from NEW / REVIEW_REQUIRED → APPROVED. The message enters the send queue and will be dispatched via the campaign's email_configs, respecting per-mailbox daily limits. Bulk reviewing a campaign's drafts is a common agent workflow: messages_list?campaign_sqid=X&status=10 → loop + approve.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/approve/

Inputs: body (required), sqid (required), subject (required), channel.

messages_bulk_approveAInspect

Body {message_sqids: ['abc','def']}. Calls approve on each eligible message (status NEW or REVIEW_REQUIRED). Returns counts of approved and skipped messages. Messages a compliance rule blocks are canceled and listed in skipped with reason: compliance_blocked and compliance_reason; blocked_counts totals them per reason.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/bulk-approve/

Inputs: body (required), subject (required), channel.

messages_bulk_deleteBInspect

Body {message_sqids: ['abc','def']}. Deletes messages that have not been sent yet (status < SENT). Already-sent messages are skipped.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/bulk-delete/

Inputs: body (required), subject (required), channel.

messages_bulk_send_nowAInspect

Body {message_sqids: ['abc','def']}. Approves each NEW / REVIEW_REQUIRED / APPROVED message with scheduled_at = now (see messages_send_now). Others are skipped and never resent. Messages a compliance rule blocks are canceled and listed in skipped with reason: compliance_blocked and compliance_reason; blocked_counts totals them per reason.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/bulk-send-now/

Inputs: body (required), subject (required), channel.

messages_bulk_unapproveBInspect

Body {message_sqids: ['abc','def']}. Moves APPROVED messages back to REVIEW_REQUIRED so they can be re-edited before sending. Messages in other statuses are skipped.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/bulk-unapprove/

Inputs: body (required), subject (required), channel.

messages_composeAInspect

Create a one-off message to a lead outside any campaign. Accepts plain text or template syntax (${field}, {{prompt}}, {opt1|opt2}). Templates are resolved against the lead's context before saving. Specify send_now: true to schedule for immediate delivery, or scheduled_at for a future time; otherwise the message is saved as a draft (status=NEW). The lead goes through the same compliance checks as campaign messages: a blocked lead returns 409 (code: compliance_blocked) before anything is generated or charged. When replying (in_reply_to_message_sqid), quote_previous: true appends the replied-to message below the body as a > -quoted block, the same way threaded sequence steps quote the step before them.

Recipient. By default the message goes to the lead's contact. When replying to an inbound message it goes to the address that message came from instead (the person who actually wrote back may be a colleague or use another address); replying to one of our own sends keeps that send's recipient. Pass email_to to choose the address explicitly. The response's email_to is empty when the lead's contact is used.

Content lint (compliance gate content_lint): unless the message replies to in_reply_to_message_sqid, a subject starting with Re:/Fwd: (AW:, TR:, RV:…) or quoted email history ("On … wrote:") is deceptive; so is a mailbox display name using another brand (Google, PayPal, a bank…). In enforce mode that is 400 code: "content_lint" with issues; in warn mode the message is created and the response carries warnings.

Footer (include_footer): whether the message ends with the footer — company name, postal address, unsubscribe line — and carries the List-Unsubscribe headers. Default: off when the message replies to an incoming message (in_reply_to_message_sqid of a message the lead sent: personal correspondence), on otherwise. The text is the default footer template (codedoc/compliance.md). Sending a new (non-reply) message without the footer is allowed but recorded as a compliance warning (gate footer, reason footer_disabled); anti-spam laws require an opt-out and the sender's identity in most countries.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/compose/

Inputs: body (required), subject (required), lead_sqid (required), mailbox_sqid (required), +6 more.

messages_createAInspect

Rarely what you want. Campaigns generate messages automatically from sequences. Use this only for bespoke one-off sends — e.g. a manual reply. Fields status, direction, and timestamps are server-managed.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/

Inputs: body (required), subject (required), channel.

messages_deleteAInspect

Only allowed while status < SENT. Returns 409 if already sent — sent messages are part of the audit trail.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/

Inputs: sqid (required).

messages_getAInspect

One email by its sqid: subject, body, status, direction (outgoing or incoming), the lead and campaign step it belongs to, and its send and delivery timestamps. Use messages_source for the exact MIME source of a sent email.

Method: GET /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/

Inputs: sqid (required).

messages_listAInspect

Paginated message list ordered by ?sort= (default -updated). Each message is one email for one lead x one campaign step.

Status codes (outbound): 0=NEW, 9=REVIEW_REQUIRED, 10=APPROVED, 20=SENT, 30=DELIVERED, 40=READ, 50=UNSUBSCRIBED, 100=FAILED, 110=SOFT_BOUNCED, 500=CANCELED. Status codes (inbound): 200=NEW_INCOMING (reply received), 210=ACKNOWLEDGED.

Inbox view: ?direction=1 returns only incoming messages (replies). Combine with ?status=200 for unacknowledged replies.

Response includes status_message (human-readable reason for terminal statuses, e.g. SMTP rejection text on FAILED) and review (AI review verdict when available).

Paginated: ?page= and ?per_page= (default 25) returning {count, num_pages, page, per_page, results}.

Method: GET /api/v1/workspaces/{workspace_sqid}/messages/

Inputs: q, page, sort, status, +6 more.

messages_mark_bouncedAInspect

Body {reason: '...'} — stored in status_message for the audit log. Puts the address on the workspace suppression list so future messages to it are blocked, from any lead or campaign, and moves the lead to FAILED status.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/mark-bounced/

Inputs: body (required), sqid (required), subject (required), channel.

messages_mark_repliedAInspect

Record that the lead replied to this message — typically outside the platform (a phone call, a LinkedIn answer). The campaign step becomes REPLIED, the rest of the sequence is cancelled, and the lead becomes INTERESTED / NOT_INTERESTED per intent, or REPLIED (needs a person to read it) when intent is omitted. A lead already marked INTERESTED or NOT_INTERESTED keeps that status; change it with leads_update.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/mark-replied/

Inputs: sqid (required), intent.

messages_mark_sentBInspect

Rarely needed — used for reconciliation when a message was sent via another system. Updates the campaign log and moves the lead forward in the sequence.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/mark-sent/

Inputs: body (required), sqid (required), subject (required), channel.

messages_previewAInspect

Essential pre-flight. Body: {segment_sqid, steps: [...], num_leads}. Picks num_leads random leads from the segment, renders each sequence step against them (variable substitution + spintax + AI snippet generation where {{prompts}} appear), and returns the final subject/body text each recipient would see.

Use this before campaigns_activate to catch template bugs: unresolved ${vars}, empty AI snippets, weird spintax. The response includes per-lead errors arrays listing any template issues — fix those in the sequence, then re-preview. Each lead also carries compliance: {allowed, reason_codes} — what the compliance gates would decide for it (a preview never blocks).

Cost. Renders are free; AI snippets cost COMPOSE_EMAIL connects per successful generation (pay-per-success — failed generations don't charge). num_leads × number of {{prompt}} snippets is the upper bound. Balance pre-check returns 402 if insufficient.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/preview/

Inputs: steps (required), segment_sqid (required), num_leads, is_threaded.

messages_send_nowAInspect

Approves the message with scheduled_at = now so the send worker picks it up on the next poll, instead of placing it on the campaign's drip. Still respects mailbox daily/hourly limits — won't violate those. Use for time-sensitive messages where the natural sequence delay is too long.

Only NEW / REVIEW_REQUIRED / APPROVED messages: anything sent, failed, opted out or canceled returns 409 (code: not_approvable) and is never resent. Runs the same compliance checks as approval; a blocked lead returns 409 (code: compliance_blocked, compliance.reason_code, and why/fix text) and the message is canceled.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/send-now/

Inputs: body (required), sqid (required), subject (required), channel.

messages_send_testBInspect

Body {to: '<your-email>', mailbox_sqid?: '<sqid>'} — renders the message against its lead's data and sends to to from the chosen mailbox (or the default one). to must be your own: the address of a user of this account, or a mailbox of this workspace. A test copy skips the lead's opt-out and country checks because it doesn't go to the lead, so it can't be pointed at anyone else. Doesn't change the real message's status.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/send-test/

Inputs: body (required), sqid (required), subject (required), channel.

messages_sourceAInspect

The full MIME source (every header and both body parts) exactly as handed to SMTP — what the lead actually received, including footer, signature and the quoted thread, which body does not contain. headers is the parsed header list and text / html the decoded body parts (html is null for a text-only message). Headers the mail server adds after us (DKIM-Signature, Received) are not included. Stored for messages sent after 2026-10-28; 404 for anything not sent (check has_source on the message).

Method: GET /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/source/

Inputs: sqid (required).

messages_templatesAInspect

Returns all sequences in the workspace with their steps, for template selection when composing a message.

Method: GET /api/v1/workspaces/{workspace_sqid}/messages/templates/

Inputs: no named parameters.

messages_unapproveBInspect

Moves an APPROVED message back to NEW (draft), clears scheduled_at, and removes it from the send queue. The message can then be edited and re-approved.

Method: POST /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/unapprove/

Inputs: body (required), sqid (required), subject (required), channel.

messages_updateAInspect

Messages with status NEW, REVIEW_REQUIRED, or APPROVED can be edited (subject, body, scheduled_at). Once SENT, edits are rejected — sent messages are part of the audit trail.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/

Inputs: sqid (required), body, channel, subject.

persons_getAInspect

Workspace-gated detail view of a person in the discovery database. Returns contacts (emails + phones with confidence scores), social profiles, country/locality, headline, and all past + current company associations. Access is gated by the workspace: if the calling workspace has no existing lead or relationship with this person, the endpoint returns 404 to prevent scraping.

Method: GET /api/v1/workspaces/{workspace_sqid}/discovery/persons/{guid}/

Inputs: guid (required).

placement_tests_bulk_deleteCInspect

Body {sqids: [...]}. Returns {deleted_count}.

Method: POST /api/v1/workspaces/{workspace_sqid}/placement-tests/bulk-delete/

Inputs: sqids (required).

placement_tests_createAInspect

Renders the message and sends it from from_mailbox_sqid to the IMAP mailbox to_mailbox_sqid, then polls that mailbox until the copy is found. Returns immediately with a pending row — poll GET /placement-tests/<sqid>/ for the outcome. Does not change the real message's status and does not charge connects.

Method: POST /api/v1/workspaces/{workspace_sqid}/placement-tests/

Inputs: message_sqid (required), to_mailbox_sqid (required), from_mailbox_sqid.

placement_tests_deleteCInspect

Delete a placement test from the log

Method: DELETE /api/v1/workspaces/{workspace_sqid}/placement-tests/{sqid}/

Inputs: sqid (required).

placement_tests_getCInspect

Adds the full received message to the row: headers (in wire order), body_parts (one entry per MIME part) and raw_email (the truncated original source), plus the parsed analysis of the receiver's X-Spam and Authentication-Results headers.

Method: GET /api/v1/workspaces/{workspace_sqid}/placement-tests/{sqid}/

Inputs: sqid (required).

placement_tests_listBInspect

The placement-test log, newest first. Each row records where a test copy of a campaign message landed in one of your IMAP mailboxes: inbox, spam or other (any other folder). Rows stay pending until the probe is found or its deadline (4 hours by default) passes, at which point they become undelivered. error means the send itself failed — see error_message.

Method: GET /api/v1/workspaces/{workspace_sqid}/placement-tests/

Inputs: limit, offset, search, status, +4 more.

saved_searches_add_nowAInspect

One-off preview run. Body {count: N} — how many new leads to attempt to add (1–1000, default 10). The search runs against the discovery DB, skips people this saved search has already added, and inserts up to N new leads into add_to_segment. Ignores is_enabled and the daily add_limit — a human asking for N leads is not what the daily cap throttles. Note the other automated caller, campaign autopilot, also ignores is_enabled but does honour add_limit; set add_limit=0 to stop it pulling. Use this to iterate on params_json before flipping is_enabled=true.

Returns {added: <count>}. Charges ADD_LEAD_FROM_DISCOVERY connects per added lead.

Method: POST /api/v1/workspaces/{workspace_sqid}/saved-searches/{sqid}/add-now/

Inputs: sqid (required), count.

saved_searches_bulk_toggleAInspect

Sets is_enabled on every saved search whose sqid is listed, scoped to the current workspace. Enabling makes the scheduled batch picker auto-run the search; disabling pauses it. Sqids not in this workspace are ignored.

Method: POST /api/v1/workspaces/{workspace_sqid}/saved-searches/bulk-toggle/

Inputs: sqids (required), is_enabled (required).

saved_searches_createAInspect

Persists a discovery query that can be re-run on demand (via saved_searches_add_now) or scheduled for daily drip. Useful when the user wants continuous prospecting into a segment without re-specifying the filters each time.

Compose params_json exactly like the query params you would pass to companies_search — the saved search replays those every run and adds newly-matching people to add_to_segment as leads, up to add_limit per run.

Newly created saved searches default to is_enabled=false so the scheduled picker won't auto-run them. Preview with saved_searches_add_now first, then PATCH is_enabled=true once you're satisfied with the query.

Method: POST /api/v1/workspaces/{workspace_sqid}/saved-searches/

Inputs: name (required), params_json (required), add_to_segment (required), add_limit, +3 more.

saved_searches_deleteAInspect

Stops the scheduled search. Leads it already added stay in their segment. To pause it instead, set is_enabled=false with saved_searches_update.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/saved-searches/{sqid}/

Inputs: sqid (required).

saved_searches_getBInspect

One saved search by its sqid: its params_json filters, the segment it adds leads to (add_to_segment), the blocklist segment (rejected_segment), the daily add_limit, whether it runs on schedule (is_enabled) and when it last added leads.

Method: GET /api/v1/workspaces/{workspace_sqid}/saved-searches/{sqid}/

Inputs: sqid (required).

saved_searches_listBInspect

List saved discovery searches

Method: GET /api/v1/workspaces/{workspace_sqid}/saved-searches/

Inputs: limit, offset, search, ordering, +1 more.

saved_searches_updateAInspect

Change the filters (params_json, same shape as companies_search query params), the target segment, the daily add_limit, or turn the schedule on and off with is_enabled. Run saved_searches_add_now with a small count to check a changed query before enabling it.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/saved-searches/{sqid}/

Inputs: sqid (required), name, add_limit, is_shared, +4 more.

segments_automations_copyAInspect

Copies automations from source_segment (same workspace) to the end of this segment's chain, keeping their order, config, run conditions and overwrite flag. Pass automations (sqids in the source segment) to copy only some; omit to copy all.

Automations that move leads to other segments (qualification positive_move_to_segment / negative_move_to_segment) are copied disabled and listed in needs_review: point them at this campaign's segments, then enable them. Copies don't run on existing leads; use segments_enrichments_run_all for that.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/copy/

Inputs: segment_sqid (required), source_segment (required), automations.

segments_automations_reorderBInspect

Accept an ordered list of automation sqids and assign sequential order values (10, 20, 30 …). Every automation in the segment must appear exactly once.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/reorder/

Inputs: segment_sqid (required), ordered_sqids (required).

segments_compliance_summaryAInspect

The compliance answer for a whole segment (lead list): allowed of total contacts can be emailed; set_aside are held back by a rule now (opt-outs, bounces, countries that need consent, personal mailboxes, …); would_set_aside more will be held back once rules still in warn mode are switched on. top lists the biggest set-aside groups as {label, count}.

The same gates as campaigns_preflight, over every non-archived lead in the segment (not only NEW ones). headline.summary is a one-line sentence to quote to the user; groups and reasons (with why/fix) are the details. Lists over 20,000 leads are sampled and scaled (sample). Cached for 5 minutes, and refreshed when leads are added, removed or edited; pass refresh=true after uploading consent or suppression records.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/compliance-summary/

Inputs: sqid (required), refresh.

segments_createAInspect

Creates an empty segment. To populate it, either:

  • Call leads_bulk_add_to_segment with discovery GUIDs, or

  • Attach a FilterConfig (via UI or filter_configs_create + segment.filters M2M) so leads matching the filter are added automatically, or

  • Create a SavedSearch targeting this segment for continuous drip.

For bulk segment generation from a natural-language brief, use segments_suggest instead — it produces multiple matching segments + filters in one LLM call.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/

Inputs: name (required), pinned, filters, priority, +2 more.

segments_deleteAInspect

Deletes the segment. Leads belonging to it aren't deleted — they just lose this segment membership.

Returns 409 if any campaigns reference this segment (as primary or completed-segment target), with a campaigns list of {sqid, name, is_active, state} blockers.

Archived campaigns never block. They give up their segment reference on the way out, which is what makes a finished campaign's list deletable without touching a single message.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/

Inputs: sqid (required).

segments_enrichments_create_viewAInspect

Builds a ViewConfig (saved column layout) whose columns are exactly the output fields produced by the segment's enrichments. Lets the user inspect enrichment results side-by-side in the leads table. Body {name} sets a display name; defaults to ' — enrichment output'. Returns {sqid, name} of the new view.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/create-view/

Inputs: segment_sqid (required).

segments_enrichments_logsAInspect

Returns up to 500 most-recent log entries for this segment, newest first. Each entry: enrichment_type, success (bool), created_at (when the run finished), error_message, connects_used, and the lead the enrichment ran against.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/logs/

Inputs: segment_sqid (required).

segments_enrichments_runAInspect

Kicks off an enrichment as an async Celery task, processing every lead in the segment. Returns {task_sqid} immediately — poll jobs_get for progress.

automation_id is the automation sqid (preferred) or an enrichment type key (e.g. apply_formula, ai_research). When two automations share the same type on one segment, the type key is ambiguous — use the sqid from segments_automations_list instead.

Cost. Per-lead and proportional to the work done, so an AI enrichment costs many times what a validation does. Rates are in billing_pricelist; check billing_balance before running on large segments.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/run/{automation_id}/

Inputs: segment_sqid (required), automation_id (required).

segments_enrichments_run_allAInspect

Dispatches a single async task that runs all enabled enrichments sequentially per lead, respecting the order field on each AutomationConfig. Returns {task_sqid} — poll via jobs_get.

Cost is the sum of individual enrichments; for a segment with 5 enrichments × 1000 leads that can run into the hundreds of connects — warn the user before running.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/run-all/

Inputs: segment_sqid (required).

segments_exportAInspect

Starts a background job that writes the segment's leads to a file in the workspace Files (workspaces_files_list). Rows, columns and order are the same as the lead table for the given filter + view + status: columns and sort come from the view (default columns when omitted), the filter narrows rows, and ARCHIVED leads are excluded unless status says otherwise. Returns {task_sqid, job_url}; poll jobs_get until COMPLETED, then result.file_sqid is the file to fetch with files_download.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/export/

Inputs: sqid (required), view, filter, format, +2 more.

segments_facetsAInspect

Returns the distinct values of one segment column with their counts, ordered by count descending — the data behind the value checklist in the segment list's column menus.

Filterable columns: name, description, priority, pinned. Lead and automation counts are per-row aggregates and are not offered.

Pass the other columns' active qf entries to get counts that match what is on screen; any entry for field itself is ignored.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/facets/

Inputs: field (required), q, limit.

segments_getAInspect

One segment by its sqid: name, description, priority, pinned flag and lead count. Its automations (filters and enrichments) are listed by workspaces_segments_automations_list; the campaigns and saved searches that use it by segments_relationships.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/

Inputs: sqid (required).

segments_listBInspect

Returns all segments ordered by priority desc, name asc. Pinned segments still appear in the global order — pinned is a UI hint, not a sort key. Use ?name= for substring filter.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/

Inputs: qf, limit, offset, search, +1 more.

segments_pinCInspect

Cosmetic only — does not affect targeting or priority.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/pin/

Inputs: name (required), sqid (required), pinned, priority, +1 more.

segments_purgeAInspect

Empties the segment's lead membership list. The leads themselves stay in the workspace and in any other segments they belong to. Returns {purged: <count>}. Irreversible — re-populating needs another leads_bulk_add_to_segment or filter run.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/purge/

Inputs: name (required), sqid (required), pinned, priority, +1 more.

segments_relationshipsAInspect

Returns a DAG of segments, saved searches, and campaigns with edges representing data flow: feeds, rejects, qualifies, disqualifies, campaign_target, campaign_completes. Use to visualize the lead pipeline. Each edge carries is_enabled: false for a qualification whose automation is switched off (leads do not move along it) or a feed from a disabled saved search (its hourly schedule is off; autopilot still pulls).

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/relationships/

Inputs: no named parameters.

segments_unpinCInspect

Cosmetic only — does not affect targeting or priority.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/unpin/

Inputs: name (required), sqid (required), pinned, priority, +1 more.

segments_updateAInspect

Updates segment name, description, priority, pinned status, filters, or exclude_filters. After saving, the server re-evaluates all include and exclude filters via add_leads_from_filters() — leads matching include filters are added, leads matching exclude filters are removed.

This is the way to trigger filter re-evaluation after editing a filter config. Editing a filter alone does NOT retroactively update segment membership — you must call this endpoint on each affected segment.

Note: re-evaluation only adds newly matching leads (and removes excluded ones). Leads that no longer match include filters are not removed. To rebuild from scratch, call segments_purge first, then segments_update.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/

Inputs: sqid (required), name, pinned, filters, +3 more.

sequences_copyAInspect

Creates a new sequence with the same name suffixed '(copy)' and every step cloned identically. Useful as a starting point for A/B variants or client-specific tweaks of a proven template. Returns {sqid, name} of the new sequence.

A sequence with more than 5 emails (message steps; API and manual steps don't count) can't be copied: 400 with code: "touch_limit".

Content lint (compliance gate content_lint): a step whose first email subject starts with Re:/Fwd: or that fakes quoted history is refused with 400 code: "content_lint" in enforce mode; in warn mode the copy is made and warnings lists the findings.

Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/{sqid}/copy/

Inputs: sqid (required).

sequences_createAInspect

A sequence is an ordered list of email Steps — a first touch plus 2–5 follow-ups is typical. Create the sequence first, then add steps via steps_create (or pass them inline if the serializer supports it).

Template syntax inside step subject/body:

  • ${first_name}, ${company_name}, ${city}, or any context_field key → substituted from the lead at render time.

  • {{Write a 1-line intro mentioning their recent hire …}} → LLM-generated snippet per lead (costs COMPOSE_EMAIL connects). Use sparingly: one {{prompt}} per email is plenty.

  • {Hi|Hello|Hey} → spintax, random pick per message — improves deliverability by varying the send body.

Good sequence structure (cold-outreach best practice): short text-only emails, problem → evidence → soft CTA, spaced 3–5 days apart, minimum 4 steps. No tracking pixels, no images, no links in the signature. Keep {unsubscribe_link} in the footer if targeting EU/Canada.

Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/

Inputs: name (required), objective, is_threaded.

sequences_deleteBInspect

Blocked (409) while any campaign still references this sequence. Pausing or cancelling a campaign does not release it — archiving does: an archived campaign gives up its sequence and lets this succeed, keeping its own message history with a null sequence.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/sequences/{sqid}/

Inputs: sqid (required).

sequences_getAInspect

One sequence by its sqid: name and settings. Its emails are listed by steps_list.

Method: GET /api/v1/workspaces/{workspace_sqid}/sequences/{sqid}/

Inputs: sqid (required).

sequences_listBInspect

Returns all sequences in the workspace ordered by name. A sequence is a reusable email template — it's not tied to any particular segment. One sequence can power many campaigns.

Method: GET /api/v1/workspaces/{workspace_sqid}/sequences/

Inputs: limit, offset.

sequences_updateAInspect

Does NOT reach into the step list — update individual steps via steps_update. Changes to a sequence used by a running campaign take effect for messages generated after the edit; messages already sent or approved are unaffected.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/sequences/{sqid}/

Inputs: sqid (required), name, objective, is_threaded.

steps_createAInspect

A step is one email in a sequence. Key fields:

  • delay_days — how many days after the previous step this one fires. For the first step use 0.

  • subject_template and message_template — text with ${var} / {{prompt}} / {a|b} placeholders.

  • channel — almost always 0 (email).

API steps (channel=4) call an external system instead of sending an email: set action_config to an AnyAPI config (profile + mappings, see the field) and leave the templates empty. On success the profile's outputs are written to the lead's context fields and the lead moves on; on failure only that lead waits (status 15 in campaigns_step_logs, listed in action_items_list) and the rest of the campaign keeps going. Pacing: followed by an email at delay_days=0, the API step runs right before the send and is limited by mailbox capacity; otherwise it runs as soon as it is due. Check a new step with steps_test_run (a real call) before activating.

Template filters transform field values inline:

  • ${field|title} — Title Case (use on names from discovery data)

  • ${field|lower}, ${field|upper} — case conversion

  • ${field|truncatechars:60} — truncate with ellipsis

  • ${field|intcomma} — thousands separator (94491 → 94,491)

  • ${field|intword} — human-readable (1000000 → 1.0 million)

  • ${field|ordinal} — ordinal suffix (1 → 1st, 3 → 3rd)

  • ${field|apnumber} — spell out 1-9 (3 → three)

  • ${field|rstrip_punct} — strip trailing .,;:!? Chain filters: ${field|lower|title}. Combine with default: ${field:fallback|title}.

Typical step cadence: 0 → 3 → 7 → 14 → 30 days. Don't pack steps within 24h — recipients interpret it as aggressive.

Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/

Inputs: name (required), sequence_sqid (required), order, channel, +5 more.

steps_deleteCInspect

Messages already generated for this step stay in the outbox; only future scheduling is affected.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/

Inputs: sqid (required), sequence_sqid (required).

steps_getBInspect

One step of a sequence by its sqid: its channel (an email, an API call or a manual task), subject and body templates, delay_days after the previous step and its position.

Method: GET /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/

Inputs: sqid (required), sequence_sqid (required).

steps_listCInspect

Ordered by order (the execution order). delay_days is the wait after the previous step, not a position.

Method: GET /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/

Inputs: sequence_sqid (required), limit, offset.

steps_reorderAInspect

Pass every step sqid of the sequence once, in the new order; they get order 0, 1, 2 … in one transaction. delay_days is not touched — it stays the wait after whatever step now precedes it.

On a sequence a live campaign uses: a lead only advances to the step after the one it is on, so a step moved in front of a lead's current position is never run for that lead (e.g. an API step placed before email 1 is skipped by leads already mailed); leads that have not reached it get the new order.

Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/reorder/

Inputs: ordered_sqids (required), sequence_sqid (required), limit, offset.

steps_test_runAInspect

Runs the step's integration profile for lead_sqid outside any campaign, to check the configuration. This is a real call with real side effects (e.g. it really starts a subscription), the outputs are written to the lead, and connects are charged — so confirm=true is required. Use an internal test lead. The profile sees {{run.key}} as test-<id>, unique per test run.

Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/test-run/

Inputs: sqid (required), confirm (required), lead_sqid (required), sequence_sqid (required).

steps_updateBInspect

Partial update — only send the fields you want to change. See steps_create for template syntax reference including filters like ${field|title}, ${field|truncatechars:60}, and ${field|intcomma}.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/

Inputs: sqid (required), sequence_sqid (required), name, order, +6 more.

suppressions_createAInspect

Manually stop all email to an address (email) or a whole company domain (domain). An address entry also stops every live campaign enrolment of that address and marks its leads unsubscribed; a domain entry is enforced by the gates. Entries are permanent: they cannot be deleted later (only bounce entries can). Idempotent — 200 when the entry already existed.

Method: POST /api/v1/workspaces/{workspace_sqid}/suppressions/

Inputs: note, email, domain.

suppressions_deleteAInspect

Only entries with reason=hard_bounce can be removed — for an address that works again. Opt-outs (unsubscribes, opt-out replies, complaints, manual entries) are permanent: 400 opt_out_permanent. Only a new consent given after the opt-out lets you email such a person again.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/suppressions/{sqid}/

Inputs: sqid (required).

suppressions_getCInspect

Get one do-not-contact entry

Method: GET /api/v1/workspaces/{workspace_sqid}/suppressions/{sqid}/

Inputs: sqid (required).

suppressions_listAInspect

Addresses and domains this workspace must never email: unsubscribes, opt-out replies, complaints, hard bounces and manual additions. The gates block them at generate, approve and send. Only a hash of each address is stored, so use email= to check one address — that also finds entries on Sellvance's global do-not-contact list (people who objected to us directly), which are otherwise not listed. Domain entries show domain.

Method: GET /api/v1/workspaces/{workspace_sqid}/suppressions/

Inputs: kind, email, limit, domain, +2 more.

workspaces_api_keys_listAInspect

Keys bound to this workspace: name, scopes, enabled flag and when each was created and last used. The key itself is masked (first 6 and last 4 characters). Account-wide keys are listed by account_api_keys_list.

Method: GET /api/v1/workspaces/{workspace_sqid}/api-keys/

Inputs: limit, offset.

workspaces_api_keys_retrieveBInspect

One key by its sqid; the key itself is masked.

Method: GET /api/v1/workspaces/{workspace_sqid}/api-keys/{sqid}/

Inputs: sqid (required).

workspaces_company_access_listAInspect

Returns company GUIDs + names for companies the workspace has imported from discovery. Supports ?q= search on company name. Used to populate the discovery company picker on the lead detail page.

Method: GET /api/v1/workspaces/{workspace_sqid}/company-access/

Inputs: no named parameters.

workspaces_context_fields_createAInspect

Adds a key to the workspace's lead context schema. Declare every field an enrichment writes or a filter or template reads before you create them, or the enrichment has nowhere to store its output. key must be unique in the workspace; field_type sets how the value is stored and filtered; use=true includes the value in the context the AI sees when it writes messages.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/

Inputs: key (required), use, keys, order, +2 more.

workspaces_context_fields_destroyAInspect

Removes only the definition. Values already stored on leads stay and show as unregistered fields. To remove the values too, use context_fields_purge. Check context_fields_references first: filters, automations and templates that use the key stop working.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/

Inputs: sqid (required).

workspaces_context_fields_listAInspect

Context fields are the schema for the context JSON blob on every lead: which keys exist, what they mean, and what type they hold.

Returns a flat array by default. Pass ?page=N to get the paginated shape {count, num_pages, page, per_page, results} instead — the flat default is kept because several callers consume the list directly.

Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/

Inputs: qf, search, ordering.

workspaces_context_fields_partial_updateAInspect

Changes the description, type, order or the 'include in AI context' flag. To change the key, use context_fields_rename: it also moves every lead's value, which a plain update does not.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/

Inputs: sqid (required), key, use, keys, +3 more.

workspaces_context_fields_retrieveBInspect

One context field definition by its sqid: key, description, type and whether it goes into AI message context.

Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/

Inputs: sqid (required).

workspaces_domain_purchases_cancel_createAInspect

Cancels an order that is unpaid or whose payment failed. Paid orders cannot be cancelled.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/cancel/

Inputs: sqid (required).

workspaces_domain_purchases_createAInspect

Creates an order for the given domain names (check them first with workspaces_domains_suggest_create) with a price and tax total. Nothing is charged here: a person pays in the Sellvance app (PayPal), or the order goes on the invoice for accounts with invoiced billing. After payment the domains are registered and their DNS set up; follow them with workspaces_domain_registrations_list.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-purchases/

Inputs: no named parameters.

workspaces_domain_purchases_destroyBInspect

Only an order still waiting for payment can be deleted.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/

Inputs: sqid (required).

workspaces_domain_purchases_execute_createAInspect

Completes the order with the paymentID and payerID PayPal returns after the person approves the payment. Used by the payment page; an agent has no PayPal approval to confirm.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/execute/

Inputs: sqid (required).

workspaces_domain_purchases_listBInspect

The workspace's domain orders, newest first: status, totals and the domains in each.

Method: GET /api/v1/workspaces/{workspace_sqid}/domain-purchases/

Inputs: limit, offset.

workspaces_domain_purchases_retrieveBInspect

One order by its sqid: status, totals and its domains.

Method: GET /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/

Inputs: sqid (required).

workspaces_domain_purchases_retry_payment_createBInspect

Reset a FAILED purchase back to PENDING_PAYMENT with a new PayPal order.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/retry-payment/

Inputs: sqid (required).

workspaces_domain_registrations_contact_partial_updateAInspect

Updates the owner contact on a registered domain at the registrar. Refused for domains Sellvance holds as registrant.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/domain-registrations/{sqid}/contact/

Inputs: sqid (required).

workspaces_domain_registrations_listBInspect

One row per bought domain: registration status, registrar, expiry and the last error. Filter with status or purchase (a purchase sqid).

Method: GET /api/v1/workspaces/{workspace_sqid}/domain-registrations/

Inputs: limit, offset.

workspaces_domain_registrations_retrieveBInspect

One registration by its sqid, with its status and last error.

Method: GET /api/v1/workspaces/{workspace_sqid}/domain-registrations/{sqid}/

Inputs: sqid (required).

workspaces_domain_registrations_retry_createBInspect

Restarts registration of a paid domain whose registration failed or got stuck.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-registrations/{sqid}/retry/

Inputs: sqid (required).

workspaces_domains_bulk_set_redirect_createCInspect

Set or clear redirect_url on multiple domains at once.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/bulk-set-redirect/

Inputs: no named parameters.

workspaces_domains_createAInspect

Registers a domain you already own so its DNS can be checked and mailboxes added on it. Run workspaces_domains_verify_create afterwards. To buy a new domain instead, use workspaces_domains_suggest_create and workspaces_domain_purchases_create.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/

Inputs: name (required), redirect_url, dkim_selectors, link_subdomain, +1 more.

workspaces_domains_destroyAInspect

Removes the domain from the workspace. Refused with 400 while any mailbox is configured on it: remove the mailboxes first. This does not cancel a registration.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/

Inputs: sqid (required).

workspaces_domains_dmarc_retrieveAInspect

What receivers (Google, Microsoft, …) reported in their daily DMARC aggregate reports for this domain over days (1-90, default 7). Reports are fetched daily from the rua mailbox (DMARC_REPORTS_IMAP_*); managed domains publish rua=mailto:<rua_address>, external domains must add it to their own DMARC record.

Rows are classified: direct (our sending path — envelope domain aligned with From), forwarded (someone else's envelope, our DKIM signature present: a recipient auto-forward) and other (neither: spoofing or an unknown sender). direct_dkim_failures is the number to act on; forwarded failures are expected. Returns {totals, by_kind, direct_dkim_failures, failures, daily, reports, rua_address}.

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/dmarc/

Inputs: sqid (required), days.

workspaces_domains_dns_records_createBInspect

Verification mirror (GET) or create a record at the registrar (POST).

GET returns the verification mirror as a plain array (record_type, host, value, is_valid, issue) — used by the domain detail / verification view. Live, editable records (with record_ref) are served by dns-records/live/.

POST creates a record at the registrar (managed domains only).

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/dns-records/

Inputs: host (required), sqid (required), content (required), record_type (required), +4 more.

workspaces_domains_dns_records_delete_createAInspect

Removes one record at the registrar by its record_ref from workspaces_domains_dns_records_live_retrieve. Only for domains whose DNS Sellvance manages.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/dns-records/delete/

Inputs: sqid (required), record_ref (required).

workspaces_domains_dns_records_listBInspect

Verification mirror (GET) or create a record at the registrar (POST).

GET returns the verification mirror as a plain array (record_type, host, value, is_valid, issue) — used by the domain detail / verification view. Live, editable records (with record_ref) are served by dns-records/live/.

POST creates a record at the registrar (managed domains only).

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/dns-records/

Inputs: sqid (required), limit, offset.

workspaces_domains_dns_records_live_retrieveAInspect

For the DNS editor: {editable, records}.

Managed domains → live registrar records carrying record_ref for editing. External domains → the read-only verification mirror.

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/dns-records/live/

Inputs: sqid (required).

workspaces_domains_dns_records_update_createBInspect

Edits one record at the registrar. record_ref comes from workspaces_domains_dns_records_live_retrieve. Only for domains whose DNS Sellvance manages; a wrong SPF, DKIM or MX value stops mail from being delivered.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/dns-records/update/

Inputs: host (required), sqid (required), content (required), record_ref (required), +3 more.

workspaces_domains_fix_dns_createAInspect

Re-dispatch DNS setup for a managed domain.

For email-provisioned domains: regenerates DKIM, upserts MX/SPF/DMARC. For domains with redirect_url: creates/updates A/AAAA records pointing to the redirect proxy. Resets the verification cooldown.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/fix-dns/

Inputs: name (required), sqid (required), redirect_url, dkim_selectors, +2 more.

workspaces_domains_listBInspect

The workspace's domains: managed ones (bought through Sellvance, DNS set up for you) and external ones you added. Each row has SPF, DKIM, DMARC and MX status from the last check and how many mailboxes use it. Dormant domains are hidden unless status is dormant or all.

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/

Inputs: q, page, limit, offset, +3 more.

workspaces_domains_partial_updateCInspect

Change domain settings such as the redirect URL for the bare domain.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/

Inputs: sqid (required), name, redirect_url, dkim_selectors, +2 more.

workspaces_domains_postmaster_connect_createAInspect

Registers the domain in Sellvance's Postmaster account and verifies it: a managed domain gets the TXT record written automatically; for an external one, publish the returned txt_record and call this again. Returns the same payload as GET postmaster/.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/postmaster-connect/

Inputs: sqid (required).

workspaces_domains_postmaster_retrieveAInspect

Gmail's own view of the domain, from Sellvance's Google Postmaster Tools account: state ('' not connected, pending, verified, error), the TXT record to publish while pending (txt_record; managed domains get it written automatically), the latest Gmail sender-requirements compliance (rows COMPLIANT / NEEDS_WORK) and daily stats (spam_rate, auth_spf/dkim/dmarc, delivery_error_rate, reject_rate, tls_rate — proportions). Data only appears above a volume Google does not publish, and covers personal Gmail recipients only. Synced daily.

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/postmaster/

Inputs: sqid (required), days.

workspaces_domains_retrieveBInspect

One domain by its sqid, with its DNS status and the time of the last check.

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/

Inputs: sqid (required).

workspaces_domains_signals_retrieveAInspect

Inbox-placement signal from recipients' auto-replies. Gmail and Outlook suppress out-of-office replies (and read receipts) for mail they filed as spam, so their rate per send measures delivery; genuine replies and unsubscribes can confirm it. The pooled test reads sends to business recipients only (counts.business_sends / counts.business_auto_replies): personal mailboxes rarely set an out-of-office. Reads every campaign that sent through any mailbox on this domain in the window, whatever the campaign's state.

delivery is the pooled verdict (pass / fail / inconclusive, with a Clopper-Pearson interval and sends_to_conclude). segments splits it by recipient segment (gmail, google_workspace, outlook_consumer, microsoft365, other_consumer, other), each against its own baseline (baseline.source measured across all workspaces, or configured = borrowed from the workspace; a consumer segment cannot fail on a borrowed baseline).

compliance_monitor is the auto-pause monitor's view of the same sender over its own rolling 7 days (not days): status (ok / warn / over_threshold / paused / insufficient_data), hard_bounce (rate, count, sent, warn_at 2%, pause_at 3%, min_sends 50), reputation (SMTP blocks such as 421 4.7.28 or S3150), blocklists (Spamhaus DBL / SURBL listings — these pause at once) and, when paused, auto_pause_reason. Warnings never stop sending; crossing a pause threshold does (see codedoc/compliance.md).

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/signals/

Inputs: sqid (required), days.

workspaces_domains_suggest_createBInspect

Return a page of alternate-domain suggestions with availability.

base must be your own brand: similar to the workspace name, the account's company name, website or signup domain, or one of the workspace's domains. Other bases, and names containing a protected brand, regulator or industry body (paypal, hmrc, gov…), are refused with 400 code: domain_not_allowed and an explanation; domain purchases apply the same rule.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/suggest/

Inputs: name (required), redirect_url, dkim_selectors, link_subdomain, +1 more.

workspaces_domains_tlds_retrieveAInspect

Top-level domains on sale (.com, .io...) with the retail price, currency and registrar.

Method: GET /api/v1/workspaces/{workspace_sqid}/domains/tlds/

Inputs: no named parameters.

workspaces_domains_verify_createAInspect

Looks up SPF, DKIM, DMARC, MX, A and AAAA and the website, stores the results and returns the updated domain. Allowed once every 4 hours per domain; earlier calls get 429 with next_allowed_at.

Method: POST /api/v1/workspaces/{workspace_sqid}/domains/{sqid}/verify/

Inputs: name (required), sqid (required), redirect_url, dkim_selectors, +2 more.

workspaces_enrichment_profiles_createBInspect

Defines an HTTP call to your own or a third-party API that an anyapi automation can then run for each lead.

Method: POST /api/v1/workspaces/{workspace_sqid}/enrichment-profiles/

Inputs: name (required), steps, description, input_fields, +3 more.

workspaces_enrichment_profiles_destroyCInspect

Predefined profiles cannot be deleted.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/enrichment-profiles/{sqid}/

Inputs: sqid (required).

workspaces_enrichment_profiles_listAInspect

Profiles for the anyapi enrichment: predefined ones (email validation and other third-party APIs) and the workspace's own. Each lists its input_fields, output_fields, settings and connects cost. Pass a profile's sqid as profile_sqid in an anyapi automation's config.

Method: GET /api/v1/workspaces/{workspace_sqid}/enrichment-profiles/

Inputs: no named parameters.

workspaces_enrichment_profiles_partial_updateCInspect

Predefined profiles (is_predefined: true) cannot be edited.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/enrichment-profiles/{sqid}/

Inputs: sqid (required), name, steps, description, +4 more.

workspaces_enrichment_profiles_retrieveBInspect

One profile by its sqid, with its inputs, outputs and settings schema.

Method: GET /api/v1/workspaces/{workspace_sqid}/enrichment-profiles/{sqid}/

Inputs: sqid (required).

workspaces_enrichments_oauth_disconnect_createCInspect

Delete an OAuth2 connection.

Method: POST /api/v1/workspaces/{workspace_sqid}/enrichments/oauth/disconnect/

Inputs: no named parameters.

workspaces_enrichments_oauth_status_retrieveBInspect

Check if an OAuth2 connection exists for a given provider_key.

Method: GET /api/v1/workspaces/{workspace_sqid}/enrichments/oauth/status/

Inputs: no named parameters.

workspaces_enrichments_schema_retrieveBInspect

Return JSON schema for all enrichment types, describing their form fields.

Method: GET /api/v1/workspaces/{workspace_sqid}/enrichments/schema/

Inputs: no named parameters.

workspaces_files_listAInspect

CSV files in the workspace: lead imports people uploaded (kind=upload) and files written by segments_export (kind=export), with name, size and the job that produced them. The content is downloaded from download_url over the REST API.

Method: GET /api/v1/workspaces/{workspace_sqid}/files/

Inputs: kind, limit, offset.

workspaces_files_retrieveBInspect

One file by its sqid: name, kind, size, the job that produced it and its download_url.

Method: GET /api/v1/workspaces/{workspace_sqid}/files/{sqid}/

Inputs: sqid (required).

workspaces_filter_configs_createAInspect

Creates a reusable filter. The response includes matched_lead_count — the number of workspace leads that currently match the filter conditions. Use this to validate the filter without creating a segment.

Creating a filter does NOT add leads to any segment. To apply it, set filters or exclude_filters on a segment via segments_update, or reference it from a segment automation's run_filters.

Valid field keys and operators are returned by workspaces_filter_configs_metadata_retrieve.

Method: POST /api/v1/workspaces/{workspace_sqid}/filter-configs/

Inputs: name (required), conditions.

workspaces_filter_configs_destroyAInspect

Deletes the filter. Fails with 400 if it is still referenced by segments (include or exclude) or automation run_filters. Check workspaces_filter_configs_related_objects_retrieve first.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/filter-configs/{sqid}/

Inputs: sqid (required).

workspaces_filter_configs_listAInspect

Returns all filter configurations for the workspace. Supports optional pagination with ?page=N&per_page=M and search with ?search=<text> (searches name and condition text). Without ?page=, returns a flat list.

Method: GET /api/v1/workspaces/{workspace_sqid}/filter-configs/

Inputs: no named parameters.

workspaces_filter_configs_metadata_retrieveAInspect

Returns the metadata needed to build filter conditions: all available field keys with labels and types, comparison operators, and logical operators (AND/OR).

Pass ?stats=true to include filled_count and total_count per field — shows how many leads have a non-null, non-empty value. Useful for choosing which fields to filter on and for understanding whether to use is empty vs = 0.

Method: GET /api/v1/workspaces/{workspace_sqid}/filter-configs/metadata/

Inputs: stats.

workspaces_filter_configs_partial_updateAInspect

Updates filter name and/or conditions. The response includes matched_lead_count for the updated conditions.

Editing a filter does NOT retroactively recompute segment membership. Filters are evaluated when a segment is saved or when a lead changes — not when the filter itself is edited. After editing, call segments_update on each segment using this filter to pull in newly matching leads. Use workspaces_filter_configs_related_objects_retrieve to find which segments reference it.

Note: segments_update only adds newly matching leads — leads that no longer match are not removed. To rebuild from scratch, call segments_purge first, then segments_update.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/filter-configs/{sqid}/

Inputs: sqid (required), name, conditions.

workspaces_filter_configs_retrieveAInspect

Returns the filter config with its conditions, a human-readable query_preview, related_objects_count (segments and automations referencing it), and matched_lead_count (number of workspace leads currently matching).

Method: GET /api/v1/workspaces/{workspace_sqid}/filter-configs/{sqid}/

Inputs: sqid (required).

workspaces_leads_facetsAInspect

Returns distinct values and their counts for a given field across workspace leads. Use this to understand data distribution before building filter conditions — especially to check whether a field uses NULL vs a zero/empty value.

Supports context fields and Lead model fields (status, contact_type). Discovery fields are not supported yet.

Results are ordered by count descending, capped at limit. Each entry is {value, count}, plus label for fields with display choices (status, contact_type) — filter on value, show label.

This powers the value checklist in the lead list's column menus, so it accepts the same qf parameter as workspaces_leads_list: pass the other columns' active quick filters and the counts returned here will match what is on screen. Any qf entry for field itself is ignored, so unticking a value does not make the other values disappear.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/facets/

Inputs: field (required), q, qf, limit, +2 more.

workspaces_leads_listAInspect

Paginated lead list with column values, filtering, ordering, and search. Pass meta=false to omit the bulky meta block (available views, filters, and segments) — recommended for agent/MCP use to save context tokens.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/

Inputs: q, qf, meta, page, +8 more.

workspaces_mailboxes_archive_createAInspect

Archiving is how a mailbox is retired. It sends nothing, is not health-checked, and its domain stops being verified once no enabled mailbox uses it. Replies to campaigns it sent for are still read once a day, so opt-outs are honoured. It is deleted automatically 30 days later (scheduled_deletion_at); delete it sooner with workspaces_mailboxes_destroy.

It leaves the sending pool of every campaign; follow-ups to its leads go out from the campaign's other mailboxes. A campaign left with no mailbox to send from is paused (listed in paused_campaigns).

A Sellvance-hosted mailbox is removed from the mail provider right away and billing stops; it cannot be unarchived. Idempotent: archived: false when it already was.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/archive/

Inputs: sqid (required).

workspaces_mailboxes_bulk_archive_createBInspect

Bulk archive ({"sqids": [...]}) — same effect as the single archive action.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/bulk-archive/

Inputs: no named parameters.

workspaces_mailboxes_bulk_delete_createAInspect

Bulk delete archived mailboxes.

Mailboxes that are not archived are skipped and listed in skipped_not_archived. Managed (OpenSRS) mailboxes still on the provider are torn down first; provider errors alert admins and never block the local delete.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/bulk-delete/

Inputs: no named parameters.

workspaces_mailboxes_bulk_toggle_createBInspect

Bulk toggle is_enabled on mailboxes.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/bulk-toggle/

Inputs: no named parameters.

workspaces_mailboxes_bulk_unarchive_createBInspect

Bulk unarchive ({"sqids": [...]}); managed mailboxes come back in errors.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/bulk-unarchive/

Inputs: no named parameters.

workspaces_mailboxes_bulk_update_createBInspect

Bulk-set mailbox fields (name, signature, forward_to_email, delete_after_days).

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/bulk-update/

Inputs: no named parameters.

workspaces_mailboxes_createAInspect

Adds an existing mailbox by its SMTP and IMAP settings (host, port, user, password). Sellvance sends campaign mail through SMTP and reads replies, bounces and opt-outs over IMAP. For a mailbox hosted by Sellvance, use workspaces_mailboxes_provision_create.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/

Inputs: name (required), email (required), signature, is_enabled, +8 more.

workspaces_mailboxes_destroyAInspect

Only an archived mailbox can be deleted — archive it first (workspaces_mailboxes_archive_create); otherwise 409 with code: not_archived. Archived mailboxes are deleted automatically 30 days after archiving; this deletes one sooner. Irreversible: replies, bounces and opt-outs sent to this address are no longer read. Messages already sent keep their sender address. A Sellvance-hosted mailbox is removed from the mail provider (no refund).

Method: DELETE /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/

Inputs: sqid (required).

workspaces_mailboxes_health_check_createAInspect

Sends a test email from this mailbox to a Sellvance check inbox and scores how spam filters see it. Runs in the background: returns task_sqid (poll jobs_get), then read the result with workspaces_mailboxes_health_retrieve. Once every 4 hours per mailbox (429 with next_allowed_at); not for archived mailboxes or ones without SMTP.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/health-check/

Inputs: name (required), sqid (required), email (required), provider, +22 more.

workspaces_mailboxes_health_retrieveBInspect

health_status, health_details and last_health_check_at from the most recent workspaces_mailboxes_health_check_create run.

Method: GET /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/health/

Inputs: sqid (required).

workspaces_mailboxes_listCInspect

Rich list with paginator + filter + meta.

Method: GET /api/v1/workspaces/{workspace_sqid}/mailboxes/

Inputs: q, page, limit, offset, +6 more.

workspaces_mailboxes_partial_updateBInspect

Change the sender name, signature, daily limit, connection settings, or turn sending on and off with is_enabled. An archived mailbox has to be restored before it can be enabled.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/

Inputs: sqid (required), name, email, signature, +9 more.

workspaces_mailboxes_provision_createAInspect

Create a mailbox hosted by Sellvance on a managed domain. Only possible while a mail provider that permits cold B2B email is enabled — check available in provision-info first. When none is, returns 400 with code: provisioning_unavailable; connect your own mailbox (SMTP or Google) instead.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/provision/

Inputs: local_part (required), domain_sqid (required), display_name.

workspaces_mailboxes_provision_info_retrieveAInspect

Info for the create-managed-mailbox UI: cost + managed domains + paid balance.

Method: GET /api/v1/workspaces/{workspace_sqid}/mailboxes/provision-info/

Inputs: no named parameters.

workspaces_mailboxes_resume_createAInspect

Clears auto_paused_at so the mailbox sends again. The monitor pauses a mailbox when its hard bounces pass 3% of the last 7 days' sends (at least 50), when receiving servers keep refusing it for reputation or authentication (5 blocks in 24 h or 3 in a row), or when its domain is on Spamhaus DBL / SURBL.

Resuming does not reset those numbers. The monitor leaves the mailbox alone for 24 hours, then pauses it again if the rate is still over the line — fix the cause first (clean the list, fix SPF/DKIM/DMARC, get delisted). Idempotent: 200 with resumed: false when the mailbox was not paused. Written to the compliance audit log.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/resume/

Inputs: sqid (required).

workspaces_mailboxes_retrieveAInspect

One mailbox by its sqid, with its SMTP and IMAP settings (passwords are not returned), daily limit and status.

Method: GET /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/

Inputs: sqid (required).

workspaces_mailboxes_send_limits_retrieveAInspect

One row per day and receiving mail server: how many emails this mailbox sent there (num_sent) against the cap (limit). Shows why sending paused for the day. Newest first, up to 500 rows.

Method: GET /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/send-limits/

Inputs: sqid (required).

workspaces_mailboxes_signals_retrieveAInspect

Inbox-placement signal from recipients' auto-replies. Gmail and Outlook suppress out-of-office replies (and read receipts) for mail they filed as spam, so their rate per send measures delivery; genuine replies and unsubscribes can confirm it. The pooled test reads sends to business recipients only (counts.business_sends / counts.business_auto_replies): personal mailboxes rarely set an out-of-office. Reads every campaign that sent through this mailbox in the window, whatever the campaign's state.

delivery is the pooled verdict (pass / fail / inconclusive, with a Clopper-Pearson interval and sends_to_conclude). segments splits it by recipient segment (gmail, google_workspace, outlook_consumer, microsoft365, other_consumer, other), each against its own baseline (baseline.source measured across all workspaces, or configured = borrowed from the workspace; a consumer segment cannot fail on a borrowed baseline).

compliance_monitor is the auto-pause monitor's view of the same sender over its own rolling 7 days (not days): status (ok / warn / over_threshold / paused / insufficient_data), hard_bounce (rate, count, sent, warn_at 2%, pause_at 3%, min_sends 50), reputation (SMTP blocks such as 421 4.7.28 or S3150), blocklists (Spamhaus DBL / SURBL listings — these pause at once) and, when paused, auto_pause_reason. Warnings never stop sending; crossing a pause threshold does (see codedoc/compliance.md).

Method: GET /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/signals/

Inputs: sqid (required), days.

workspaces_mailboxes_test_connection_createAInspect

Opens a real connection and authenticates. With the default protocol: "all", every protocol the mailbox has enabled is tested — both for a dual-protocol mailbox, just the one that applies otherwise. Returns results with a per-protocol {protocol, success, message}; if any protocol fails the call is a 400 whose error summarises the failures.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/test-connection/

Inputs: sqid (required), protocol.

workspaces_mailboxes_unarchive_createAInspect

Cancels the scheduled deletion. The mailbox comes back disabled: enable it to send again. Sellvance-hosted mailboxes cannot be restored (400 code: cannot_unarchive) because archiving removed them from the provider. Idempotent: unarchived: false when it was not archived.

Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/{sqid}/unarchive/

Inputs: sqid (required).

workspaces_person_access_listAInspect

Returns person GUIDs + names for people the workspace has imported from discovery. Supports ?q= search on person name. Used to populate the discovery person picker on the lead detail page.

Method: GET /api/v1/workspaces/{workspace_sqid}/person-access/

Inputs: no named parameters.

workspaces_segments_automations_createAInspect

Adds one automation (AI research, decision-maker finder, email finder, qualification, formula, API call...) to the segment. Get the config shape for the type from workspaces_enrichments_schema_retrieve. Context fields it writes are created if missing (as strings); declare them first with workspaces_context_fields_create to choose the type. Use run_filters to run it only on leads that pass given filters, which keeps paid steps cheap. It runs on new leads; for leads already in the segment, call segments_enrichments_run.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/

Inputs: segment_sqid (required), enrichment_type (required), order, config, +3 more.

workspaces_segments_automations_destroyCInspect

Values it already wrote to leads stay.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/{sqid}/

Inputs: sqid (required), segment_sqid (required).

workspaces_segments_automations_listAInspect

The enrichments attached to one segment, in run order: type, config, run_filters, the context fields each one writes (output_fields) and whether it is enabled. Enabled automations run on leads as they enter the segment.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/

Inputs: segment_sqid (required).

workspaces_segments_automations_partial_updateBInspect

Change the config, run_filters, allow_overwrite or turn it on and off with is_enabled. Order is changed with segments_automations_reorder.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/{sqid}/

Inputs: sqid (required), segment_sqid (required), order, config, +4 more.

workspaces_segments_automations_retrieveAInspect

One automation on a segment by its sqid, with its full config.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/{sqid}/

Inputs: sqid (required), segment_sqid (required).

workspaces_signalsAInspect

Delivery, interest, and harm across the workspace's active and paused campaigns — archived and cancelled campaigns, and manual non-campaign messages, are left out. (The measured auto-reply baseline in baseline still reads every campaign, since it tracks the seasonal out-of-office rate, not campaign health.) Same response shape as campaigns_signals, minus mailboxes and delivery_diagnosis, and the same reading order applies: check delivery first, and treat interest as uninterpretable while it is blocked.

The workspace view is usually the more informative cut when individual campaigns are small. A campaign might have 40 sends; the workspace has 400, and can reach a verdict when no single campaign can.

inconclusive means the sample is too small to decide, not that the result is bad. All rates are proportions: 0.02 means 2%.

Optional ?days=N restricts the window (default: all time).

compliance_monitor is the auto-pause monitor's rolling 7-day view of the workspace: hard_bounce, complaint (warn 0.05%, pause 0.1% with at least 500 sends and 2 complaints — a pause stops every active campaign) and unsubscribe rates; paused_mailboxes, paused_campaigns; pause_incidents in the last 30 days (at repeat_pause_limit the workspace's sending is suspended for review) and sending_suspended.

Method: GET /api/v1/workspaces/{workspace_sqid}/signals/

Inputs: days.

workspaces_statsAInspect

What the workspace dashboard shows for the selected range:

  • kpis.leads_added, kpis.messages_sent, kpis.connects_spent — {total, prev, delta_pct, spark}. Connects are account-wide.

  • kpis.reply — {contacted, replied, interested, reply_rate, interested_rate, prev_reply_rate, delta_pct, spark}. Rates are percentages per lead: distinct leads with a REPLIED campaign step in the window (by reply time) ÷ distinct leads sent a delivered campaign message in the window; interested counts those replied leads whose status is now INTERESTED. The same definition as campaigns_stats, over the workspace's active and paused campaigns (archived and cancelled ones are excluded).

  • top_campaigns — up to 5 active or paused campaigns with ≥20 sends in the window, best reply rate first.

?days= is one of 0 (all time), 7, 14 (default), 30. For all time there is no previous window: prev, prev_reply_rate and delta_pct are null and spark is empty.

Method: GET /api/v1/workspaces/{workspace_sqid}/stats/

Inputs: days.

workspaces_view_configs_columns_retrieveAInspect

Returns every column available to this workspace's views, in picker order, each tagged with the group it belongs to (Lead Fields, Custom Fields, Discovery: Company, Discovery: Person), its type, and whether it can be sorted on.

Use the field values here for columns, sort_by_1 and sort_by_2. Note these are column keys (get_status_display), not the namespaced keys filter conditions use (lead.status) — a column key names a rendering path, a filter key names a storage path. filter-configs/metadata/ returns column_key to map between them.

Discovery columns have sortable: false: they resolve out of another database, so a view cannot order by them.

Method: GET /api/v1/workspaces/{workspace_sqid}/view-configs/columns/

Inputs: no named parameters.

workspaces_view_configs_listBInspect

The column layouts and sort orders people saved for the lead table in the app. Read-only for agents; they rarely need it.

Method: GET /api/v1/workspaces/{workspace_sqid}/view-configs/

Inputs: limit, offset.

workspaces_view_configs_retrieveBInspect

One view by its sqid: its columns and sort order.

Method: GET /api/v1/workspaces/{workspace_sqid}/view-configs/{sqid}/

Inputs: sqid (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to research companies and find contacts with structured data from multiple free sources, including company info, tech stack, and email addresses.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to run an entire B2B prospecting workflow from one request: searching people and companies, enriching verified emails and phone numbers, monitoring buying signals, researching accounts, and building lists. It also generates and runs multi-step email, LinkedIn and calling campaigns, with everything created as drafts until explicitly launched.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to discover companies showing buying signals, enrich them with public homepage data, score them against custom rules, and draft review-ready briefs.
      1
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.