06 — Developers

Understand it in
an afternoon.

POST JSON to one address, get JSON back. The channel is a field. Everything else — sessions, retries, cascades, media transcoding — happens behind the endpoint.

The API host is provisioned per workspace and issued with your credentials — it is not the same host that serves this website. Endpoint names and payload shapes below are the production contract; a live sandbox is provided during onboarding.

Quickstart

Four concepts,
then ship.

Base URL
https://<workspace>.api.touch-api.com (issued on onboarding)
Version
/v1
Auth
Token per account, scoped
Channel
The source field
Content type
application/json
Receipts
Via webhook or /v1/getInfo
send a message
# one call, any channel — only "source" changes
curl -X POST https://WORKSPACE.api.touch-api.com/v1/sendMessage \
  -H "Content-Type: application/json" \
  -d '{
    "source": "whatsapp",
    "login":  "12025550188",
    "token":  "tk_live_…",
    "msg": {
      "to":   "12025550143",
      "text": "Your order is on the way."
    },
    "fallback": ["sms", "voice"]
  }'
response
{
  "id": "msg_7c41be09",
  "status": "delivered",
  "delivered_via": "whatsapp",
  "attempts": [
    { "leg": "whatsapp", "ok": true, "ms": 287 }
  ],
  "account": "12025550188"
}

Authentication

A token belongs
to an account.

Tokens are scoped to a single account and can be rotated without dropping the underlying session. Workspace-level keys exist for provisioning endpoints only.

Token typeScopeCan doRotation
tk_test_Test contourEvery endpoint against mock sessionsanytime
tk_live_One accountSend, read, set state on that accountanytime
tk_admin_WorkspaceProvision, retire, configure accountsanytime
tk_ro_WorkspaceRead-only reporting and stateanytime
Webhooks

One signature
for every channel.

Inbound messages, receipts and state changes arrive at your webhook in the same envelope regardless of the network behind them. Payloads are signed; retries follow a fixed backoff curve with a 72-hour window.

Each delivery carries an event id and an attempt counter, so your handler can be idempotent without a database round-trip on every call.

verify signature
const crypto = require('node:crypto');

function verify(rawBody, header, secret) {
  const [ts, sig] = header.split(',').map(p => p.split('=')[1]);
  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${ts}.${rawBody}`)
    .digest('hex');

  const ok = crypto.timingSafeEqual(
    Buffer.from(expected), Buffer.from(sig)
  );
  const fresh = Date.now() - Number(ts) * 1000 < 300_000;
  return ok && fresh;
}
Status

Component level,
rolling 90 days.

ComponentStateUptime 90dp95Last incident
API coreoperational100%48 ms16 days ago
WhatsApp (Cloud + personal)operational100%290 ms6 days ago
Telegram (bot + personal)operational100%120 ms21 days ago
SMS & emailoperational100%410 ms11 days ago
Social connectorsoperational100%380 ms34 days ago
Webhook dispatcheroperational100%180 msin progress
Partner paneloperational100%130 ms48 days ago
Build it

Keys and sandbox
today.