oura-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Oura webhooks. Use when setting up Oura Ring webhook handlers, completing the subscription verification handshake, debugging…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Oura Webhooks
When to Use This Skill
- How do I receive Oura webhooks?
- How do I complete the Oura subscription verification handshake (GET challenge)?
- How do I verify the
x-oura-signatureheader? - Why is my Oura webhook signature verification failing?
- How do I handle Oura
sleep,daily_readiness, orworkoutevents?
How Oura Webhooks Work
Oura webhooks have two distinct request types on the same callback URL:
- Subscription handshake (GET): When you create a subscription, Oura sends a
GETto yourcallback_urlwith query paramsverification_tokenandchallenge. Check the token matches yours, then respond200with JSON{"challenge": "<value>"}. - Event delivery (POST): Each event is a
POSTcarrying headersx-oura-signatureandx-oura-timestamp. Verify the HMAC, then process.
Event payloads are thin — { event_type, data_type, object_id, event_time, user_id }.
Use object_id to fetch the full record from the Oura API.
Verification (core)
HMAC-SHA256 over timestamp + rawBody, keyed with your client secret, hex digest,
UPPERCASE. Compare (timing-safe) to the x-oura-signature header. Use the raw
request body — see references/verification.md for why raw
body is used instead of re-serializing (JSON.stringify) the parsed payload.
Node:
const crypto = require('crypto');
function verifyOuraSignature(rawBody, signature, timestamp, clientSecret) {
if (!signature || !timestamp) return false;
const expected = crypto
.createHmac('sha256', clientSecret)
.update(timestamp + rawBody) // x-oura-timestamp + raw request body
.digest('hex')
.toUpperCase(); // Oura sends an uppercase hex digest
try {
return crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
} catch {
return false; // length mismatch = invalid
}
}
Python:
import hmac, hashlib
def verify_oura_signature(raw_body: bytes, signature: str, timestamp: str, client_secret: str) -> bool:
if not signature or not timestamp:
return False
expected = hmac.new(
client_secret.encode("utf-8"),
timestamp.encode("utf-8") + raw_body, # x-oura-timestamp + raw request body
hashlib.sha256,
).hexdigest().upper()
return hmac.compare_digest(expected, signature)
For complete handlers (GET handshake + POST event dispatch + tests), see:
Common Data Types
Each subscription is one data_type + event_type combination. event_type is
create, update, or delete.
data_type |
Fires when |
|---|---|
sleep |
A sleep period is recorded |
daily_sleep |
Daily sleep summary/score is available |
daily_readiness |
Daily readiness score is available |
daily_activity |
Daily activity summary is available |
workout |
A workout is recorded |
session |
A moment/session (e.g. breathing) is recorded |
daily_stress |
Daily stress summary is available |
Full data_type enum (16): tag, enhanced_tag, workout, session, sleep,
daily_sleep, daily_readiness, daily_activity, daily_spo2, sleep_time,
rest_mode_period, ring_configuration, daily_stress, daily_cardiovascular_age,
daily_resilience, vo2_max. Oura has deprecated tag in favour of enhanced_tag.
For the full reference, see references/overview.md and the Oura Webhook docs.
Environment Variables
OURA_CLIENT_SECRET=your_client_secret # HMAC key for x-oura-signature
OURA_VERIFICATION_TOKEN=your_verification_token # Token you set when subscribing
OURA_CLIENT_ID=your_client_id # Only needed to manage subscriptions
OURA_CLIENT_ID / OURA_CLIENT_SECRET come from your app at the
Oura Developer portal. OURA_VERIFICATION_TOKEN
is a secret string you choose and pass as verification_token when creating the subscription.
Local Development
In your Hookdeck project, create an Oura source named oura and enter your Oura client secret. Use that source's URL as the subscription's callback_url: a Hookdeck Oura source answers Oura's GET check itself. Sign the CLI into the same project, then forward the source to your local server.
npx hookdeck-cli listen 3000 oura --path /webhooks/oura
Reference Materials
- references/overview.md - Oura webhook concepts, data types, payloads
- references/setup.md - Create and renew subscriptions via the API
- references/verification.md - Signature + handshake details and gotchas
Attribut
Установить oura-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл oura-webhooks?
Receive and verify Oura webhooks. Use when setting up Oura Ring webhook handlers, completing the subscription verification handshake, debugging x-oura-signature verification, or handling data events like sleep, daily_readiness, daily_activity, and workout.
Как установить скилл oura-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл oura-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic