client.webhooks
client.webhooks — the webhooks operations.
On AsyncKindgi every method is the same, awaited.
client.webhooks.list()
Section titled “client.webhooks.list()”list( *, limit: int | None = None, cursor: str | None = None, status: Literal['active', 'paused'] | None = None, timeout: float | None = None,) -> WebhookTriggerCollectionPageList webhook triggers. GET /v1/webhooks
client.webhooks.register()
Section titled “client.webhooks.register()”register( *, idempotency_key: str | None = None, timeout: float | None = None, **fields: Any,) -> WebhookTriggerRecordRegister a webhook trigger. POST /v1/webhooks
Registers a kind=webhook trigger. The route mints webhookId (a random UUID). Caller must have written the plaintext HMAC secret to /v1/secrets first and passes the resulting name as hmacSecretName — the trigger never stores the plaintext. Rotation flows through POST /v1/secrets/:name/rotate.
client.webhooks.get()
Section titled “client.webhooks.get()”get(*, timeout: float | None = None) -> WebhookTriggerRecordFetch a webhook trigger. GET /v1/webhooks/{triggerId}
client.webhooks.update()
Section titled “client.webhooks.update()”update( *, idempotency_key: str | None = None, timeout: float | None = None, **fields: Any,) -> WebhookTriggerRecordUpdate a webhook trigger. PATCH /v1/webhooks/{triggerId}
HMAC secret rotation is NOT here — rotate via POST /v1/secrets/:name/rotate on the referenced secret.
client.webhooks.pause()
Section titled “client.webhooks.pause()”pause( *, idempotency_key: str | None = None, timeout: float | None = None,) -> WebhookTriggerRecordPause a webhook trigger. POST /v1/webhooks/{triggerId}/pause
client.webhooks.resume()
Section titled “client.webhooks.resume()”resume( *, idempotency_key: str | None = None, timeout: float | None = None,) -> WebhookTriggerRecordResume a webhook trigger. POST /v1/webhooks/{triggerId}/resume
client.webhooks.unregister()
Section titled “client.webhooks.unregister()”unregister( *, idempotency_key: str | None = None, timeout: float | None = None,) -> WebhookTriggerUnregisterResultSoft-delete a webhook trigger (tombstone). POST /v1/webhooks/{triggerId}/unregister