Agents, numbers, calls and keys API
Endpoints, parameters and writable fields.
Updated
On this page
The routes for agents, their nested collections, lines, calls and keys. What any of it means is on the pages under Agents and Phone numbers and calls.
Agents
GET /api/v1/orgs/<org_id>/agents/
POST /api/v1/orgs/<org_id>/agents/
GET /api/v1/orgs/<org_id>/agents/<agent_id>/
PATCH /api/v1/orgs/<org_id>/agents/<agent_id>/
DELETE /api/v1/orgs/<org_id>/agents/<agent_id>/cURL
curl https://api.voxcore.net/api/v1/orgs/<org_id>/agents/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
agents = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/agents/", headers=AUTH
).json()["data"]Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
for agent in vox.agents.iterate():
print(agent["name"], agent["status"], agent["live_version_number"])No query parameters. The list uses a lighter serializer than the detail view:
id, slug, name,
description, status, voice_provider,
model_provider, model_name, language,
tone, use_cases, live_version_number and
tool_count.
status is read-only everywhere. Every other configuration field
is writable, and they're all listed in
How an agent is
configured.
Publishing
POST /api/v1/orgs/<org_id>/agents/<agent_id>/publish/
GET /api/v1/orgs/<org_id>/agents/<agent_id>/versions/
POST /api/v1/orgs/<org_id>/agents/<agent_id>/versions/<version_id>/rollback/
POST /api/v1/orgs/<org_id>/agents/<agent_id>/pause/cURL
curl -X POST https://api.voxcore.net/api/v1/orgs/<org_id>/agents/<agent_id>/publish/ \
-H "Authorization: Bearer vox_sk_live_..." \
-H "Content-Type: application/json" \
-d '{"notes": "new opening line"}'Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
version = httpx.post(
f"{BASE}/api/v1/orgs/{ORG}/agents/{agent_id}/publish/",
headers=AUTH,
json={"notes": "new opening line"},
).json()Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
# Updating is not publishing. Callers hear the published version.
vox.agents.update(agent_id, first_message="Bike shop, this is Ada.")
version = vox.agents.publish(agent_id, notes="new opening line")publish takes an optional notes string of up to 500
characters and returns 201. Both publish and
rollback need agent:publish.
Previewing a voice
POST /api/v1/orgs/<org_id>/agents/<agent_id>/preview-voice/
{ "voice_id": "Kore", "text": "optional sample line" }Returns {"audio", "voice", "latency_ms"}, where
audio is a base64 data URL. 400 if no voice is given,
502 with code tts_failed if generation fails. Nothing
is saved on the agent.
Tools and knowledge
GET /api/v1/orgs/<org_id>/agents/<agent_id>/tools/
POST /api/v1/orgs/<org_id>/agents/<agent_id>/tools/
GET /api/v1/orgs/<org_id>/agents/<agent_id>/tools/<tool_id>/
PATCH /api/v1/orgs/<org_id>/agents/<agent_id>/tools/<tool_id>/
DELETE /api/v1/orgs/<org_id>/agents/<agent_id>/tools/<tool_id>/
GET /api/v1/orgs/<org_id>/agents/<agent_id>/knowledge/
POST /api/v1/orgs/<org_id>/agents/<agent_id>/knowledge/
GET /api/v1/orgs/<org_id>/agents/<agent_id>/knowledge/<knowledge_id>/
PATCH /api/v1/orgs/<org_id>/agents/<agent_id>/knowledge/<knowledge_id>/
DELETE /api/v1/orgs/<org_id>/agents/<agent_id>/knowledge/<knowledge_id>/cURL
curl https://api.voxcore.net/api/v1/orgs/<org_id>/agents/<agent_id>/tools/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
tools = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/agents/{agent_id}/tools/", headers=AUTH
).json()["data"]Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
# Nested under an agent, so not a top-level collection on the client.
tools = vox.request(
"GET", f"/api/v1/orgs/{vox.org}/agents/{agent_id}/tools/"
)["data"]Both are covered in Tools and knowledge.
Options
GET /api/v1/agent-optionsAuthenticated but not org-scoped, because this is platform vocabulary and it
is identical for every tenant. Returns tones,
use_cases, and a catalog of providers,
chat_models, voices and
transcription_engines.
Phone numbers
GET /api/v1/orgs/<org_id>/phone-numbers/
POST /api/v1/orgs/<org_id>/phone-numbers/
GET /api/v1/orgs/<org_id>/phone-numbers/available/
POST /api/v1/orgs/<org_id>/phone-numbers/buy/
POST /api/v1/orgs/<org_id>/phone-numbers/buy-line/
GET /api/v1/orgs/<org_id>/phone-numbers/<id>/
PATCH /api/v1/orgs/<org_id>/phone-numbers/<id>/
POST /api/v1/orgs/<org_id>/phone-numbers/<id>/recheck/
DELETE /api/v1/orgs/<org_id>/phone-numbers/<id>/cURL
curl https://api.voxcore.net/api/v1/orgs/<org_id>/phone-numbers/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
lines = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/phone-numbers/", headers=AUTH
).json()["data"]Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
for line in vox.phone_numbers.iterate():
print(line["number"], line["provider"], line["compliance"]["can_send"])See Phone numbers.
Calls, analytics and keys
GET /api/v1/orgs/<org_id>/calls/ ?agent=&status=&outcome=&has_recording=true
GET /api/v1/orgs/<org_id>/calls/<call_id>/
GET /api/v1/orgs/<org_id>/analytics ?days=30
GET /api/v1/orgs/<org_id>/keys/
POST /api/v1/orgs/<org_id>/keys/
GET /api/v1/orgs/<org_id>/keys/<key_id>/
POST /api/v1/orgs/<org_id>/keys/<key_id>/revoke/cURL
curl "https://api.voxcore.net/api/v1/orgs/<org_id>/calls/?status=completed" \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
calls = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/calls/",
headers=AUTH,
params={"status": "completed"},
).json()["data"]Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
for call in vox.calls.iterate(status="completed"):
print(call["id"], call["outcome"], call["latency_p50_ms"])Calls and analytics are read-only. Keys have no update and no delete, only
revoke.