---
title: "Discussion on \"OpenAPI callbacks vs webhooks: modeling async request/reply with runtime expressions\" | Hashnode"
description: "Discussion on \"OpenAPI callbacks vs webhooks: modeling async request/reply with runtime expressions\". A webhook is an inbound URL you register once; an OpenAPI callback is an outbound call whose URL arrives inside the request. Same shape, opposite direction. Here are the callbacks syntax, runtime expressions, a worked 202 example, and how to mock the round trip."
url: "https://hashnode.com/posts/openapi-callbacks-vs-webhooks-runtime-expressions/6aca079f2a681a5142c4eadf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [OpenAPI callbacks vs webhooks: modeling async request/reply with runtime expressions](https://blogs.powerduck.com/openapi-callbacks-vs-webhooks-runtime-expressions?utm_source=hashnode&utm_medium=feed)

A webhook is an inbound URL you register once; an OpenAPI callback is an outbound call whose URL arrives inside the request. Same shape, opposite direction. Here are the callbacks syntax, runtime expressions, a worked 202 example, and how to mock the round trip.

Oct 7 · 7 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#async](https://hashnode.com/tag/async)
-   [#webhooks](https://hashnode.com/tag/webhooks)
-   [#api-design](https://hashnode.com/tag/api-design)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
