Call without buying a number (verified caller IDs)
Goal: place outbound calls (including AI agent calls) showing a phone you already own — your mobile or an office line at another carrier — without renting a number from us.
ts
// 1. We call the number and read a 6-digit code
const cid = await vi.callerIds.create({ phone_number: "+972501234567", label: "Owner's mobile" });
// 2. Submit the code you heard
await vi.callerIds.verify(cid.id, { code: "123456" });
// 3. Use it as `from`
await vi.calls.create({ from: "+972501234567", to: "+972521112233", agent_id: "agt_…" });- Codes expire after 10 minutes and lock after 5 wrong tries;
POST /v1/caller-ids/{id}/resendcalls again (max 3 calls per hour per number). - Verified numbers also work as a SIP trunk's
default_caller_id. - Inbound calls still need a number from us: a verified caller ID is for outbound only.
- Other ways to work without a number: browser/app calling with the WebRTC softphone (
client:targets), and calls that stay inside your PBX over SIP trunking. - Test-mode workspaces return the code as
test_codeand place no call. - Operators: set
PLATFORM_CALLER_ID(a number the platform owns) on the API and call-control; it is used only for these verification calls.