# Subscribe to NWC Notifications

<mark style="color:blue;">`POST`</mark> `https://api.getalby.com/nwc/nip47/notifications`

Notifies about `23196` kind events (NWC notifications) of the connection pubkey from the wallet service.

#### Request Body

<table><thead><tr><th width="157">Name</th><th width="138">Type</th><th>Description</th></tr></thead><tbody><tr><td>relayUrl</td><td>string</td><td>If no relay is provided, it uses the default relay (wss://relay.getalby.com/v1)</td></tr><tr><td>webhookUrl<mark style="color:red;">*</mark></td><td>string</td><td>Webhook URL to publish events</td></tr><tr><td>walletPubkey<mark style="color:red;">*</mark></td><td>string</td><td>Pubkey of the NWC Wallet Provider</td></tr><tr><td>connectionPubkey<mark style="color:red;">*</mark></td><td>string</td><td>Public key of the user (derived from secret in NWC connection string)</td></tr></tbody></table>

#### Response

{% tabs %}
{% tab title="200: OK" %}

```javascript
{
  "subscription_id": "f370d1fc-x0x0-x0x0-x0x0-8f68fa12f32c",
  "webhookUrl": "https://your.webhook.url"
}
```

{% endtab %}
{% endtabs %}

#### Response to Webhook URL

{% tabs %}
{% tab title="200: OK" %}

```javascript
{
  "id": "a16ycf4a01bcxx........xxxxx",
  "pubkey": "a16y69effexxxx........xxxxx",
  "created_at": 1709033612,
  "kind": 23196,
  "tags": [
      [
          "p",
          "f490f5xxxxx........xxxxx"
      ],
      [
          "e",
          "a41aefxxxxx........xxxxx"
      ]
  ],
  "content": "<encrypted content>",
  "sig": "<signature>"
}
```

{% endtab %}
{% endtabs %}
