Skip to navigation

Send a webhook event

Use Send Webhook when your client needs to pass a text or structured data event to a webhook destination configured by the developer. AuthlyX forwards the data so the destination URL and signing secret stay on the server.

SDK version: V3 Beta. These examples use the current downloads. V1 and V2 use different APIs; choose them in the version selector.

Each example assumes app is the AuthlyX client you created in Connect your app. When a method takes a callback, AuthlyX calls it after the reply arrives. A name such as result inside that callback is created there; you do not declare it at the top of your file. For C++ futures, Python or JavaScript await, Java futures, Go errors and Rust ?, read Results.

var data = new JObject
{
["message"] = "User completed setup",
["step"] = 3
};
app.sendWebhook("setup.completed", data, result => Console.WriteLine(result.message));

The developer chooses which events a destination accepts in the dashboard. The SDK does not receive the destination URL or its signing secret. Do not send files through this method.