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

FieldDescription
phonerequiredAny 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

FieldDescription
phoneYour number, normalized to E.164.
validtrue if it's a real phone number.
typeRaw carrier line type (e.g. Mobile, FixedLine, VoIP).
textableBoolean. true if SMS will deliver.
verdictOne of textable, landline, invalid, unknown.
cost_centsWhat this call debited from your wallet. 0 for unknowns and free credits.
cachedtrue 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.

VerdictMeaning
textableMobile or VOIP — safe to send an SMS.
landlineA fixed line — SMS will not deliver.
invalidNot a real US number.
unknownNo definitive answer from the carrier. Not charged.

Errors

All errors return JSON with an error field. HTTP status codes are meaningful.

StatusCodeWhat happened
401unauthenticatedMissing, invalid or revoked API key.
400missing_phoneNo phone field in the body.
400invalid_phoneNot a parseable phone number.
402insufficient_balanceWallet too low. Response includes current balance_cents.
429rate_limitedOver the 10 rps limit. Back off and retry.
413file_too_largeBulk upload over 25 MB.
503service_unavailableCarrier 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