phone-numbers
Search, purchase, and manage phone numbers with regulatory compliance and sender assignment.
What this skill does
# Phone Numbers
## When to Use
Use this skill when building code to search for, purchase, or manage phone numbers. Covers available number search, purchasing, regulatory requirements, and sender assignment.
## Search Available Numbers
```typescript
const result = await zavu.phoneNumbers.available.list({
countryCode: "US",
type: "local",
contains: "555",
limit: 10,
});
for (const number of result.items) {
console.log(number.phoneNumber); // +15551234567
console.log(number.friendlyName); // (555) 123-4567
console.log(number.locality); // San Francisco
console.log(number.capabilities); // { sms: true, voice: true, mms: true }
console.log(number.pricing.monthlyPrice); // 1.25
console.log(number.pricing.isFreeEligible); // true (first US number is free)
}
```
**Python:**
```python
result = zavu.phone_numbers.available.list(
country_code="US",
type="local",
contains="555",
limit=10,
)
for number in result.items:
print(number.phone_number, number.pricing.monthly_price)
```
**Go:**
```go
result, err := client.PhoneNumbers.SearchAvailable(context.TODO(), zavudev.PhoneNumberSearchParams{
CountryCode: zavudev.String("US"),
Type: zavudev.String("local"),
Contains: zavudev.String("555"),
Limit: zavudev.Int(10),
})
for _, number := range result.Items {
fmt.Println(number.PhoneNumber, number.Pricing.MonthlyPrice)
}
```
**Ruby:**
```ruby
result = client.phone_numbers.search_available(country_code: "US", type: "local", contains: "555", limit: 10)
result.items.each { |number| puts "#{number.phone_number} #{number.pricing.monthly_price}" }
```
**PHP:**
```php
$result = $client->phoneNumbers->searchAvailable([
'countryCode' => 'US', 'type' => 'local', 'contains' => '555', 'limit' => 10,
]);
foreach ($result->items as $number) {
echo $number->phoneNumber . ' ' . $number->pricing->monthlyPrice . "\n";
}
```
## Purchase Phone Number
```typescript
const result = await zavu.phoneNumbers.create({
phoneNumber: "+15551234567",
name: "Primary Line",
});
console.log(result.phoneNumber.id); // pn_abc123
console.log(result.phoneNumber.status); // "active"
```
**First US number is free** for each team.
## Phone Number Types
| Type | Description |
|------|-------------|
| `local` | Local phone number |
| `mobile` | Mobile number |
| `tollFree` | Toll-free number |
## Manage Phone Numbers
```typescript
// List owned numbers
const numbers = await zavu.phoneNumbers.list({ status: "active" });
for (const pn of numbers.items) {
console.log(pn.id, pn.phoneNumber, pn.status);
}
// Get details
const pn = await zavu.phoneNumbers.get({ phoneNumberId: "pn_abc123" });
// Rename
await zavu.phoneNumbers.update({
phoneNumberId: "pn_abc123",
name: "Support Line",
});
// Assign to sender
await zavu.phoneNumbers.update({
phoneNumberId: "pn_abc123",
senderId: "snd_abc123",
});
// Unassign from sender
await zavu.phoneNumbers.update({
phoneNumberId: "pn_abc123",
senderId: null,
});
// Release number (must not be assigned to a sender)
await zavu.phoneNumbers.delete({ phoneNumberId: "pn_abc123" });
```
## Regulatory Requirements
Some countries require additional documentation before phone numbers can be activated:
```typescript
// Check requirements for a country
const requirements = await zavu.phoneNumbers.requirements.list({
countryCode: "DE",
type: "local",
});
for (const req of requirements.items) {
console.log(req.countryCode, req.phoneNumberType, req.action);
for (const rt of req.requirementTypes) {
console.log(` ${rt.name}: ${rt.type} - ${rt.description}`);
}
}
```
### Requirement Types
| Type | Description |
|------|-------------|
| `textual` | Text field (name, business name) |
| `address` | Physical address |
| `document` | Identity document (passport, ID, etc.) |
| `action` | Action to perform |
### Create Regulatory Address
```typescript
const address = await zavu.addresses.create({
firstName: "John",
lastName: "Doe",
streetAddress: "123 Main St",
locality: "Berlin",
postalCode: "10115",
countryCode: "DE",
});
console.log(address.address.status); // "pending" -> "verified"
```
### Upload Regulatory Document
```typescript
// 1. Get upload URL
const upload = await zavu.documents.uploadUrl();
// 2. Upload file to the presigned URL (use fetch/axios)
await fetch(upload.uploadUrl, {
method: "PUT",
body: fileBuffer,
headers: { "Content-Type": "image/jpeg" },
});
// 3. Create document record
const doc = await zavu.documents.create({
name: "Passport Scan",
documentType: "passport",
storageId: "kg2abc123...",
mimeType: "image/jpeg",
fileSize: 102400,
});
console.log(doc.document.status); // "pending" -> "verified"
```
### Document Types
| Type | Description |
|------|-------------|
| `passport` | Passport |
| `national_id` | National ID card |
| `drivers_license` | Driver's license |
| `utility_bill` | Utility bill |
| `tax_id` | Tax ID document |
| `business_registration` | Business registration |
| `proof_of_address` | Proof of address |
| `other` | Other document |
## 10DLC (US A2P Messaging)
For US application-to-person messaging at scale, you may need 10DLC registration:
1. **Brand Registration** - Register your business identity
2. **Campaign Registration** - Register your messaging use case
3. **Number Assignment** - Assign registered numbers to campaigns
10DLC registration is managed through the Zavu dashboard. Contact support for high-volume US messaging requirements.
## Constraints
- First US phone number is free per team
- Phone number name: max 100 characters
- Phone numbers must be unassigned from senders before release
- Regulatory addresses and documents go through verification (pending -> verified/rejected)
- Country code: 2-letter ISO format (e.g., `US`, `DE`, `BR`)
- Search results: max 50 per request
- Some countries require verified address + document before number activation
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.