API reference

Base URL https://api.gapifi.com. Authenticate tenant routes with your account API key in the x-voice-api-key header (issued in the console). All bodies are JSON.

curl https://api.gapifi.com/voice/agents -H "x-voice-api-key: vk_…"

Agents

x-voice-api-key
GET/voice/agentsList agents
POST/voice/agentsCreate an agent (name, provider, systemPrompt, voiceId)
GET/voice/agents/:idGet an agent
PUT/voice/agents/:idUpdate + re-provision
DELETE/voice/agents/:idDelete
POST/voice/agents/:id/web-callStart a metered web call (returns session creds)
POST/voice/agents/:id/outbound-callPlace an outbound call { to, from }

Providers & tools

x-voice-api-key
GET/POST/voice/connectionsManaged or BYO provider connections
GET/POST/voice/toolsFunction-calling tools
GET/POST/voice/widgetsEmbeddable web widgets
GET/POST/voice/data-webhooksPush call events to your systems (HMAC-signed)

Calls, contacts & campaigns

x-voice-api-key
GET/voice/callsCall log (metered, with events)
GET/POST/voice/contactsContacts CRM (+ /import, /:id/do-not-call)
GET/POST/voice/campaignsOutbound campaigns (+ /:id/start|pause|dial)
GET/POST/voice/numbersOwned numbers + pools + attach
GET/voice/walletCredit balance

Agency (agency accounts)

x-voice-api-key
GET/POST/voice/agency/clientsManage client sub-accounts
POST/voice/agency/clients/:id/keysIssue a client key
POST/voice/agency/clients/:id/markupSet client markup
POST/voice/agency/clients/:id/fundFund client wallet

Public (no auth)

widget key / signature
GET/voice/public/widget.jsEmbeddable widget script
POST/voice/public/widget/:key/web-callStart a widget web call (origin-checked)
POST/voice/webhooks/:providerProvider webhook ingest (HMAC-verified)

Control-plane routes (/voice/admin/*) use the x-voice-admin-token header and are for the platform owner.