API docs
One POST to api.smsarsenal.com/v1/check tells you whether a phone number can receive a text — before you waste the send.
Authentication
Every request takes a bearer API key. Create one in your dashboard — it's shown once, then only a prefix is kept on our side.
Authorization: Bearer sk_live_…Treat keys like passwords. Call the API from your server, never from a browser or mobile app where the key would be visible. Revoke a leaked key from the dashboard and it stops working instantly.
Base URL
All API endpoints are rooted at:
https://api.smsarsenal.com
POST /v1/check
Check a single number. One carrier line-type lookup per call, cached globally. Cache hits return in milliseconds; fresh lookups usually take about a second.
Request
$ curl https://api.smsarsenal.com/v1/check \ -H "Authorization: Bearer sk_live_…" \ -H "Content-Type: application/json" \ -d '{"phone": "+15555550123"}'
Body parameters
| Field | Description |
|---|---|
| phonerequired | Any format. We normalize to E.164 (defaulting to US +1 if no country code). |
Response
{ "phone": "+15555550123", "valid": true, "type": "Mobile", "textable": true, "verdict": "textable", "cost_cents": 2, "cached": false }
Response fields
| Field | Description |
|---|---|
| phone | Your number, normalized to E.164. |
| valid | true if it's a real phone number. |
| type | Raw carrier line type (e.g. Mobile, FixedLine, VoIP). |
| textable | Boolean. true if SMS will deliver. |
| verdict | One of textable, landline, invalid, unknown. |
| cost_cents | What this call debited from your wallet. 0 for unknowns and free credits. |
| cached | true if served from the global cache (1¢ instead of 2¢). |
POST /v1/bulk
Upload a CSV. We process it in the background at ~4 rows/second. First column is the phone number. Any other columns are ignored. Up to 100,000 rows and 25 MB per job.
Request
$ curl https://api.smsarsenal.com/v1/bulk \ -H "Authorization: Bearer sk_live_…" \ -F "file=@numbers.csv"
Response
{ "job_id": 17, "total": 1234 }
GET /v1/jobs/:id
Poll a bulk job's status every few seconds. GET /v1/jobs lists your 10 most recent jobs.
{ "id": 17, "status": "running", "total": 1234, "done": 812, "result_url": "/api/v1/jobs/17/result.csv" }
When status is done, download result_url (same bearer header) for a CSV with phone_raw,phone_e164,verdict,line_type columns. If your wallet runs dry mid-job, the job stops with status: "error" and error: "insufficient_balance"; rows already checked are in the CSV and the rest are marked unpaid.
GET /v1/lookups
Your recent lookup history. Pass ?limit=N up to 500. Sorted newest first.
Verdicts
Every lookup resolves to exactly one of four values. Branch on textable for the common case.
| Verdict | Meaning |
|---|---|
textable | Mobile or VOIP — safe to send an SMS. |
landline | A fixed line — SMS will not deliver. |
invalid | Not a real US number. |
unknown | No definitive answer from the carrier. Not charged. |
Errors
All errors return JSON with an error field. HTTP status codes are meaningful.
| Status | Code | What happened |
|---|---|---|
| 401 | unauthenticated | Missing, invalid or revoked API key. |
| 400 | missing_phone | No phone field in the body. |
| 400 | invalid_phone | Not a parseable phone number. |
| 402 | insufficient_balance | Wallet too low. Response includes current balance_cents. |
| 429 | rate_limited | Over the 10 rps limit. Back off and retry. |
| 413 | file_too_large | Bulk upload over 25 MB. |
| 503 | service_unavailable | Carrier data temporarily unavailable. Nothing was charged; retry with backoff. |
Pricing
New accounts get 50 free lookups. After that, fresh lookups are 2¢ each, cache hits are 1¢, and unknown verdicts are free. See the pricing page for top-up options.
Limits
- Rate limit: 10 requests/second per account (bursts up to 50). Over the limit you get
429with aRetry-Afterheader. - Bulk: 100,000 rows per job, up to 25 MB upload.
- Supported countries: US (+1) today. More on the roadmap.