📩Subscribe to Events
POST https://api.getalby.com/nwc/subscriptions
Notifies about new events matching the filter provided via webhooks
Request Body
Name
Type
Description
relayUrl
string
If no relay is provided, it uses the default relay (wss://relay.getalby.com/v1)
webhookUrl*
string
Webhook URL to publish events
Filter Example
{
"ids": ["id1", "id2"],
"kinds": [1,2],
"authors": ["author1", "author2"],
"since": 1721212121,
"until": 1721212121,
"limit": 10,
"search": "example search",
"#tag1": ["value1", "value2"],
"#tag2": ["value3"],
"#tag3": ["value4", "value5", "value6"],
}
// Source: https://pkg.go.dev/github.com/nbd-wtf/[email protected]#FilterResponse
Response to Webhook URL
Last updated
Was this helpful?

