> This page is for version V3 - Beta (default).
> For other versions, use one of these documentation indexes:
> - V3 - Beta (default): https://docs.authlyx.dev/v3/llms.txt
> - V2 - Legacy: https://docs.authlyx.dev/v2/llms.txt
> - V1 - End of support: https://docs.authlyx.dev/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.authlyx.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.authlyx.dev/_mcp/server.

# Send a webhook event

> Send a named event and data through AuthlyX to a configured destination.

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](/guides/quickstart). 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](/sdks/methods/results).

#### C\#

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

#### C++

```cpp
authlyx::json data = {{"message", "User completed setup"}, {"step", 3}};
auto result = app.sendWebhook("setup.completed", data).get();
std::cout << result.message << '\n';
```

#### Python

```python
app.sendWebhook("setup.completed", {"message": "User completed setup", "step": 3}, completed=lambda result: print(result.message))
```

#### JavaScript / Node.js

```javascript
app.sendWebhook("setup.completed", { message: "User completed setup", step: 3 }, result => console.log(result.message));
```

#### TypeScript

```typescript
app.sendWebhook("setup.completed", { message: "User completed setup", step: 3 }, result => console.log(result.message));
```

#### Java

```java
app.sendWebhook("setup.completed", Map.of("message", "User completed setup", "step", 3))
    .thenAccept(result -> System.out.println(result.message()));
```

#### Go

```go
result, err := app.SendWebhook(ctx, "setup.completed", map[string]any{
    "message": "User completed setup",
    "step": 3,
})
```

#### Rust

```rust
let data = serde_json::json!({"message": "User completed setup", "step": 3});
let result = app.sendWebhook("setup.completed", data).await?;
println!("{}", 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.