Telebase API

Telebase provides phone-number intelligence: carrier, country, line type and an activity signal. It does not establish identity, ownership, fraud or current handset reachability. Sandbox keys return simulated results for three documented test numbers. Final live SIM-swap semantics and provider activation remain separately gated.

Account and credential

Use the user's saved secret in the Authorization header. It starts with tb_test_ or tb_live_; a public key identifier cannot authorize a request. Never invent a credential or reuse one from another user. Do not echo credentials or put them in URLs, logs or third-party messages. Use the secret only to authorize the user's requested Telebase operation.

Sign in at https://app.telebase.io/login. New users receive zero balance and start with no API keys or production approval. Production approval is required to create and use live keys. Contact [email protected] to request access. Funding does not grant production approval. Withdrawal preserves eligible login, key management and history; previously admitted work retains its original settlement terms. Approval does not clear other restrictions. At https://app.telebase.io/dashboard/api-keys, choose Create API key, enter a name, select Sandbox or Live, and save the secret shown only once. Up to five nonrevoked keys are allowed; Sandbox and Live keys share this five-key capacity, including approval-paused Live keys; disabled and blocked keys still count. If the secret is lost, permanently revoke that key, then explicitly create another. Replacement has a new public identity and default settings; the old identity and history remain retained. There is no separate rotation or secret-recovery operation. If creation has an uncertain outcome, refresh the API keys list before deciding what to do next. Do not repeat a mutation automatically after an uncertain response.

Key names may be duplicated; identify keys by their public ID when managing them. Renaming or disabling a key does not change its secret. Enabling a key does not remove an administrator block or account suspension. Revoked keys are hidden by default; choose Show revoked to inspect their retained metadata.

Request

The canonical public endpoint is GET https://app.telebase.io/v1/lookup. An explicitly configured preview/test origin uses the same /v1/lookup path. Public /lookup and /api/lookup are retired and return 404, without redirects.

Send exactly one phone query parameter and no body. Authentication and current access restrictions are checked before request-validation feedback. The Bearer scheme is case-insensitive.

Accepted international forms +44 7911 123456, 0044 7911 123456 and 447911123456 all normalize to +447911123456. Ordinary spaces, hyphens, periods and balanced digit-group parentheses are accepted. Use the full international calling code; never infer it from locale, IP or account settings. A national number such as 07911 123456 is rejected. Ask for an explicit international number when the input is ambiguous. Extensions, prose, multiple numbers, duplicate parameters and any query parameter other than phone are rejected. Phone input is limited to 256 characters after trimming surrounding whitespace. simSwap, sim_swap and fields are unsupported even when false or empty.

Encode a leading plus as %2B, or use curl's --data-urlencode:

curl
curl --get 'https://app.telebase.io/v1/lookup' \
  --data-urlencode 'phone=+447911123456' \
  -H 'Authorization: Bearer <saved tb_live_ secret>'

Local validation checks possible lengths and a recognized calling code, without requiring metadata to consider the number's range assigned.

Synthetic sandbox

Use a saved tb_test_ secret and the same endpoint with one of three test numbers from a UK drama range that is never allocated to subscribers. Send the international format (encode plus as %2B); accepted equivalent international formatting selects the same number, but national 07700 900001 is rejected. Each number selects one SIM answer:

phonesimSwapsimSwapAtsimSwapPeriod
+447700900001SWAPPED24 hours before admissionPT240H
+447700900002NO_SWAP30 days before admissionPT240H
+447700900003UNKNOWNnullnull

For a lookup admitted at 2026-10-21T12:00:00.000Z, +447700900001 returns:

JSON
{
  "phoneNumber": "+447700900001",
  "active": true,
  "carrier": "Telebase Test Carrier",
  "country": "GB",
  "numberType": "mobile",
  "simSwap": "SWAPPED",
  "simSwapAt": "2026-10-20T12:00:00.000Z",
  "simSwapPeriod": "PT240H",
  "_meta": {
    "environment": "test",
    "activeSource": "SYNTHETIC"
  },
  "chargedCents": 0,
  "currency": "EUR"
}

The other two numbers return the same fields with their row's SIM values. simSwapAt is ISO UTC relative to the lookup's admission time, so it changes between requests. All three answers are free: sandbox works without live provider credentials or funds and creates no monetary reservation, debit, refund or zero ledger entry. SYNTHETIC and the SIM answers describe fixed scenarios, never a real subscriber or observed SIM event; the PT240H period is fictional scenario data. Other possible international numbers receive 400 sandbox_phone_not_supported naming the three test numbers, with a bounded sanitized rejection record; no canonical admitted identity, operation or allowance is created. Missing/invalid phones keep their existing errors. Required rejection-write failure is 500. Failure fixtures (402, 422, 429, 502) are not available. Caller-supplied environment/scenario parameters are unsupported. Persisted authenticated key environment selects execution; a live key sending a test number gets an ordinary live lookup. Sandbox and live admissions share the same key/User caps. Sandbox access remains available after production approval or withdrawal, subject to ordinary restrictions. Recovery creates no extra admission, provider call or money. A fresh request consumes another slot.

This development v1 contract changes in place under ADR-0022, extended by ADR-0034 for EUR and ADR-0037 for the test numbers. Historical saved responses retain their original bytes and units. Final live/sandbox parity remains provider-owned; these synthetic results do not certify it.

Lookup-data removal

An administrator can remove all of a User's lookup data in one step. It deletes the User's test and live lookup history and saved results; counts and rolling allowance use of those lookups disappear with them. Posted charges and balances remain, and removal never refunds money. Keys, access and production approval are unchanged. Removal is refused while a lookup is pending. Responses already delivered are not recalled.

Current live response

JSON
{
  "phoneNumber": "+447911123456",
  "active": true,
  "carrier": "Example Mobile",
  "country": "GB",
  "numberType": "mobile",
  "simSwap": "NO_SWAP",
  "simSwapAt": null,
  "simSwapPeriod": "PT240H",
  "_meta": { "environment": "live", "activeSource": "VALID" },
  "chargedCents": 20,
  "currency": "EUR"
}

Live lookups use Vonage Identity Insights. Every current live 200 contains these fields. phoneNumber is the requested canonical E.164 identity. carrier is the current carrier name or null, never the original allocation's carrier. country is an uppercase ISO two-letter country code or null, never live handset location. numberType is mobile, landline, tollFree, premium or null; virtual and unrecognized types stay null. Missing or failed optional information stays null.

simSwap is SWAPPED or NO_SWAP for a definite answer within the fixed 240-hour window, reported as simSwapPeriod: "PT240H". That period is the covered window, not time since the last swap. simSwapAt is the provider's last-swap time in ISO UTC, or null unless a definite answer includes a usable one; it may predate the window and never changes the answer, and null never implies NO_SWAP. UNKNOWN means the provider gave no answer (for example no coverage or no operator approval), with null simSwapAt and simSwapPeriod; it does not mean no swap occurred. No request-side SIM or period selector is supported.

active is true with _meta.activeSource: "VALID" when the provider affirms the number's format validity; otherwise it is null with UNKNOWN. Validity is not subscriber activity or reachability, and it never establishes ownership. Older saved results may show LINE_STATUS. Explicit invalid-number evidence returns 422. Provider faults, unrecognized statuses and malformed or contradictory answers return 502, never a manufactured NO_SWAP.

chargedCents is the actual nonnegative integer debit in EUR cents, either the configured standard cost or zero. currency is always EUR, the only currency. _meta.environment is live here and test for sandbox results. No remaining balance or component prices are returned. Lookup responses are private and no-store. The sandbox, EUR and Vonage development changes amend v1 in place; they do not promise compatibility with earlier response shapes.

Charges and delivery limits

The configured current live cost is 20 EUR cents, charged only for a definite SWAPPED or NO_SWAP answer, including when companion fields are unavailable. UNKNOWN answers, errors, invalid numbers and sandbox keys are free. This is user charging policy, not verification of the provider invoice; no later invoice-based debit or automatic adjustment is performed.

Each accepted live lookup reserves its standard cost before provider work. Available balance equals posted balance minus active reservations, shared across all keys. With only one lookup's cost available, concurrent requests cannot both dispatch. Pending history has no final charge yet. The terminal response, history, released or consumed reservation and permitted debit commit together before a 200 is returned. Access/key changes after admission do not cancel accepted completion rights.

Provider wait defaults to 30 seconds, capped by the remaining operation lifetime. Timeout settles without a charge; a later response cannot revive paid success. The settlement deadline defaults to 2 minutes from admission. Interrupted work keeps its reservation until durable settlement or recovery, which checks expired work every minute when the operator-managed worker is running. Recovery never repeats provider work. Database downtime can delay release; the interval is not a recovery-time guarantee. Client disconnection does not cancel accepted work. Customer request replay remains separate work.

New lookups fail closed while the database is unavailable. Reserved funds stay unavailable, even after the deadline, until settlement is saved. A provider reply arriving after its timeout stays unchargeable even if database recovery happens before the operation deadline. A saved success keeps its original charge even if you received a 500 or no response. Recovery preserves that result; it does not refund it or perform another lookup.

Both independent rolling allowances must have room: defaults are 200 admitted lookups per API key and 1,000 across the user's keys in the preceding 24 elapsed hours. Pending, failed, zero-charge and interrupted-before-dispatch work count. Cap refusals consume no slot, reservation or history. Each admission expires exactly 24 hours later; midnight, daylight saving and suspension do not move it. Replacing a revoked key starts new key usage but does not reset user usage. Cap changes apply without restart or resetting events. Administrators have no exemption. A cap refusal precedes insufficient balance when both apply.

View current shared usage and its configured limit at https://app.telebase.io/dashboard, and per-key usage and limits at https://app.telebase.io/dashboard/api-keys. These are snapshots, not reserved capacity. Funding does not reset rolling usage. Contact [email protected] to request a limit change.

Missing, empty or invalid phone input under a currently eligible key is recorded before its normal 400 response, with bounded display evidence or null for missing input. It creates no canonical number, admission or charge. Required history failure returns a safe 500. Access/balance denials and other malformed request shapes do not create history. Revocation retains old history; replacement keys have a separate identity. The latest-100 display does not delete older evidence.

Inspecting previous lookups

Open https://app.telebase.io/dashboard/query-log to inspect the latest 100 reporting queries. Key and status filters apply only to those loaded rows, not all retained history. An empty filtered view does not prove that no earlier lookup occurred. Use Refresh or reload to obtain updated rows; history does not poll automatically. Open a row's stored result to inspect its outcome and final charge without another provider request or charge. A pending row has no final result or charge yet. After a lost response, inspect and refresh this history before deciding whether to make another lookup. Absence from the latest 100 does not prove a rollback.

Calendar query totals include rejected phone inputs as well as admitted lookups, and use the viewing browser's timezone. They are distinct from rolling admission limits and lookup spending; use the corresponding dashboard value for each.

Funding the account

Balances and charges are recorded as exact EUR cents. View balance at https://app.telebase.io/dashboard. There is no public balance or funding endpoint. Production approval is required to access Billing at https://app.telebase.io/dashboard/billing. Billing offers top-up requests. Request top-up opens an email draft; it does not send an email, place an order or fund the account. Invoice/payment arrangements happen outside the application; contact [email protected]. Withdrawal removes Billing access while preserving funds and retained history. Contact the team to arrange funding. Each balance adjustment records the administrator who made it, with an optional note and invoice reference.

Errors and deliberate retry decisions

Errors contain flat error and safe message fields. Branch on the code, not message prose. Every error except 402 and 500 includes "chargedCents":0 after message, for example {"error":"missing_phone","message":"Provide a phone number.","chargedCents":0}. A 402 and a 500 omit it; a 500 never proves the lookup was free. Errors have no currency except the 402. Decide success by HTTP status, never by the presence of chargedCents.

HTTPerrorMeaning and next step
401missing_api_keyProvide the saved secret.
401invalid_api_keyMalformed, unknown, replaced or revoked credential; inspect the ordinary key list.
401account_suspendedContact support; takes precedence over key restrictions.
401api_key_blockedContact support; takes precedence over owner disable.
401api_key_disabledEnable the key in the API keys page.
401production_access_requiredRequest production approval from [email protected]; funding cannot clear this restriction.
400invalid_requestUse only one phone parameter; remove unsupported selectors.
400missing_phoneSupply a nonblank phone value.
400invalid_phone_formatSupply one possible international number.
400sandbox_phone_not_supportedUse +447700900001, +447700900002 or +447700900003 with a sandbox key.
402insufficient_fundsFund the account before a new request.
429query_cap_exceededWait for the reported rolling allowance opportunity or contact support.
422phone_not_foundThe provider could not resolve the number; do not claim it proves nonexistence.
502upstream_failureProvider transport, timeout, HTTP failure or unusable SIM answer.
500internal_errorTelebase could not complete the operation; a missing response may leave the outcome uncertain.

Suspended/blocked/production-approval errors include "contactEmail":"[email protected]". A production denial creates no provider request, history, admission, reservation or charge. A 402 additionally includes requiredCents, the available balance in cents after holds as balanceCents, currency and the same contact address. Example: {"error":"insufficient_funds","message":"Your user account has insufficient funds. Contact support.","requiredCents":20,"balanceCents":0,"currency":"EUR","contactEmail":"[email protected]"}. A 429 includes one positive whole-second retryAfterSeconds, identical Retry-After header and the same contact address, with no limits array. If N admissions remain against limit L, wait for the (N - L + 1)th earliest expiry; lowering to 2 with 4 events needs three expiries. If both limits deny, the greater wait is rounded up. This predicts room without reserving capacity. Unavailable or corrupt quota state returns 500, never an invented wait. Credentials/access, local validation, cap and initial balance denials cause no provider work or debit. Provider failures/not-found do not post a debit.

Do not automatically retry 5xx, timeouts or lost responses. Another delivery is a fresh lookup and can execute and charge again. No idempotency/replay interface is available yet. Explain uncertain outcomes and let the user deliberately decide whether to issue another request. A 500 or disconnection does not prove a debit rolled back. Reuse an already received result for follow-up questions instead of calling again to reread it.

Present the activity source and unavailable fields honestly. Never fabricate carrier/location/ownership or treat an UNKNOWN SIM answer as a fraud verdict.