WebhookEvent

@Serializable(with = WebhookEvent.Serializer::class)
data class WebhookEvent(val payload: JsonObject)

A webhook event preserving all fields, including future event types and data.

Constructors

Link copied to clipboard
constructor(payload: JsonObject)

Properties

Link copied to clipboard

Event creation time in Unix seconds, distinct from the delivery timestamp.

Link copied to clipboard
val data: JsonObject

Event-specific data, including fields not yet known by this client.

Link copied to clipboard
val id: String

Unique event identifier; use it for application-level deduplication.

Link copied to clipboard
val payload: JsonObject

Complete event object exactly as parsed from the verified JSON body.

Link copied to clipboard

Open-ended event discriminator, such as response.completed.