textus-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify TextUs webhooks. Use when setting up TextUs webhook handlers, debugging TextUs signature verification (X-TextUs-Signature, HMAC-SHA256), or…
от hookdeck★ 104 звезды на GitHubОб этом скилле
TextUs Webhooks
TextUs (business texting) POSTs a JSON payload to your HTTPS endpoint whenever a
subscribed event happens, such as an inbound text or a contact opting out. Each
delivery carries an HMAC-SHA256 signature in the X-TextUs-Signature header that
you should verify before trusting the event.
When to Use This Skill
- How do I receive TextUs webhooks?
- How do I verify the
X-TextUs-Signatureheader? - How do I handle
message.received,message.delivered, orcontact.opted_outevents? - Why is my TextUs webhook signature verification failing?
- How do I register a TextUs webhook with the Integrations API?
How TextUs Signs Webhooks
TextUs uses a plain HMAC scheme (not Standard Webhooks, no timestamp in the signature):
| Item | Value |
|---|---|
| Header | X-TextUs-Signature |
| Algorithm | HMAC-SHA256 |
| Signed content | The raw request body, exactly as received |
| Key | The webhook's secret, e.g. textus-HOTh4kXxHIbYst0xutpkdw |
| Encoding | Bare lowercase hex (64 characters, no sha256= prefix) |
The whole secret string, including the textus- prefix, is the HMAC key
(as UTF-8). Do not strip the prefix or base64-decode anything. There is no
official TextUs SDK for verification, so every framework verifies manually.
Verification (core)
const crypto = require('crypto');
// rawBody: Buffer of the unparsed request body. header: X-TextUs-Signature.
function verifyTextUsSignature(rawBody, header, secret) {
// Validate hex first: Buffer.from(x, 'hex') silently truncates bad input.
if (typeof header !== 'string' || !/^[0-9a-f]{64}$/i.test(header)) return false;
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest();
return crypto.timingSafeEqual(Buffer.from(header, 'hex'), expected);
}
In Python, compare bytes so a non-ASCII header yields a failed check (401)
rather than a TypeError (500):
expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
valid = hmac.compare_digest(expected.encode(), header.lower().encode())
Use the raw request body. In Express use
express.raw({ type: '*/*' })so any content type is captured as a Buffer; re-serialized JSON changes the bytes.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Event Payload Structure
Every documented delivery has an action field naming the event, a timestamp,
and a link to the owning webhook, plus an object for the event (message and
conversation for message events, contact for contact.created, optOut
for opt-out and opt-in events, per TextUs's WebhookDelivery,
ContactWebhookDelivery and OptOutWebhookDelivery types). TextUs publishes
example bodies for four events only, and none for phone_call.completed.
Trimmed from TextUs's message.received example:
{
"@type": "WebhookDelivery",
"id": "/integrations/h13Jc5/deliveries/xyz",
"timestamp": "2018-07-24T20:59:32.156Z",
"action": "message.received",
"webHook": "/integrations/h13Jc5",
"conversation": { "id": "/conversations/JYnJBY" },
"message": { "id": "/messages/6Nvq9L" }
}
Common Event Types
| Event | Triggered When |
|---|---|
message.received |
An incoming message is received |
message.delivered |
An outgoing message is delivered |
message.failed |
An outgoing message failed to deliver |
message.unknown |
An outgoing message could not be delivered due to an unknown error |
phone_call.completed |
A phone call is completed |
contact.opted_out |
A contact opted out of receiving text messages |
contact.opted_in |
A contact opted in to receiving text messages |
contact.created |
A contact is created |
The web app only sends message.delivered and message.received by default;
enable the others through the Integrations API. Branch on action and ignore
unknown values. See references/overview.md.
Environment Variables
| Variable | Description |
|---|---|
TEXTUS_WEBHOOK_SECRET |
The webhook's secret (the full textus-... string) |
Setup
Register an endpoint in the TextUs web app (Settings > Account Settings >
Integrations > Webhooks) or with POST /{account-name}/integrations. See
references/setup.md.
Local Development
For local webhook testing, run the Hookdeck CLI via npx — no install required:
npx hookdeck-cli listen 3000 textus --path /webhooks/textus
No account required — the CLI creates a guest account on first run and provides a local tunnel + web UI for inspecting requests.
Reference Materials
- overview.md — What TextUs webhooks are, event types, payloads
- setup.md — Registering your endpoint and configuring the secret
- verification.md — Signatur
Установить textus-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл textus-webhooks?
Receive and verify TextUs webhooks. Use when setting up TextUs webhook handlers, debugging TextUs signature verification (X-TextUs-Signature, HMAC-SHA256), or handling business texting events like message.received, message.delivered, contact.opted_out, and contact.created.
Как установить скилл textus-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл textus-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub