List offerable number countries
The phone number countries available to purchase, each with its flat monthly price (cents), regulatory tier, whether it needs end-user KYC (Tier 3/4), and per-feature availability (PSTN calls, WhatsApp, SMS, and WhatsApp Business Calling outbound). Drives the country picker. Tier-4 countries appear only when enabled. No API key needed: the catalog is public so you can browse it before you have an account.
Response Body
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.phonenumbers.listPhoneNumberCountries();console.log(data);{ "countries": [ { "code": "string", "tier": 1, "monthlyCents": 0, "needsKyc": true, "callsAvailable": true, "whatsappAvailable": true, "smsAvailable": true, "outboundCallingAvailable": true, "inStock": true, "preOrderable": true, "types": [ { "numberType": "local", "tier": 1, "needsKyc": true, "monthlyCents": 0, "whatsappAvailable": true, "smsAvailable": true, "callsAvailable": true, "inStock": true, "fulfilment": "instant", "preOrderable": true } ] } ]}Release phone number
Release a purchased phone number. This will: 1. Disconnect any linked WhatsApp account 2. Decrement the Stripe subscription quantity (or cancel if last number) 3. Release the number from Telnyx 4. Mark the number as released
Check country availability
Pre-purchase check, so you can warn BEFORE a customer invests in KYC (regulated review is async, 1-3 days). Tells you whether we have deliverable inventory, and what address the customer needs: - `addressConstraint: geo` → the registered address MUST be in one of the returned `areas` (the only place we have stock). A different-area address passes pre-approval but the number can never be assigned. - `addressConstraint: country` → any in-country address works. - `addressConstraint: none` → field-only / instant country, no address. Call this before starting the KYC form for regulated countries. Without an API key it answers from cache only and returns just `country`, `numberType` and `areaOptions`, for building an area picker before signup.