texture-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Texture webhooks. Use when setting up a Texture webhook destination, debugging Texture-Signature verification failures, or handling…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Texture Webhooks
Texture (texturehq.com), the energy-device data platform, delivers workspace events (devices,
commands, customers, enrollments, sites, alerts) to webhook destinations as an HTTP POST.
Each request carries a Texture-Signature header: the lowercase hex HMAC-SHA256 of the raw
request body, keyed with the destination's secret.
Paste the whole secret, including the whsec_ prefix. Texture uses it as a plain HMAC key.
When to Use This Skill
- How do I receive Texture webhooks?
- How do I verify the
Texture-Signatureheader? - Why does my Texture webhook signature verification fail?
- Is the Texture
whsec_secret a Standard Webhooks key? (No, it is a plain HMAC key) - How do I handle
device.updated,command.succeededorcustomer.createdevents?
Verification (core)
The signature is the bare hex digest (no prefix, no v1,), computed over the raw body bytes
only. Nothing else is signed: Texture-Timestamp is sent but not signed. The key is the
secret's UTF-8 bytes, used as-is (not hex- or base64-decoded):
const crypto = require('crypto');
function verifyTextureSignature(rawBody, signature, secret) {
if (!secret || typeof signature !== 'string') return false;
if (!/^[0-9a-fA-F]{64}$/.test(signature)) return false; // validate before decoding
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest(); // rawBody: Buffer
const received = Buffer.from(signature.toLowerCase(), 'hex'); // 32 bytes, safe after the check
return crypto.timingSafeEqual(expected, received);
}
Read the header as req.headers['texture-signature'] (Node lowercases header names). Return 401
for a missing, empty or malformed header and for a mismatch. Read the body raw
(express.raw({ type: '*/*' }), Next.js await request.arrayBuffer(), FastAPI
await request.body()) and parse JSON only after the check. Texture's own sample hashes
JSON.stringify(payload), but the docs also say to use the raw payload because order and
whitespace matter: never re-serialize before verifying.
Do not use the standardwebhooks or svix libraries. The secret looks like a Standard
Webhooks whsec_ secret but is not one: use the whole string, whsec_ included, as a plain
UTF-8 HMAC key. There is no webhook-id and the digest is hex, not base64. Texture-Timestamp (Unix
milliseconds) is not signed. Texture's docs recommend rejecting deliveries older than 5 minutes; that
check also rejects events you replay or queue later, so treat it as optional and dedupe on key.
Python, FastAPI and Next.js versions are in references/verification.md.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Event Types
Dispatch on the body's type field, which is the dotted name. Destinations subscribe with
UPPER_SNAKE names (DEVICE_UPDATED), a separate vocabulary that does not appear in type.
type |
Fired when |
|---|---|
device.discovered |
A new device is discovered |
device.updated |
Device data is updated (changed fields only) |
device.disconnected |
A device goes offline |
command.succeeded |
A device command succeeds |
command.failed |
A device command fails |
command.overridden |
A device's state no longer matches an active command |
customer.created |
A customer is created |
enrollment.approved |
An enrollment is approved (Grid Services only) |
site.created |
A site is created |
alert.ownership.changed |
An alert's assigned team or person changes |
Those ten are on Texture's event types page. The
destinations page has 21 subscription names; the dotted type for the other eleven comes from the
EventTypes list in Texture's MIT-licensed @texturehq/events package: command.scheduled,
connection.failed, device.connected, enrollment.submitted, enrollment.rejected,
customer.updated, customer.deleted, site.updated, site.deleted, alert.created,
alert.updated.
The body is { type, version, key, timestamp, data }: version is that event's semantic schema
version, key is for deduplication and timestamp is an RFC 3339 string. Device events carry
deviceId, workspaceId and organizationId inside data. Handle the types you need and log the
rest. Texture's webhooks page also shows device.created as an example type, but it is not in any
list.
Environment Variables
TEXTURE_WEBHOOK_SECRET=whsec_my-webhook-secret # the destination's secret, whole string
Local Development
npx hookdeck-cli listen 3000 texture --path /webhooks/texture
No account required. Use the printed URL as the destination URL in Texture.
Resources
- references/overview.md - Event types, payload fields, delivery behavior
- [references/setup.md](referen
Установить texture-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл texture-webhooks?
Receive and verify Texture webhooks. Use when setting up a Texture webhook destination, debugging Texture-Signature verification failures, or handling energy-device events like device.updated, command.succeeded, customer.created and enrollment.approved.
Как установить скилл texture-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл texture-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic