Skip to main content
AI NewsOpenAI Webhooks签名验证幂等处理重试恢复

A production gate for OpenAI webhooks: signature verification, fast acknowledgement, idempotency, and replay testing

A reliable receiver uses the raw request body for signature verification, acknowledges within seconds, queues durable work, and deduplicates by webhook-id.

ENHE AI5 min4 views
A production gate for OpenAI webhooks: signature verification, fast acknowledgement, idempotency, and replay testing

Key takeaways

OpenAI webhooks deliver subscribed events as HTTP POST requests to a project-level endpoint. The documentation says the signing secret appears when the endpoint is created and cannot be viewed again, so it must be stored securely for server-side verification. Official SDK helpers can unwrap and verify an event using the raw request body, request headers, and secret. A receiver should return a successful 2xx response within a few seconds and offload non-trivial processing to a background worker. Failed or slow deliveries are retried with exponential backoff for up to 72 hours, while 3xx redirects are treated as failures. Rare duplicate deliveries are possible, so webhook-id should serve as an idempotency key. A release gate should exercise invalid signatures, duplicates, backlog, replay, and recovery before enabling side effects.

Webhook endpoints are configured per project and subscribe to one or more event types; creation returns a signing secret that cannot be viewed again.
OpenAI recommends SDK unwrap helpers to verify the event with the raw request body, request headers, and a server-side secret environment variable.
The endpoint should return 2xx within seconds; failures retry with exponential backoff for up to 72 hours, 3xx redirects are not followed, and webhook-id can deduplicate rare duplicate events.

Direct answer

OpenAI webhooks deliver subscribed events as HTTP POST requests to a project-level endpoint. The documentation says the signing secret appears when the endpoint is created and cannot be viewed again, so it must be stored securely for server-side verification. Official SDK helpers can unwrap and verify an event using the raw request body, request headers, and secret. A receiver should return a successful 2xx response within a few seconds and offload non-trivial processing to a background worker. Failed or slow deliveries are retried with exponential backoff for up to 72 hours, while 3xx redirects are treated as failures. Rare duplicate deliveries are possible, so webhook-id should serve as an idempotency key. A release gate should exercise invalid signatures, duplicates, backlog, replay, and recovery before enabling side effects.

Verified facts

Webhook endpoints are configured per project and subscribe to one or more event types; creation returns a signing secret that cannot be viewed again.

OpenAI recommends SDK unwrap helpers to verify the event with the raw request body, request headers, and a server-side secret environment variable.

The endpoint should return 2xx within seconds; failures retry with exponential backoff for up to 72 hours, 3xx redirects are not followed, and webhook-id can deduplicate rare duplicate events.

A production gate for OpenAI webhooks: signature verification, fast acknowledgement, idempotency, and replay testing cover infographic
ENHE AI original composite: a topic-specific real-work scene with fact-checked editorial copy.

What changed

  • Subscribed events can bring asynchronous results into application workflows
  • Verification over the raw request body becomes a mandatory pre-processing boundary
  • Fast acknowledgement must be separated from non-trivial business processing
  • Retries and duplicates require an idempotent state machine with replay evidence
A production gate for OpenAI webhooks: signature verification, fast acknowledgement, idempotency, and replay testing team operating flow
A four-step path from announcement to testable, reversible, auditable operations.

Impact for AI users

Webhooks replace polling with event-driven delivery while introducing a public endpoint, duplicate delivery, and asynchronous failure. Reliability means that receiving the same event repeatedly still produces one side effect, queued work recovers after a backlog, and redacted logs can reconstruct each state transition. A valid signature establishes origin and integrity; it does not replace an event-type allowlist, object-level authorization, business validation, or idempotency in downstream systems.

Operating checklist

  1. Use the raw request body for SDK verification, reject missing, stale, or invalid signatures, and keep the signing secret out of logs.
  2. After verification and minimal field checks, durably record the event with a unique webhook-id constraint, then return 2xx within seconds.
  3. Process only allowed event types in a background worker, retaining a business idempotency key and state-transition record for every external write.
  4. Before launch, replay valid, tampered, duplicate, out-of-order, and delayed fixtures, then exercise backlog recovery within the 72-hour retry window.

AI frontier news and analysis, AI software and model tools, AI skill tutorials and validation methods, and AI account and permission guidance

FAQ

Can a verified event trigger a payment or publication immediately?

Signature verification alone is insufficient. Validate the event type, object ownership, business state, authorization, and downstream idempotency first.

Why must the endpoint return 2xx quickly?

OpenAI says slow or unsuccessful responses trigger retries, so non-trivial work should move to a background worker to avoid amplifying duplicates.

Which value should deduplicate repeated deliveries?

OpenAI recommends webhook-id for deduplication. A separate business idempotency key for downstream side effects is this article's engineering recommendation.

Summary

The minimum reliable webhook unit is raw-body verification, durable enqueueing, fast 2xx acknowledgement, idempotent consumption, and auditable replay. Omitting any link leaves side effects uncertain during retries or failures.

This AI-assisted article is checked by ENHE AI automation for official sources, bilingual fields, media rights, page safety, and historical duplication before publication.

What this means for everyday users

Webhooks replace polling with event-driven delivery while introducing a public endpoint, duplicate delivery, and asynchronous failure. Reliability means that receiving the same event repeatedly still produces one side effect, queued work recovers after a backlog, and redacted logs can reconstruct each state transition. A valid signature establishes origin and integrity; it does not replace an event-type allowlist, object-level authorization, business validation, or idempotency in downstream systems.

Tools you may use

Related tutorials

Related Tools And Tutorials

Use the following ENHE AI sections to continue from the news signal into tool selection, account-service guidance, or practical learning.

Related reading

NVIDIA Expands DGX Spark With 64GB: Evaluate a Local AI Workstation

On October 2, NVIDIA announced a 64GB unified-memory DGX Spark configuration and said partner availability would begin October 23 at a starting price of $4,999. NVIDIA says one unit can run models up to 100 billion parameters and that two systems can pool 128GB; it reports up to 1.7x performance in its own Qwen 3.8 27B test. Availability is forward-looking, and performance figures are vendor results. Model choice, quantization, context length, and concurrency change outcomes. This article offers a practical evaluation checklist for teams comparing local inference with cloud services. Teams should check applicability against their own environment, record assumptions, and validate decisions with representative operational evidence.

Microsoft’s 2026 Defense Report: AI Is Changing the Pace of Cybersecurity

In its October 1 commentary on the 2026 Microsoft Digital Defense Report, Microsoft says threat actors are using AI in parts of existing workflows, including reconnaissance and social engineering. The post does not claim that attacks have become fully autonomous; it highlights changes in speed and scale. Identity controls, least privilege, data protection, monitoring, testing, and secure development remain central. This article separates Microsoft’s observations from independent conclusions and turns the post into a practical checklist. Teams should compare the claims with their own telemetry and incident history before changing priorities. Teams should check applicability against their own environment, record assumptions, and validate decisions with representative operational evidence.

Microsoft Announces Streaming Transcription: Voice Agents Can Respond Earlier

On October 1, Microsoft AI announced MAI-Transcribe-2-Streaming, MAI-Voice-2.1, and a Flash variant. Microsoft says the streaming transcription model supports 60 languages with continuous language detection, and that initial partials can appear just over 100 milliseconds after audio arrives. Its speech-generation models are described as supporting 23 languages and 26 locales. Rankings, accuracy, speed, and price claims come from Microsoft’s announcement and do not predict results for every workload. This article explains the interaction changes and suggests tests for latency, revisions, accents, privacy, and total cost. Teams should check applicability against their own environment, record assumptions, and validate decisions with representative operational evidence.

A One-Week AI Agent Security Review Using the OWASP Risk Framework

The OWASP Gen AI Security Project published its 2026 Top 10 for Agentic Applications in December 2025 as a risk framework for systems that plan, call tools, or act across services. It is a starting point for security discussion, not a certification, compliance attestation, or guarantee of safety. This article turns it into a one-week baseline review: inventory agent identities and tools, narrow permissions, treat external content as untrusted input, record consequential actions, test shutdown and revocation, and define approval and recovery for high-impact operations. Teams should extend the checklist to match their architecture and threat model. Teams should check applicability against their own environment, record assumptions, and validate decisions with representative operational evidence.

A Banking Agent Writes Then Reverses: AWS Describes a Demo, Not Production Trading

An October 5 AWS post describes Texas Capital Bank’s Trust-Earned Autonomy pattern, in which reviewer agreement can inform an agent’s permissions and a prior write can be reversed if trust declines. AWS explicitly says the agent pattern is still a demonstration running on demo-scale Apache Fineract with synthetic data, not a production workload or real production transaction flow. The bank’s separate document-extraction capability is described as operating in production. This article focuses on revocable authority, auditability, and system boundaries, and avoids presenting the demonstration as an already deployed autonomous banking agent. Teams should check applicability against their own environment, record assumptions, and validate decisions with representative operational evidence.

OpenAI Updates Content Provenance: Extending the Work to EU Text

OpenAI's October 5 announcement sets out a phased approach to text watermarking, including API opt-in and a regional product rollout. The details are public and should be read alongside its broader media-provenance guidance. For publishers, the practical task is to distinguish which checks apply to text, images, and audio, and to keep evidence of how content was created and reviewed. A useful editorial record separates product coverage, source checks, permission to use materials, and AI disclosure. This article explains those distinctions and proposes a review workflow. A provenance signal is supporting evidence, not a substitute for factual verification or a conclusion about an author's identity or ownership.

Sources

Table of contents

Latest Insights