Class Webhook
Represents a webhook endpoint configuration for receiving event callbacks from Vonage APIs.
public class Webhook
- Inheritance
-
Webhook
- Inherited Members
Remarks
Webhooks allow your application to receive real-time notifications about events such as message delivery status, incoming calls, and session changes.
Configure the webhook address and HTTP method to receive callbacks.
Constructors
Webhook()
Initializes a new instance of the Webhook class.
public Webhook()
Webhook(string, HttpMethod)
Initializes a new instance of the Webhook class with the specified address and HTTP method.
public Webhook(string address, HttpMethod method)
Parameters
addressstringThe URL endpoint where webhook events will be sent.
methodHttpMethodThe HTTP method to use when sending webhook events (typically GET or POST).
Examples
var webhook = new Webhook("https://example.com/webhooks/status", HttpMethod.Post);
Properties
Address
Gets or sets the URL endpoint where webhook events will be sent.
[JsonProperty("address", Order = 1)]
public string Address { get; set; }
Property Value
Method
Gets or sets the HTTP method to use when sending webhook events (e.g., "GET" or "POST").
[JsonProperty("http_method", Order = 0)]
public string Method { get; set; }