Prompt Buddy logoPrompt Buddy

openai · OpenAI Platform Docs

Webhooks | OpenAI API

Explains how to configure, receive, and verify webhook events from the OpenAI API to handle asynchronous notifications.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Webhooks | OpenAI API

Explains how to configure, receive, and verify webhook events from the OpenAI API to handle asynchronous notifications.

When To Use

Use when implementing automated responses to asynchronous API events or setting up real-time event monitoring for OpenAI services.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/webhooks-openai-api-workflow-guide.mdA guide explaining how to create webhook endpoints, handle requests, test locally, and verify webhook signatures for OpenAI API events.Questions about a guide explaining how to create webhook endpoints, handle requests, test locally, and verify webhook signatures for...
examples/webhooks-openai-api-openai-api-webhooks-python-flask-signature-verificat.textA Python Flask application demonstrating how to receive and verify OpenAI webhook signatures using the OpenAI client library.Exact payloads, commands, or snippets shown in A Python Flask application demonstrating how to receive and verify OpenAI webhook signatures using the OpenAI client...
examples/webhooks-openai-api-openai-api-webhooks-nodejs-express-signature-verific.textA Node.js Express implementation demonstrating how to receive and verify OpenAI webhook signatures using raw text bodies.Exact payloads, commands, or snippets shown in A Node.js Express implementation demonstrating how to receive and verify OpenAI webhook signatures using raw text bod...
examples/webhooks-openai-api-openai-api-webhooks-curl-request.textA curl command demonstrating how to initiate a background request to the OpenAI API to trigger a webhook response.Exact payloads, commands, or snippets shown in A curl command demonstrating how to initiate a background request to the OpenAI API to trigger a webhook response.
examples/webhooks-openai-api-openai-api-nodejs-background-response-creation.textA Node.js code snippet demonstrating how to create a background response using the OpenAI client to trigger a webhook.Exact payloads, commands, or snippets shown in A Node.js code snippet demonstrating how to create a background response using the OpenAI client to trigger a webhook.
examples/webhooks-openai-api-openai-api-python-background-response-creation.textA Python code example demonstrating how to create a background response using the OpenAI client to trigger webhook events.Exact payloads, commands, or snippets shown in A Python code example demonstrating how to create a background response using the OpenAI client to trigger webhook ev...
examples/webhooks-openai-api-openai-api-webhook-event-payload.textA sample HTTP POST request body and headers representing an OpenAI API webhook event payload.Exact payloads, commands, or snippets shown in A sample HTTP POST request body and headers representing an OpenAI API webhook event payload.
examples/webhooks-openai-api-openai-api-webhooks-secret-environment-variable.textAn example of setting the OPENAI_WEBHOOK_SECRET environment variable for verifying webhook signatures.Exact payloads, commands, or snippets shown in An example of setting the OPENAIWEBHOOKSECRET environment variable for verifying webhook signatures.
examples/webhooks-openai-api-openai-api-webhooks-python-signature-verification.textA Python code snippet demonstrating how to use the OpenAI client to unwrap and verify webhook event signatures using a secret.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the OpenAI client to unwrap and verify webhook event signatures using...
examples/webhooks-openai-api-openai-api-webhooks-nodejs-signature-verification.textA Node.js code example demonstrating how to use the OpenAI client to unwrap and verify webhook event signatures using a secret.Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the OpenAI client to unwrap and verify webhook event signatures using...
examples/webhooks-openai-api-openai-api-webhooks-rust-verification.textA Rust code snippet demonstrating how to verify OpenAI webhook signatures using the standard webhooks crate.Exact payloads, commands, or snippets shown in A Rust code snippet demonstrating how to verify OpenAI webhook signatures using the standard webhooks crate.
examples/webhooks-openai-api-openai-webhooks-php-signature-verification.textA PHP code snippet demonstrating how to verify the signature of an incoming OpenAI webhook payload using a webhook secret.Exact payloads, commands, or snippets shown in A PHP code snippet demonstrating how to verify the signature of an incoming OpenAI webhook payload using a webhook se...

What This Skill Covers

  • OpenAI webhooks allow you to receive real-time notifications about events in the API, such as when a batch completes, a background response is generated, or...
  • Main sections: Creating webhook endpoints, Handling webhook requests on a server, Testing webhooks locally, Verifying webhook signatures.

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://platform.openai.com/docs/webhooks