Forum Discussion

satafaka's avatar
satafaka
Visitor
5 years ago

Callbacks without path

Hello everybody.
I want to document the data that my application sends to a registered url as a callback, without the user having to subscribe his/her url. The application has got the subscribed urls on another way.

Any idea how can i do this?

  • Hi satafaka,

     

    Generic webhooks without an explicit subscription API will be supported in OpenAPI 3.1. OAS 3.1 will add a top-level webhooks element where such webhooks can be defined.

     

    In the meantime, you can define these webhooks in the components/callbacks section or inside an extension key such as "x-webhooks".

1 Reply

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi satafaka,

     

    Generic webhooks without an explicit subscription API will be supported in OpenAPI 3.1. OAS 3.1 will add a top-level webhooks element where such webhooks can be defined.

     

    In the meantime, you can define these webhooks in the components/callbacks section or inside an extension key such as "x-webhooks".