WebhookConfig

@Serializable
data class WebhookConfig(val uris: List<String>? = null, val userMetadata: Map<String, JsonElement>? = null)

Configuration for webhook notifications.

Used to configure webhook endpoints that will receive notifications when long-running operations (e.g., batch jobs, video generation) complete.

Constructors

Link copied to clipboard
constructor(uris: List<String>? = null, userMetadata: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
val uris: List<String>? = null

The webhook URIs to receive notifications. If set, these webhook URIs will be used instead of the registered webhooks.

Link copied to clipboard
val userMetadata: Map<String, JsonElement>? = null

User metadata that will be included in each webhook event notification. Use this to attach custom key-value data to correlate webhook events with your internal systems.