Skip to content

Developers

A texting API that respects your time and the rules

Predictable REST resources, JSON everywhere, idempotent writes and signed webhooks. Compliance checks run server-side on every request, so you can’t send to a suppressed contact by accident.

Base URL https://api.textabyte.com/v1

Overview

Resources

The API is pre-release; paths and fields may change before general availability. Full reference documentation ships with GA.

  • POST/v1/messagesSend a single SMS or MMS
  • POST/v1/messages/bulkSend a personalised batch through a number pool
  • GET/v1/messages/{id}Retrieve a message and its delivery status
  • GET/v1/batches/{id}Progress and counts for a bulk batch
  • POST/v1/contactsCreate or update a contact with consent details
  • GET/v1/numbersList numbers, pools and registration status
  • POST/v1/suppressionsAdd a number to your suppression list
  • DELETE/v1/suppressions/{phone}Remove a manual suppression
  • POST/v1/lookupsCarrier lookup and DNC scrub for one or many numbers
  • POST/v1/webhooksSubscribe a URL to events

Authentication

Scoped API keys

Authenticate every request with a bearer token. Keys are created in the dashboard, shown once and can be scoped and set to expire.

Authorization header
POST /v1/messages HTTP/1.1
Host: api.textabyte.com
Authorization: Bearer tb_live_••••••••••••••••
Content-Type: application/json
Idempotency-Key: 0b6f7c5e-2d1a-4b8e-9a3c-5f2e1d7c9b40
  • Live and test keys. Test keys (tb_test_) run the full validation pipeline without sending to handsets.
  • Idempotency. Send an Idempotency-Key on any POST; retries with the same key return the original result.
  • Rate limits. Current limits and remaining requests are returned in RateLimit-* response headers.
  • Errors. Standard HTTP status codes with a JSON body containing a stable code and a human-readable message.

Code examples

Send your first message

SDKs for Node.js and Python are on the roadmap. Until then, every example uses plain HTTP so it works with any client.

Single message

Transactional sends from a specific number.

curl https://api.textabyte.com/v1/messages \
  -H "Authorization: Bearer $TEXTABYTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "+15125550142",
    "to": "+17375550118",
    "body": "Your verification code is 482913. Reply STOP to opt out."
  }'

Bulk batch

Personalised messages paced across a pool.

curl https://api.textabyte.com/v1/messages/bulk \
  -H "Authorization: Bearer $TEXTABYTE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 4f9c1e2a-reminders-0612" \
  -d '{
    "pool_id": "pool_2Wd8kQ",
    "body": "Hi {{first_name}}, your order {{order_id}} ships today. Reply STOP to opt out.",
    "recipients": [
      { "to": "+15125550142", "vars": { "first_name": "Ana", "order_id": "A-1042" } },
      { "to": "+17375550118", "vars": { "first_name": "Luis", "order_id": "A-1043" } }
    ],
    "pacing": { "max_per_minute": 600 },
    "quiet_hours": "recipient_local",
    "status_callback": "https://example.com/hooks/textabyte"
  }'

Bulk response

Suppressed, opted-out and invalid recipients are counted and never sent.

202 Accepted
{
  "id": "blk_9xR2mVt4",
  "status": "queued",
  "accepted": 2,
  "suppressed": 0,
  "rejected": [],
  "pool_id": "pool_2Wd8kQ",
  "created_at": "2026-06-12T14:03:11Z"
}

Webhooks

Real-time events, signed

Subscribe a URL to the events you care about. Each delivery carries a Textabyte-Signature header (timestamp plus HMAC-SHA256 of the raw body) and failed deliveries are retried with backoff.

  • message.queued

    Accepted and waiting for its paced send slot

  • message.sent

    Handed to the carrier

  • message.delivered

    Carrier confirmed delivery to the handset

  • message.failed

    Not delivered, with a plain-language reason

  • message.received

    Inbound reply from a contact

  • contact.opted_out

    Opt-out keyword received; contact suppressed

  • contact.opted_in

    Contact re-subscribed with START or UNSTOP

  • call.forwarded

    An inbound call was forwarded, with duration

  • batch.completed

    A bulk batch finished sending

Event payload · message.delivered
{
  "id": "evt_3Lk0pQx7",
  "type": "message.delivered",
  "created_at": "2026-06-12T14:03:19Z",
  "data": {
    "message_id": "msg_7Hc1rTz2",
    "batch_id": "blk_9xR2mVt4",
    "from": "+15125550142",
    "to": "+17375550118",
    "segments": 1,
    "status": "delivered"
  }
}
import crypto from 'node:crypto';

// Verify the Textabyte-Signature header before trusting the payload.
export function verify(rawBody, header, secret) {
  const [t, v1] = header.split(',').map((p) => p.split('=')[1]);
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // replay window
  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${t}.${rawBody}`)
    .digest('hex');
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

Build on Textabyte

Request API access and we’ll set you up with test keys and a sandbox number pool.