Back to list
Nylas Webhook アップデート用開発者向けクイック参照
nylas webhook update for Developers — Quick Reference
Translated: 2026/4/20 13:00:47
Japanese Translation
Webhook は、メールが到着し、イベントが変化した、または連絡先が更新された際に発火します。nylas webhook update は、既存の Webhook の URL またはトリガーを更新するのを助けます。
nylas webhook update コマンドは Webhook 先元を変更します。配送 URL を --url で変更し、トリガータイプを追加または削除するには --triggers を使用します。
nylas webhook update --id WEBHOOK_ID [--url URL] [--triggers TRIGGERS]
Webhook はポーリングを置き換えます。すべての 30 秒ごとに新しいメールが入ったか確認する代わりに、Webhook はイベントをあなたのエンドポイント内に数秒以内にプッシュします。これにより、API 呼び出しが削減され、アプリケーションの遅延が改善されます。
Webhook URL の変更:
nylas webhook update --id wh_abc123def456 --url https://new-endpoint.example.com/webhook
トリガータイプの追加:
nylas webhook update --id wh_abc123def456 --triggers message.created,event.created,event.updated
nylas webhook update --help を実行すると、利用可能なすべてのフラグを表示できます。パイピングやスクリプトへのデータ供給において機械可読な出力を得るには --json を追加します。
nylas webhook update --help
エラーメッセージ
Webhook が見つかりません
無効なトリガータイプ
完全なドキュメント:nylas webhook update reference — すべてのフラグ、上級エクスサンプル、およびトラブルシューティング。
すべてのコマンド:Nylas CLI Command Reference
始め方:brew install nylas/nylas-cli/nylas — その他のインストール方法
Original Content
Webhooks fire when email arrives, events change, or contacts update. nylas webhook update helps you update an existing webhook's url or triggers.
The nylas webhook update command modifies a webhook destination. Change the delivery URL with --url, or add and remove trigger types with --triggers.
nylas webhook update --id WEBHOOK_ID [--url URL] [--triggers TRIGGERS]
Webhooks replace polling. Instead of checking every 30 seconds whether new email arrived, the webhook pushes the event to your endpoint within seconds. This reduces API calls and improves latency for your application.
Change the webhook URL:
nylas webhook update --id wh_abc123def456 --url https://new-endpoint.example.com/webhook
Add a trigger type:
nylas webhook update --id wh_abc123def456 --triggers message.created,event.created,event.updated
Run nylas webhook update --help to see all available flags. Add --json for machine-readable output — useful when piping into jq or feeding data to scripts.
nylas webhook update --help
Webhook not found
Invalid trigger type
Full docs: nylas webhook update reference — all flags, advanced examples, and troubleshooting.
All commands: Nylas CLI Command Reference
Get started: brew install nylas/nylas-cli/nylas — other install methods