WebhookEndpoint

@Serializable
data class WebhookEndpoint(val id: String, val createdAt: Long, val eventTypes: List<String>, val name: String, val url: String, val signingSecretHint: String? = null, val updatedAt: Long? = null, val signingSecret: String? = null, val objectType: String = "webhook_endpoint")

Webhook endpoint configuration and optional creation/rotation signing secret.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Long, eventTypes: List<String>, name: String, url: String, signingSecretHint: String? = null, updatedAt: Long? = null, signingSecret: String? = null, objectType: String = "webhook_endpoint")

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long

Creation time in Unix seconds.

Link copied to clipboard
@SerialName(value = "event_types")
val eventTypes: List<String>

Subscribed event types.

Link copied to clipboard
@SerialName(value = "id")
val id: String

Endpoint identifier.

Link copied to clipboard
@SerialName(value = "name")
val name: String

Human-readable endpoint name.

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

API object discriminator.

Link copied to clipboard
@SerialName(value = "signing_secret")
val signingSecret: String? = null

Signing key, returned only on creation or rotation. Treat as a secret.

Link copied to clipboard
@SerialName(value = "signing_secret_hint")
val signingSecretHint: String? = null

Masked signing key hint.

Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Long? = null

Last configuration or signing-key update time.

Link copied to clipboard
@SerialName(value = "url")
val url: String

HTTPS receiver URL.

Functions

Link copied to clipboard
open override fun toString(): String

Omits signing material from diagnostic strings.