# NWC HTTP API

This NWC HTTP API is designed to bridge the gap between the decentralized Nostr protocol and traditional HTTP endpoints with the NWC specification ([NIP-47](https://github.com/nostr-protocol/nips/blob/master/47.md)) in mind. It offers seamless integration, allowing for real-time interaction with the Nostr network through a well-defined HTTP API.\
\
It helps Developers/Nostr clients to fetch NWC info, publish NWC requests, or subscribe to events based on filters to create client side applications with in-app payments and much more without worrying about websockets.

For subscriptions/NWC requests, this API accepts a webhook URL to notify about the new events/response event.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.getalby.com/developer-guide/developer-guide/nostr-wallet-connect-api/building-lightning-apps/nwc-http-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
