GoodVerify CLI
Verify emails, phone numbers, and mailing addresses via the goodverify.dev API.
Prerequisites
The goodverify CLI must be installed and configured. Check with:
goodverify --version
goodverify configure --show
If not installed:
curl -fsSL https://raw.githubusercontent.com/agoodway/goodverify_cli/main/install.sh | sh
If not configured, ask the user for their API key and base URL, then:
goodverify configure --env production --url https://goodverify.dev --key <api_key>
Commands
Verify Email
Check deliverability, domain MX records, disposable/catch-all/role flags.
goodverify verify email --email user@example.com
Key response fields:
deliverability.status—deliverable,undeliverable, orriskydeliverability.reason—accepted_email,rejected_email,unknown, etc.flags.is_disposable— temporary email serviceflags.is_catch_all— domain accepts all addressesflags.is_role_account— generic address like info@, support@domain.has_mx_records— domain can receive email
Verify Phone
Check carrier, phone type (mobile/landline/voip), compliance (DNC/TCPA), and formatting.
goodverify verify phone --phone "+15551234567"
goodverify verify phone --phone "5551234567" --country US
Key response fields:
valid— whether the number is validphone_type—mobile,landline,voip,toll_freecarrier.name— carrier namecompliance.dnc— on Do Not Call listcompliance.tcpa— TCPA consent requiredformatted.e164— standardized format
Verify Address
Standardize, geocode, check deliverability, and find property owners.
Single string:
goodverify verify address --address "123 Main St, Springfield, IL 62701"
Structured fields:
goodverify verify address --street "123 Main St" --city Springfield --state IL --zip 62701
Key response fields:
deliverability—deliverable,undeliverable,missing_unitstandardized_address— USPS-standardized componentsgeo_location— latitude, longitude, accuracyowners— property owner information (name, other addresses, phones, emails)property.type— residential, commercial, etc.
Batch Operations
goodverify batch list # List all batch jobs
goodverify batch get --id <batch_id> # Get batch job details
goodverify batch results --id <batch_id> # Download results
goodverify batch sample > template.csv # Get CSV template
Usage & Health
goodverify usage # Credit balance, plan, rate limits
goodverify health # API health check (no auth required)
Global Options
All commands accept:
--env <name>— use a specific configured environment--key <key>— override API key for this request--url <url>— override base URL for this request--json— output raw JSON (default is pretty-printed)
Guidelines
- Always use
--jsonwhen you need to parse the response programmatically - For bulk verification, prefer
batchcommands over loopingverifycalls - Phone numbers should include country code or use
--countryflag - Address verification works best with complete addresses (street, city, state, zip)
- Check
goodverify usagebefore large batch operations to confirm credit balance sk_*keys are read-write (required for batch).pk_*keys are read-only.
微信扫一扫