agentleFS
bolna-aibolna-ai/skills/manage-phone-numbers/SKILL.md

manage-phone-numbers

Skill4 starsChanged 37 days agoMITView on GitHub

Search, buy, list, and delete Bolna-hosted phone numbers (DIDs). Covers US (Twilio) and India (Plivo, Vobiz) regions; pattern / region filtering; `$5/month` flat pricing; the buy → inbound-setup wiring; and India regulated 140/160-series compliance prerequisites. Use when the user wants to purchase a dedicated outbound caller ID, set up an inbound line, inspect their DID inventory, or understand which Indian region/provider to pick. For SIP-trunk DIDs (BYOT), use `setup-sip-trunk` instead.

  • Reads credentials
  • Sends data out

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always confirm with the user before deleting, especially if the number is mapped to an active inbound agent (agent_id non-null in the list …

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bolna Phone Numbers

Buy, list, and manage dedicated DIDs through Bolna. US numbers come from Twilio; Indian numbers from Plivo (Karnataka, Maharashtra) or Vobiz (Karnataka, Gujarat, NCR). Flat $5/month rental per number, billed from the wallet.

For numbers you bring on your own SIP trunk (Twilio Elastic, Plivo Zentrunk, Telnyx, etc.), see setup-sip-trunk.

Endpoints

MethodPathPurpose
GET/phone-numbers/allList all numbers in your account
GET/phone-numbers/searchSearch available numbers to buy (filter by country, pattern, region)
POST/phone-numbers/buyPurchase a number
DELETE/phone-numbers/{phone_number_id}Delete (stops inbound routing + monthly rent)

Auth: Authorization: Bearer $BOLNA_API_KEY.

What you can do with a Bolna-hosted number

ActionHow
Outbound caller IDPass the number as from_phone_number to POST /call (see make-call).
Inbound agent routingMap to an agent via POST /inbound/setup (see setup-inbound).
Batch outboundPass as one of the from_phone_numbers to POST /batches (see create-batch).

List your numbers

curl https://api.bolna.ai/phone-numbers/all \
  -H "Authorization: Bearer $BOLNA_API_KEY"

Important fields on each response item:

FieldWhat it means
idPhone-number UUID. Use this for setup-inbound and DELETE.
phone_numberE.164 number.
agent_idUUID of the inbound agent if mapped, else null.
priceMonthly rental. $5.0 for Bolna-hosted.
telephony_providertwilio / plivo / vobiz.
rentedtrue if rented via Bolna; false for BYOT / connected provider.
created_at / renewal_atLifecycle dates.

Search before buying

# US numbers in the 718 area code
curl "https://api.bolna.ai/phone-numbers/search?country=US&pattern=718" \
  -H "Authorization: Bearer $BOLNA_API_KEY"

# India - Plivo - Karnataka (80)
curl "https://api.bolna.ai/phone-numbers/search?country=IN&provider=plivo&region=80" \
  -H "Authorization: Bearer $BOLNA_API_KEY"

# India - Vobiz - NCR (11)
curl "https://api.bolna.ai/phone-numbers/search?country=IN&provider=vobiz&region=11" \
  -H "Authorization: Bearer $BOLNA_API_KEY"

Region codes

CountryProviderRegionCode
IndiaPlivoKarnataka80
IndiaPlivoMaharashtra22
IndiaVobizKarnataka80
IndiaVobizGujarat79
IndiaVobizNCR (Delhi)11

US numbers don't have a region filter — use pattern (area code prefix) instead.

Buy

curl -X POST https://api.bolna.ai/phone-numbers/buy \
  -H "Authorization: Bearer $BOLNA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "US",
    "phone_number": "+17182718146",
    "provider": "twilio"
  }'

For India:

curl -X POST https://api.bolna.ai/phone-numbers/buy \
  -H "Authorization: Bearer $BOLNA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "IN",
    "phone_number": "+918012345678",
    "provider": "plivo"
  }'

Response includes the new id — save it for inbound mapping.

After purchase — wire to an inbound agent

curl -X POST https://api.bolna.ai/inbound/setup \
  -H "Authorization: Bearer $BOLNA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "'$AGENT_ID'",
    "phone_number_id": "'$PHONE_NUMBER_ID'"
  }'

(Full detail in setup-inbound/SKILL.md.)

Pricing

  • $5/month per number, charged to your wallet on renewal_at.
  • Call charges are separate — per-minute telephony costs (Twilio/Plivo/Vobiz) plus Bolna's platform fee.
  • The wallet runs the show — if it's low, POST /call will land in balance-low. Check with GET /user/me.

India: 140 / 160-series numbers

These are not ordinary numbers. Selling commercial calls in India requires:

SeriesUse caseCompliance
140-seriesPromotional / telemarketingDLT registration via TATA Teleservices portal, KYC, ₹5,900 payment, PE ID, TM ID
160-seriesTransactional / service (BFSI, alerts)DLT + Header registration (RBI/SEBI cert) + Template registration

Plan 2-4 weeks to go live. Full process in https://raw.githubusercontent.com/bolna-ai/skills/main/references/india-compliance.md.

You cannot buy 140/160 numbers through /phone-numbers/buy without completing compliance first — the carrier rejects the allocation. Surface this prerequisite up front when a user asks for Indian regulated numbers.

Delete

curl -X DELETE "https://api.bolna.ai/phone-numbers/$PHONE_NUMBER_ID" \
  -H "Authorization: Bearer $BOLNA_API_KEY"

Deletion:

  • Stops inbound routing immediately (if mapped).
  • Stops the $5/month rent at next renewal.
  • Cannot be undone — you'd need to buy a new number.

Always confirm with the user before deleting, especially if the number is mapped to an active inbound agent (agent_id non-null in the list response).

Bolna-hosted vs your own provider

ApproachProsCons
Bolna-hosted DIDInstant setup; one bill; supports inbound and outboundLimited country/region selection
Your own provider (Twilio / Plivo / Vobiz / Exotel)Use existing numbers, negotiated ratesNeed to connect provider, manage two billing surfaces
SIP Trunk (BYOT)Reuse trunks, regulated numbers from any carrierBeta; needs ops setup

For each, the setup-inbound flow is the same once a phone_number_id exists.

Going deeper

FileContents
scripts/search_numbers.pyWraps GET /phone-numbers/search with country/region/pattern flags.
scripts/buy_number.pyWraps POST /phone-numbers/buy.
scripts/list_numbers.pyWraps GET /phone-numbers/all.
https://raw.githubusercontent.com/bolna-ai/skills/main/references/india-compliance.mdFull DLT process for 140 / 160-series.

See also

  • setup-inbound — map a purchased number to an agent.
  • make-call — use a number as from_phone_number for outbound.
  • setup-sip-trunk — for BYOT trunks (different lifecycle, separate endpoints).
  • add-provider — to connect your own Twilio/Plivo/Vobiz/Exotel and use their numbers.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.