Gemini API 新增 Webhooks 以處理長時間執行任務通知
谷歌 api 現已支援 webhooks,消除了對長任務運行的輪詢需求。該系統遵循標準 webhooks 規範,為專案級和動態每請求配置提供 hmac 和 jwks 安全支援。文件和 python 指南現已上線。
Google introduced event-driven Webhooks for the Gemini API, enabling push-based notifications for long-running tasks like Deep Research and Batch API processing. This replaces inefficient polling mechanisms, ensuring at-least-once delivery with automatic retries for up to 24 hours and preventing replay attacks via signed headers. Developers can configure endpoints globally or dynamically per-request, utilizing HMAC or JWWS security.