Your first agent
Create it, configure it, publish it, and point a phone number at it.
Updated
You create an agent empty, configure it, then publish it. Nothing an agent does on a live call comes from the row you're editing. It comes from the version you published, which is frozen. That split is the whole reason editing an agent is safe to do at three in the afternoon.
Create it
cURL
curl -X POST https://api.voxcore.net/api/v1/orgs/<org_id>/agents/ \
-H "Authorization: Bearer vox_sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Front desk",
"system_prompt": "You answer the phone for a bike shop in Austin. Be brief.",
"first_message": "Bike shop, this is Ada. What can I do for you?"
}'Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
agent = httpx.post(
f"{BASE}/api/v1/orgs/{ORG}/agents/",
headers=AUTH,
json={
"name": "Front desk",
"system_prompt": "You answer the phone for a bike shop in Austin. Be brief.",
"first_message": "Bike shop, this is Ada. What can I do for you?",
},
).json()Python (voxcore)
from voxcore import Voxcore
vox = Voxcore() # reads VOXCORE_API_KEY and VOXCORE_ORG
agent = vox.agents.create(
name="Front desk",
system_prompt="You answer the phone for a bike shop in Austin. Be brief.",
first_message="Bike shop, this is Ada. What can I do for you?",
)Only name is required. A slug gets derived from the
name if you don't send one, and the agent is created with
status: "draft". status is read-only; it changes when
you publish or pause, and at no other time.
One warning before you wire any of this into a script: an API key cannot do the write above. Key-authenticated writes against org-scoped resources are rejected today. See Authentication.
What to fill in first
In rough order of how much difference each one makes:
system_prompt. What the agent is for, who it works for, what it must not do. This is the whole of its judgement.first_message. The greeting, spoken before the caller says anything.returning_message. The greeting for a caller you already have as a contact.{name}in it is replaced with their first name. If either the message or the name is missing, the agent falls back tofirst_message.voice_providerandvoice_id, which default togoogleandKore.model_providerandmodel_name, which default togoogleandgemini-3.5-flash-lite.
You can hear a voice before committing to it:
cURL
curl -X POST https://api.voxcore.net/api/v1/orgs/<org_id>/agents/<agent_id>/preview-voice/ \
-H "Authorization: Bearer vox_sk_live_..." \
-H "Content-Type: application/json" \
-d '{"voice_id": "Kore", "text": "Thanks for calling. How can I help?"}'Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
sample = httpx.post(
f"{BASE}/api/v1/orgs/{ORG}/agents/{agent_id}/preview-voice/",
headers=AUTH,
json={"voice_id": "Kore", "text": "Thanks for calling. How can I help?"},
).json()
print(sample["latency_ms"])Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
# No wrapper for this one yet, so go through the escape hatch.
sample = vox.request(
"POST",
f"/api/v1/orgs/{vox.org}/agents/{agent_id}/preview-voice/",
json={"voice_id": "Kore", "text": "Thanks for calling. How can I help?"},
)
print(sample["latency_ms"])The response carries audio as a
data:audio/wav;base64,... URL, the voice, and how long generating it
took. It doesn't save the voice on the agent.
Publish it
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": "First version. Greeting and hours."}'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": "First version. Greeting and hours."},
).json()Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
version = vox.agents.publish(agent_id, notes="First version. Greeting and hours.")Publishing snapshots the entire configuration into an immutable
AgentVersion, points the agent's live_version at it,
and sets status to live. You get 201 back
with the version.
It needs the agent:publish permission, which is deliberately
separate from agent:update. Editing an agent and putting an edit in
front of customers are different decisions.
Point a number at it
cURL
curl -X PATCH https://api.voxcore.net/api/v1/orgs/<org_id>/phone-numbers/<phone_number_id>/ \
-H "Authorization: Bearer vox_sk_live_..." \
-H "Content-Type: application/json" \
-d '{"agent": "agt__..."}'Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
line = httpx.patch(
f"{BASE}/api/v1/orgs/{ORG}/phone-numbers/{number_id}/",
headers=AUTH,
json={"agent": agent_id},
).json()Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
line = vox.phone_numbers.update(number_id, agent=agent_id)From the next call onwards, that number is answered by this agent's live version. How an inbound call is answered covers what happens between the phone ringing and the agent speaking.