Webhook エンドポイント
複数の Webhook 送信先を作成し、イベントを購読して、署名シークレットを安全にローテーションできます。
重要なポイント
- 本番エンドポイントの URL は公開 HTTPS が必要です。enabled_events で受信する種類を制限します。
- 署名シークレットを安全に保管し、生の本文の署名を検証してから処理します。
- シークレットの切り替えには重複期間を設け、不要なエンドポイントは停止します。
例
text
POST /v1/webhook_endpoints
GET /v1/webhook_endpoints
GET /v1/webhook_endpoints/{endpoint_id}
POST /v1/webhook_endpoints/{endpoint_id}
DELETE /v1/webhook_endpoints/{endpoint_id}
POST /v1/webhook_endpoints/{endpoint_id}/rotate_secret