# TelexicoSMS API — setup pack Everything needed to send SMS through TelexicoSMS (UK). Plain JSON over HTTPS. No SDK needed. ## The three things to enter - API base URL: https://telexicosms.com/api/v1/ - API key: tsk_live_YOUR_KEY - Sender ID (from): YOURSENDER (max 11 letters/numbers; each key is locked to this sender — send it exactly or leave it out) ## Authentication Send the key on every request as a header: Authorization: Bearer tsk_live_YOUR_KEY (or, if your system only has an "API key header" box: X-API-Key: tsk_live_YOUR_KEY ) No username, password or account ID is needed. Every URL ends with a slash. ## 1. Test the connection (sends nothing, costs nothing) GET https://telexicosms.com/api/v1/ping/ → 200 {"ok":true,"message":"Connected to TelexicoSMS — this key is working.","account":"…","sender":"YOURSENDER"} ## 2. Send a text POST https://telexicosms.com/api/v1/sms/ Content-Type: application/json {"to":"07700900123","text":"Your order #1042 is ready to collect. Thanks!"} Fields: - to (required): UK mobile, 07… or 447… — or an array of up to 100 numbers - text (required): up to 1,530 characters (160 per credit; emoji/special characters use 70 per credit) - from (optional): must equal YOURSENDER - reference (optional): your label for reports, e.g. a branch or till name - client_ref (optional): your own ID (e.g. order number) — returned in every status - send_at (optional): ISO 8601 date-time to schedule it, e.g. 2026-12-01T09:30:00+00:00 - optout_link (optional): true for marketing texts — adds an opt-out link Header Idempotency-Key (optional): any unique string — a retry with the same key never sends twice. Response 201 Created (202 if the account is paused — the text waits and sends automatically): {"batch_id":123,"status":"accepted","from":"YOURSENDER","parts_per_message":1,"credits_charged":1, "messages":[{"id":"T…","to":"447700900123","status":"queued","parts":1,"client_ref":null}]} curl example: curl -X POST https://telexicosms.com/api/v1/sms/ \ -H "Authorization: Bearer tsk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"to":"07700900123","text":"Hello from YOURSENDER"}' ## 3. Check a message GET https://telexicosms.com/api/v1/sms/?id=T… → status: queued | sending | sent | delivered | failed | not_sent (with error.code + error.description), parts, clicks ## 4. Message log GET https://telexicosms.com/api/v1/messages/?from=2026-11-01&to=2026-11-30&status=delivered&reference=Dudley&limit=100&page=1 ## 5. Balance GET https://telexicosms.com/api/v1/balance/ → {"credits":1234,"low":false} ## 6. Opt-outs (do-not-text list) GET https://telexicosms.com/api/v1/optouts/?to=07700900123 → is this number opted out? POST https://telexicosms.com/api/v1/optouts/ {"to":"07700900123"} → opt a number out Texts to opted-out numbers are skipped automatically and not charged. ## Errors (JSON: {"error":{"code":"…","message":"…"}}) - 401 missing_key / invalid_key / old_secret / key_revoked / key_expired — check the key - 403 key_disabled / ip_not_allowed / missing_scope / api_disabled — switched off or not allowed - 402 insufficient_credits / monthly_limit_reached — top up or raise the limit - 404 not_found — wrong URL (check the base URL and trailing slash) - 405 method_not_allowed — use POST to send - 422 invalid_number / missing_text / text_too_long / too_many_recipients / sender_locked / invalid_send_at - 429 rate_limited — too many requests a minute (see Retry-After) ## Good to know - UK numbers only. Texts go out within seconds; delivery reports arrive within minutes. - Every call shows as a live green light in the TelexicoSMS portal (API & integrations), with the reason if anything fails. - Rate limit per key is shown in the X-RateLimit-Limit / X-RateLimit-Remaining headers. Help: Telexico — 01902 427 427 · WhatsApp 07983 134 444 · hello@telexico.com