Eedesy
Book Demo
HomeProductsContact
Number Masking API
  • Introduction
  • Quick Start
  • Authentication
  • Call Lifecycle
  • Complete Example
  • Overview
  • Create a Session
  • Manage a Session
  • Dynamic Routing Webhook
  • Event Webhooks
  • Enroll Your Own Numbers
  • Overview
  • Initiate a Call
  • Get Call Status
  • Get Call Recording
  • List Call Logs
  • Get Usage Stats
  • Get Wallet Balance
  • Webhooks
  • Error Codes

Related Products

  • AI Voice Agent
  • AI Voice Assistant
  • Try Free
Number Masking API
  • Introduction
  • Quick Start
  • Authentication
  • Call Lifecycle
  • Complete Example
  • Overview
  • Create a Session
  • Manage a Session
  • Dynamic Routing Webhook
  • Event Webhooks
  • Enroll Your Own Numbers
  • Overview
  • Initiate a Call
  • Get Call Status
  • Get Call Recording
  • List Call Logs
  • Get Usage Stats
  • Get Wallet Balance
  • Webhooks
  • Error Codes
  1. Docs
  2. Number Masking API
  3. Two-Way Sessions
  4. Enroll Your Own Numbers

Enroll Your Own Numbers

Add numbers you own to the masking pool and choose how each one routes — internal mapping or a dynamic routing webhook. List, enroll, configure and release numbers via the API.

Enroll Your Own Numbers

Masking allocates virtual numbers from a pool you enroll. Because one number safely serves many concurrent sessions, you only need to add numbers as real concurrency grows — the Create a Session call returns 422 when every enrolled number is busy for the requested parties, which is your signal to enroll more.

List numbers

GET /masking/numbers

Returns the numbers available in your pool.

GET /masking/numbers/enrolled

Returns your enrolled numbers together with their routing configuration.

curl https://voice-api.edesy.in/v1/masking/numbers/enrolled \
  -H "Authorization: Bearer vp_YOUR_API_KEY"

Enroll a number

POST /masking/numbers/enroll

Binds a number you own into the masking pool so it can carry masked calls.

Parameter Type Required Description
phone_number_id string (UUID) Yes The id of a number on your account to enroll.
label string No A human-friendly label (max 120 characters).
curl -X POST https://voice-api.edesy.in/v1/masking/numbers/enroll \
  -H "Authorization: Bearer vp_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "phone_number_id": "a1b2c3d4-...", "label": "Marketplace pool #1" }'

Configure routing

PATCH /masking/numbers/:id/routing

Choose how a number resolves its target on each call.

Parameter Type Required Description
routing_mode string Yes internal (use session/mapping routing) or webhook (ask your endpoint per call).
webhook_url string No Your HTTPS endpoint, required when routing_mode is webhook.
webhook_method string No POST (default) or GET.
webhook_secret string No Signing secret for X-Edesy-Signature. Leave blank to keep the existing one.
fallback_internal boolean No On webhook failure, fall back to internal routing instead of rejecting.
answer_on_bridge boolean No When true, the caller hears real ringback and the call is not billed until the other party answers. Omit to keep the current setting.
label string No Update the number's label.
curl -X PATCH https://voice-api.edesy.in/v1/masking/numbers/NUMBER_ID/routing \
  -H "Authorization: Bearer vp_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "routing_mode": "webhook",
    "webhook_url": "https://api.yourapp.com/edesy/route",
    "webhook_secret": "whsec_supersecret",
    "fallback_internal": true
  }'

For the request and response shape of the routing webhook itself, see Dynamic Routing Webhook. To validate it, use POST /masking/numbers/:id/routing/test.

The webhook signing secret is never returned by the API — responses expose only a has_webhook_secret flag so you can tell whether one is set.

Release a number

DELETE /masking/numbers/:id

Removes a number from the masking pool. In-flight sessions on that number stop routing.

Related

  • Number Pooling & Concurrency
  • Dynamic Routing Webhook
  • Create a Session
Previous
Event Webhooks
Next
Overview

On this page

  • List numbers
  • Enroll a number
  • Configure routing
  • Release a number
  • Related

Stay Updated

Get the latest updates on AI voice technology, product releases, and exclusive resources.

Get Started

Try our products for free
AI Voice Agent
Build voice AI for calls
WhatsApp AI Bot
Automate WhatsApp chats
Website Chatbot
AI chat for websites
Edesy CRM
Manage leads & customers
Book a DemoCall UsEmail Us
Eedesy

Your all-in-one platform for digital innovation. We build AI-powered solutions that transform how businesses operate.

[email protected]+91 95475 31359

Products

  • AI Voice Assistant
  • Voice AI Suite
  • Telephony Suite
  • Messaging Suite
  • Business Apps Suite
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products

Solutions

  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases

Services

  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services

Resources

  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo

Company

  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service

Products

  • AI Voice Assistant
  • Voice AI Suite
  • Telephony Suite
  • Messaging Suite
  • Business Apps Suite
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products

Solutions

  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases

Services

  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services

Resources

  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo

Company

  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service
  • AI Voice Assistant
  • Voice AI Suite
  • Telephony Suite
  • Messaging Suite
  • Business Apps Suite
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products
  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases
  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services
  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo
  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service

Popular Free Tools

Compress PDFMerge PDFPDF to WordGST CalculatorEMI CalculatorSIP CalculatorJSON FormatterBase64 EncoderImage CompressorQR Code GeneratorVoice AI ROI CalculatorAmazon FBA CalculatorAI Email WriterVideo to GIFPrivacy Policy GeneratorCRM ROI CalculatorMeeting Cost Calculator
Categories:PDF ToolsDeveloper ToolsFinance CalculatorsImage ToolsVideo ToolsAI Writing ToolsAudio ToolsWhatsApp ToolsDocument GeneratorsVoice AI ToolsE-commerce ToolsView All Tools

© 2026 Edesy Technology Labs Pvt Ltd

SSL Secured
99.9% Uptime