Webhook

@Serializable
data class Webhook(val webhookId: String, val url: String, val events: List<String> = emptyList(), val updatedAt: Instant, val createdAt: Instant)

Represents a webhook subscription with its target URL and subscribed events.

Constructors

Link copied to clipboard
constructor(webhookId: String, url: String, events: List<String> = emptyList(), updatedAt: Instant, createdAt: Instant)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Instant
Link copied to clipboard
val url: String
Link copied to clipboard
@SerialName(value = "webhook_id")
val webhookId: String