WebhookResource

Provides operations for managing webhooks: list, create, get, update, and delete.

Functions

Link copied to clipboard
suspend fun create(block: CreateWebhookBuilder.() -> Unit): Webhook

Creates a new webhook.

Link copied to clipboard
suspend fun delete(webhookId: String)

Deletes a webhook by ID.

Link copied to clipboard
suspend fun get(webhookId: String): Webhook

Retrieves a webhook by ID.

Link copied to clipboard
suspend fun list(block: ListWebhooksBuilder.() -> Unit = {}): WebhookList

Lists webhooks with optional pagination.

Link copied to clipboard
suspend fun update(webhookId: String, block: UpdateWebhookBuilder.() -> Unit): Webhook

Updates a webhook by ID.