This month, weβre introducing comprehensive support for webhooks and callbacks across SDKs and API Developer Portals. These updates make it easier for developers to manage asynchronous API events and ensure secure, reliable event delivery.
Highlights include type-safe webhook handlers, built-in HMAC signature verification and interactive callback documentation in Developer Portals.
APIMatic now generates webhook handling code across C#, Java, Python, Ruby, and TypeScript SDKs. You can verify and parse incoming webhook events with type-safe handlers that include HMAC signature verification.
The generated handlers parse incoming webhook requests and narrow the event type automatically. This means you conveniently process events with type safety.
Every generated SDK includes cryptographic signature verification that validates webhook authenticity. The handlers protect against replay attacks and verify payload integrity without requiring you to implement custom security logic.
The generated webhook handlers include error handling for common issues like:
π See the feature documentation for webhooks and callbacks for details.
API Developer Portals have been enhanced to display language-specific Documentation for Webhooks and Callbacks
Each API endpoint page now features collapsible accordion sections listing all associated callbacks, enabling developers to explore complete event workflows without leaving the endpoint context. You can see exactly what events an API triggers and how to handle themβall in one view.
Updated code snippets across supported languages demonstrate complete webhook handling workflows, from request parsing to event processing.
The portal now provides a dedicated section for exploring events where developers can:
You can use the x-webhooks and x-callbacks OpenAPI extensions to define reusable configurations for related webhooks or callbacks.
Define webhook/callback groups using these 2 extensions at the root of your OpenAPI specification. Each group can specify:
These extensions enable you to organize related webhooks and callbacks into logical groups while defining verification and routing logic once for reuse across multiple events.
π Learn more about these extensions in the product documentation
Your feedback makes our product better.
Follow us on LinkedIn to stay updated with the latest news from APIMatic!