Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

render-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Render webhooks (render.com cloud hosting). Use when setting up a Render workspace webhook endpoint, debugging Standard Webhooks signature…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Render Webhooks

Render sends workspace webhooks when service events happen: builds and deploys, outages, scaling, cron job runs, Render Postgres and Key Value changes. Each webhook is an HTTPS POST signed with Standard Webhooks.

When to Use This Skill

  • How do I receive Render webhooks?
  • How do I verify a Render webhook signature?
  • How do I run something after a Render deploy_ended with status: succeeded?
  • How do I alert on server_failed?
  • Why is my Render webhook-signature verification failing?
  • Why did Render disable my webhook?
  • How do I get the deploy ID or commit from a Render webhook?

Verification (core)

Header Value
webhook-id Service event ID (evt-...), the same on every retry
webhook-timestamp Unix seconds when this delivery attempt was sent (changes per retry)
webhook-signature v1,<base64 HMAC-SHA256>, possibly several space-separated entries

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, keyed with your webhook's signing secret (copied from its Settings page). Render recommends the Standard Webhooks libraries (standardwebhooks on npm and PyPI), which enforce a 5-minute timestamp tolerance and compare in constant time.

const { Webhook } = require('standardwebhooks');

function verifyRenderWebhook(rawBody, headers) {   // rawBody: exact bytes, NOT re-serialised JSON
  const secret = process.env.RENDER_WEBHOOK_SECRET;
  if (!secret) throw new Error('RENDER_WEBHOOK_SECRET not set'); // fail closed → 500
  // Strips an optional whsec_ prefix, base64-decodes the key, checks timestamp,
  // and timing-safe compares every v1 signature. Throws on failure → 400.
  return new Webhook(secret).verify(rawBody, {
    'webhook-id': headers['webhook-id'],
    'webhook-timestamp': headers['webhook-timestamp'],
    'webhook-signature': headers['webhook-signature'],
  });
}

Python: from standardwebhooks.webhooks import Webhook, then Webhook(secret).verify(await request.body(), headers).

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Render's docs print the format as WEBHOOK_ID.WEBHOOK_TIMESTAMP.REQUEST_BODY.SIGNING_SECRET. The secret is the HMAC key. Don't append it to the signed string. See references/verification.md.

Payload

{
  "type": "deploy_ended",
  "timestamp": "2025-02-25T16:22:19.979294509Z",
  "data": {
    "id": "evt-cuuuses015js70180jk0",
    "serviceId": "srv-cukouhrtq21c73e9scng",
    "serviceName": "my-service",
    "status": "succeeded"
  }
}

The payload is deliberately thin. data.status (succeeded, failed or canceled) only appears on build_ended, deploy_ended, cron_job_run_ended and job_run_ended. For details such as the deploy ID or instance counts, call GET https://api.render.com/v1/events/{data.id} with a Render API key.

Common Event Types

Event Fired when
build_started / build_ended A build started / completed (status on _ended)
deploy_started / deploy_ended A deploy started / completed (status on _ended)
server_failed A service became unavailable, usually a runtime error
server_available A previously unavailable service became available
cron_job_run_started / cron_job_run_ended A cron job run started / completed (status on _ended)
job_run_ended A one-off job completed (status)
autoscaling_started / autoscaling_ended An autoscaled service started / finished changing instances
postgres_unavailable / postgres_available A Render Postgres database went down / came back

Render documents 60+ types across deploys, availability, scaling, cron jobs, Postgres, Key Value and disks. references/overview.md lists all of them. server_unhealthy was removed (2025-11-10). Use server_failed.

Delivery Semantics

  • Return a 2xx within 15 seconds or the attempt fails.
  • Up to 8 attempts with exponential backoff; the last is ~33 hours after the first. Render emails you after the third failure.
  • If every attempt fails, Render disables the webhook. Re-enable it from its Settings page.
  • Dedupe on data.id (equal to webhook-id), which stays the same across retries.

Environment Variables

RENDER_WEBHOOK_SECRET=whsec_your_render_signing_secret   # from the webhook's Settings page

Local Development

# Express / Next.js (use 8000 for FastAPI). No install or account required.
npx hookdeck-cli listen 3000 render --path /webhooks/render

Use the printed URL as the webhook URL in Integrations > Webhooks, then trigger a manual deploy.

Reference Materials

Полный SKILL.md на GitHub

Установить render-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/render/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл render-webhooks?

Receive and verify Render webhooks (render.com cloud hosting). Use when setting up a Render workspace webhook endpoint, debugging Standard Webhooks signature verification (webhook-id, webhook-timestamp, webhook-signature), handling the thin payload and fetching details from the Render API, or reacting to service events like deploy_started, deploy_ended, build_ended, server_failed, cron_job_run_ended, autoscaling_ended and postgres_unavailable.

Как установить скилл render-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл render-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить render-webhooks с