Prompt Buddy logoPrompt Buddy

google · Google AI Docs

Gemini API Webhooks

Explains how to configure and implement webhooks to receive real-time notifications and event-driven updates from the Gemini API.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Gemini API Webhooks

Explains how to configure and implement webhooks to receive real-time notifications and event-driven updates from the Gemini API.

When To Use

Use when you need to implement an asynchronous notification system to handle API events or status updates without constant polling.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/gemini-api-webhooks-workflow-guide.mdA guide explaining how the Gemini API uses webhooks to push real-time notifications for asynchronous and long-running operations to a server.Questions about a guide explaining how the Gemini API uses webhooks to push real-time notifications for asynchronous and long-running...
examples/gemini-api-webhooks-gemini-api-python-webhook-creation.textA Python code snippet demonstrating how to create a Gemini API webhook with subscribed events and a callback URI using the genai client.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to create a Gemini API webhook with subscribed events and a callback URI usin...
examples/gemini-api-webhooks-gemini-api-nodejs-webhook-creation.textA Node.js code example demonstrating how to create a webhook with specific subscribed events and a callback URI using the Google GenAI SDK.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to create a webhook with specific subscribed events and a callback URI using...
examples/gemini-api-webhooks-curl-registration-request.textA curl command demonstrating how to register a new webhook endpoint with the Gemini API using a POST request.Exact payloads, commands, or snippets shown in A curl command demonstrating how to register a new webhook endpoint with the Gemini API using a POST request.
examples/gemini-api-webhooks-gemini-api-python-webhook-get.textA Python code snippet demonstrating how to retrieve webhook details using the Google GenAI client.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to retrieve webhook details using the Google GenAI client.
examples/gemini-api-webhooks-gemini-api-nodejs-webhooks-get.textA Node.js code example demonstrating how to retrieve webhook details using the GoogleGenAI client.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to retrieve webhook details using the GoogleGenAI client.
examples/gemini-api-webhooks-list-webhooks-curl.textA curl command used to list configured webhooks for the Gemini API using an API key.Exact payloads, commands, or snippets shown in A curl command used to list configured webhooks for the Gemini API using an API key.
examples/gemini-api-webhooks-gemini-api-python-list-webhooks.textA Python code snippet demonstrating how to use the Gemini API client to list configured webhooks.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the Gemini API client to list configured webhooks.
examples/gemini-api-webhooks-gemini-api-list-webhooks-nodejs.textA Node.js code example demonstrating how to use the GoogleGenAI client to list existing webhooks.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the GoogleGenAI client to list existing webhooks.
examples/gemini-api-webhooks-list-curl.textA curl command to list configured webhooks for the Gemini API using an API key.Exact payloads, commands, or snippets shown in A curl command to list configured webhooks for the Gemini API using an API key.
examples/gemini-api-webhooks-gemini-api-python-webhook-update.textA Python code snippet demonstrating how to update a Gemini API webhook subscription using the genai client.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to update a Gemini API webhook subscription using the genai client.
examples/gemini-api-webhooks-gemini-api-nodejs-webhook-update.textA Node.js code example demonstrating how to update a Gemini API webhook subscription using the GoogleGenAI client.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to update a Gemini API webhook subscription using the GoogleGenAI client.
examples/gemini-api-webhooks-patch-subscription-curl.textA curl command demonstrating how to patch webhook subscriptions for batch job events using the Gemini API.Exact payloads, commands, or snippets shown in A curl command demonstrating how to patch webhook subscriptions for batch job events using the Gemini API.
examples/gemini-api-webhooks-gemini-api-python-webhook-deletion.textA Python code snippet demonstrating how to use the Gemini API client to delete a specific webhook by its ID.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the Gemini API client to delete a specific webhook by its ID.
examples/gemini-api-webhooks-gemini-api-nodejs-delete-webhook.textA Node.js code snippet demonstrating how to use the GoogleGenAI client to delete a configured webhook.Exact payloads, commands, or snippets shown in A Node.js code snippet demonstrating how to use the GoogleGenAI client to delete a configured webhook.
examples/gemini-api-webhooks-delete-curl-request.textA curl command demonstrating how to delete a webhook using the Gemini API.Exact payloads, commands, or snippets shown in A curl command demonstrating how to delete a webhook using the Gemini API.
examples/gemini-api-webhooks-gemini-api-python-rotate-signing-secret.textA Python code snippet demonstrating how to use the Gemini API client to rotate a webhook signing secret.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the Gemini API client to rotate a webhook signing secret.
examples/gemini-api-webhooks-nodejs-rotate-signing-secret.textA Node.js code example demonstrating how to use the GoogleGenAI client to rotate a webhook signing secret with a specific revocation behavior.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the GoogleGenAI client to rotate a webhook signing secret with a spec...
examples/gemini-api-webhooks-rotate-secret-curl.textA curl command demonstrating how to rotate a webhook secret using the Gemini API.Exact payloads, commands, or snippets shown in A curl command demonstrating how to rotate a webhook secret using the Gemini API.
examples/gemini-api-webhooks-flask-verification.textA Python Flask implementation demonstrating how to verify Gemini API webhook signatures using the standardwebhooks library.Exact payloads, commands, or snippets shown in A Python Flask implementation demonstrating how to verify Gemini API webhook signatures using the standardwebhooks li...
examples/gemini-api-webhooks-nodejs-express-implementation.textA Node.js Express implementation demonstrating how to receive and verify Gemini API webhook callbacks using the standardwebhooks library.Exact payloads, commands, or snippets shown in A Node.js Express implementation demonstrating how to receive and verify Gemini API webhook callbacks using the stand...
examples/gemini-api-webhooks-gemini-api-python-batch-job-webhook-config.textA Python code snippet demonstrating how to configure a webhook URI and user metadata when creating a batch job using the Gemini API.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to configure a webhook URI and user metadata when creating a batch job using...
examples/gemini-api-webhooks-gemini-api-nodejs-batch-create-webhook-config.textA Node.js code snippet demonstrating how to create a batch job with a webhook configuration using the GoogleGenAI client.Exact payloads, commands, or snippets shown in A Node.js code snippet demonstrating how to create a batch job with a webhook configuration using the GoogleGenAI cli...
examples/gemini-api-webhooks-curl-batchcreate-request.textA curl command demonstrating a POST request to the batchCreate endpoint with webhook configuration for the Gemini API.Exact payloads, commands, or snippets shown in A curl command demonstrating a POST request to the batchCreate endpoint with webhook configuration for the Gemini API.
examples/gemini-api-webhooks-python-flask-jwt-verification.textA Python Flask implementation demonstrating how to verify Gemini API webhook signatures using Google's public JWKS endpoint.Exact payloads, commands, or snippets shown in A Python Flask implementation demonstrating how to verify Gemini API webhook signatures using Google's public JWKS en...
examples/gemini-api-webhooks-nodejs-express-server-implementation.textA Node.js Express server implementation demonstrating how to receive and verify Gemini API webhook notifications using JWKS.Exact payloads, commands, or snippets shown in A Node.js Express server implementation demonstrating how to receive and verify Gemini API webhook notifications usin...
examples/gemini-api-webhooks-batch-succeeded-payload.textA text representation of a JSON payload sent by a Gemini API webhook when a batch job successfully completes.Exact payloads, commands, or snippets shown in A text representation of a JSON payload sent by a Gemini API webhook when a batch job successfully completes.

What This Skill Covers

  • Webhooks allow the Gemini API to push real-time notifications to your server when asynchronous or Long-Running Operations (LROs) complete. This replaces the...
  • Main sections: How it works, Static webhooks, Create a webhook, Python, JavaScript.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://ai.google.dev/gemini-api/docs/webhooks