Table of Contents

Class CreateWebhookRequest

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The request body of POST /webhooks (python-genai WebhookInput).

public class CreateWebhookRequest
Inheritance
CreateWebhookRequest
Inherited Members
Extension Methods

Properties

Name

Optional. The user-provided name of the webhook.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

SubscribedEvents

Required. The events that the webhook is subscribed to (see WebhookEvents).

[JsonPropertyName("subscribed_events")]
public List<string>? SubscribedEvents { get; set; }

Property Value

List<string>

Uri

Required. The URI to which webhook events will be sent.

[JsonPropertyName("uri")]
public string? Uri { get; set; }

Property Value

string