Inbound calls
Set the answering agent
The simplest inbound setup: one number, one agent. Every call to that number is answered by its default agent.
This applies to numbers on Platform routing. A number on Webhook routing ignores the default agent — your server picks the agent per call via the call answer webhook.
Set the default agent
PATCH /v1/numbers/{id} · scope numbers:write
curl -X PATCH https://platform.eurekatechlabs.com/v1/numbers/num_xxxxxxxxxxxx \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{ "defaultAgentId": "agt_xxxxxxxxxxxx" }'That's it. Any call to that number is now answered by agt_xxxxxxxxxxxx.
The agent must belong to the same product as the number.
Clear it
Pass null to stop the number answering with a default agent:
curl -X PATCH https://platform.eurekatechlabs.com/v1/numbers/num_xxxxxxxxxxxx \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{ "defaultAgentId": null }'With no default agent and no matching rule, the call is rejected.
When you need more
- Different agents on the same number → Routing rules.
- Your server decides the agent live, per call (or rejects it) → Decide per call.
The default agent is always the fallback when neither of those picks one.
