REST API
https://api.leadvouch.com/api/v1/agent
Best for application backends, scripts, Zapier-style integrations and deterministic workflows. Large CSV exports and recording streams stay here.
Connect software, automations or AI agents to the same clients, numbers, call flows, leads, recordings and reports used by LeadVouch operators. Every machine action uses scoped access, audit logging and explicit safety gates.
REST base
https://api.leadvouch.com/api/v1/agent
MCP server
https://api.leadvouch.com/mcp
Authentication
Bearer agent token
Quick start
An agency owner creates the token once. Your application stores it as a secret and sends it with every REST request or MCP connection.
Sign in, open Settings → API tokens, select a profile and copy the token when it is shown.
Use LEADVOUCH_AGENT_TOKEN in a secret manager or private environment file. Never put it in model instructions.
Call /capabilities first. Its response lists the exact operations, client scope and safety permissions available.
curl https://api.leadvouch.com/api/v1/agent/clients \
-H "Authorization: Bearer $LEADVOUCH_AGENT_TOKEN"Read only
Reporting and analysis agents
Calls, leads, recordings, reports, audit and exports
Operator
Rank-and-rent and operations agents
Read access plus clients, numbers, campaigns, call flows, DNI and lead triage
Administrator
Trusted agency administration
Operator access plus agency settings, users and billing inputs
Architecture
REST and MCP both execute the same validation, tenant scoping and business rules as the human dashboard. Choose the interface that fits your client; the underlying behavior does not change.
https://api.leadvouch.com/api/v1/agent
Best for application backends, scripts, Zapier-style integrations and deterministic workflows. Large CSV exports and recording streams stay here.
https://api.leadvouch.com/mcp
Best for Claude, Claude Code, Hermes, OpenAI and other MCP-capable agents. The agent discovers tools and acts through a standard Streamable HTTP connection.
1. Bearer token
2. Tenant scope
3. Policy gate
4. Dashboard logic
5. Audit event
Agent connection
Add the LeadVouch server URL and bearer header to your agent. The exact configuration file varies by product, but the connection values remain the same.
{
"mcpServers": {
"leadvouch": {
"type": "http",
"url": "https://api.leadvouch.com/mcp",
"headers": {
"Authorization": "Bearer ${LEADVOUCH_AGENT_TOKEN}"
}
}
}
}describe_leadvouchReturns the token policy, endpoint catalog and complete rank-and-rent setup recipe.
leadvouch_readRuns documented GET operations for calls, leads, reports, clients and configuration.
leadvouch_writeRuns POST, PATCH, PUT and DELETE operations with a required idempotency key.
Safety model
A broad profile does not automatically authorize spending, data deletion or provider calls. Those action classes have independent token switches and are enforced on every request.
Pin a token to one client or permit agency-wide access.
Read only, operator and administrator profiles control feature access.
External calls, purchases and destructive actions are off by default.
Every mutation needs a stable Idempotency-Key so retries do not repeat work.
Client creation and number provisioning follow the same approved plan limits as the dashboard.
curl https://api.leadvouch.com/api/v1/agent/clients \
-X POST \
-H "Authorization: Bearer $LEADVOUCH_AGENT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: fairfield-site-v1" \
-d '{
"name": "Fairfield Trenchless",
"industry": "plumbing",
"timezone": "America/New_York"
}'{
"error": {
"code": "forbidden",
"message": "This token is not allowed to make purchases."
}
}Reusing the same idempotency key with identical data returns the saved response. Reusing it with different data returns a conflict instead of guessing which action you intended.
Core workflow
The capability response includes this sequence as structured data, so an agent can discover and execute it without reading the React dashboard.
Creates the website/business container and returns its public DNI siteKey.
Stores the real phone number that should receive forwarded leads.
Labels the channel and source used for attribution and reporting.
Defines business hours, whisper behavior, routing targets and fallbacks.
Adopts an existing Twilio/Telnyx number or buys an approved candidate.
Links the number, campaign and call flow; optionally adds a DNI pool and snippet.
Final acceptance remains human.
API success proves configuration. Before publishing a new tracking number, place one controlled call to confirm ringing, whisper, consent disclosure, voicemail and recording audio.
REST reference
Paths below are relative to the REST base URL. The public OpenAPI contract is the machine-readable source of truth.
Check a token and discover its exact permissions and tools.
/health/capabilities/openapi.jsonSet up the business or website that owns calls, leads and routing.
/clients/clients/clients/{clientId}/clients/{clientId}/clients/{clientId}/destination-numbers/clients/{clientId}/destination-numbers/clients/{clientId}/destination-numbers/{destinationId}/clients/{clientId}/locations/clients/{clientId}/locations/agency/agency/users/users/invite/users/{userId}Connect Twilio or Telnyx, adopt numbers, buy numbers and control routing state.
/provider-accounts/provider-accounts/provider-accounts/{id}/health/provider-accounts/{id}/phone-numbers/phone-numbers/{id}/phone-numbers/importable/phone-numbers/search/phone-numbers/purchase/phone-numbers/import/phone-numbers/{id}/assign/phone-numbers/{id}/pause/phone-numbers/{id}/resume/phone-numbers/{id}/release/phone-numbers/{id}/reconfigureDescribe the source of each lead and decide where every call goes.
/campaigns/campaigns/campaigns/{id}/campaigns/{id}/campaigns/{id}/spend/campaigns/{id}/spend/call-flows/call-flows/call-flows/{id}/call-flows/{id}/call-flows/{id}/call-flows/{id}/duplicateSwap website phone numbers per visitor session for source-level attribution.
/dni/verify/dni/snippet.js/dni/pools/dni/pools/dni/pools/{id}/dni/pools/{id}/dni/pools/estimateRead call activity, inspect outcomes and retrieve authorized recordings.
/calls/calls/{id}/calls/{id}/recording/calls/{id}/recording/stream/calls/export.csvCreate, import, qualify, assign and annotate lead records.
/leads/leads/stats/leads/{id}/leads/leads/import/leads/bulk/leads/{id}/leads/{id}/notes/leads/export.csvMeasure source performance, lead quality, activity, cost and margin.
/reports/dashboard/reports/timeseries/reports/sources/reports/lead-quality/reports/call-times/reports/agency-overview/usage/usage/by-client/usage/margin/usage/margin/{clientId}Control consent, playback, retention, export and recording deletion.
/compliance/recording-policies/compliance/recording-policies/{clientId}/compliance/recording-policies/{clientId}/compliance/clients/{clientId}/data-export/compliance/clients/{clientId}/purgeInspect operational history and deliver LeadVouch events to other systems.
/audit/audit/errors/audit/errors/{id}/resolve/webhooks/subscriptions/webhooks/subscriptions/webhooks/subscriptions/{id}/webhooks/subscriptions/{id}/webhooks/deliveries/webhooks/deliveries/{id}/replay/webhooks/subscriptions/{id}/testCreate a scoped token in LeadVouch Settings, start with purchases and destructive actions disabled, then connect through REST or MCP.