npx skills add ...
npx skills add vapiai/skills --skill create-phone-number
Plan, provision, import, route, update, and verify Vapi phone numbers through the public API. Use for Vapi-hosted US PSTN numbers, explicitly requested SIP addresses, Twilio/Vonage/Telnyx or BYO carrier numbers, secure credential handling, assistant or squad routing, area-code requests, outbound limitations, and phone-provider troubleshooting.
npx skills add vapiai/skills --skill create-phone-number
Default to a payload or implementation plan. Provision, import, route, or release a number only when the user explicitly requests the live mutation. Require a final explicit confirmation immediately before provisioning or another potentially chargeable action.
credentialId for provider imports when the current public schema supports it. If a required credential does not exist, stop and state that API prerequisite.Determine the execution mode.
VAPI_API_KEY is set without printing it.Choose the transport path.
Resolve routing before mutation.
assistantId or one squadId; clear conflicting destination fields when changing an existing route.Check inventory safely.
GET /phone-number to avoid duplicate provisioning.numberDesiredAreaCode but does not expose a public available-area-code inventory endpoint. Accept the user's desired three-digit US area code after explaining that fulfillment is not guaranteed.Confirm and execute.
POST /phone-number or another potentially chargeable mutation.id, provider, number or SIP URI, status when present, and resolved route.Update without destroying configuration.
GET /phone-number/{id} first.id, timestamps, or organization metadata.Handle failures precisely.
400: report the rejected field or unavailable request; correct a documented shape error before at most one retry.401/403: stop for Vapi authentication or permission issues.404: report the missing phone number, assistant, squad, or credential.5xx: report a Vapi service failure and do not claim success.Vapi-hosted free numbers are for US national use and have a limit of five per account. The first free number can be requested without a payment method. Additional free numbers require a payment method on file, but the numbers themselves remain free.
Free Vapi numbers support outbound calls only to US +1 destinations and do not support international calling. Use an imported provider number or supported SIP/carrier path for international use. Do not describe free numbers as unlimited production telephony.
This template does not provision anything:
Read Provider API Procedures for Vapi-hosted, Twilio, Vonage, Telnyx, BYO carrier, and routing examples. Read Phone Number API Examples when the user requests TypeScript, Python, or cURL implementation code. Keep placeholders out of live requests.