Go SDKFeature Clients

Webhooks Client

Accessed via client.Webhooks() on the Hatchet client.

WebhooksClient

WebhooksClient provides methods for managing webhook configurations

Methods:

NameDescription
CreateCreate creates a new webhook configuration.
DeleteDelete removes a webhook configuration.
GetGet retrieves a specific webhook by its name.
ListList retrieves a collection of webhooks based on the provided parameters.
UpdateUpdate updates an existing webhook configuration.

Functions

Create

Create creates a new webhook configuration.

func (c *WebhooksClient) Create(ctx context.Context, opts CreateWebhookOpts) (*rest.V1Webhook, error)

Parameters:

NameType
ctxcontext.Context
optsCreateWebhookOpts

Returns:

Type
*rest.V1Webhook
error

Delete

Delete removes a webhook configuration.

func (c *WebhooksClient) Delete(ctx context.Context, webhookName string) error

Parameters:

NameType
ctxcontext.Context
webhookNamestring

Returns:

Type
error

Get

Get retrieves a specific webhook by its name.

func (c *WebhooksClient) Get(ctx context.Context, webhookName string) (*rest.V1Webhook, error)

Parameters:

NameType
ctxcontext.Context
webhookNamestring

Returns:

Type
*rest.V1Webhook
error

List

List retrieves a collection of webhooks based on the provided parameters.

func (c *WebhooksClient) List(ctx context.Context, opts rest.V1WebhookListParams) (*rest.V1WebhookList, error)

Parameters:

NameType
ctxcontext.Context
optsrest.V1WebhookListParams

Returns:

Type
*rest.V1WebhookList
error

Update

Update updates an existing webhook configuration.

func (c *WebhooksClient) Update(ctx context.Context, webhookName string, opts UpdateWebhookOpts) (*rest.V1Webhook, error)

Parameters:

NameType
ctxcontext.Context
webhookNamestring
optsUpdateWebhookOpts

Returns:

Type
*rest.V1Webhook
error

WebhookAuth

BasicAuth

Fields:

NameTypeDescription
Usernamestring
Passwordstring

APIKeyAuth

Fields:

NameTypeDescription
HeaderNamestring
APIKeystring

HMACAuth

Fields:

NameTypeDescription
SigningSecretstring
SignatureHeaderNamestring
Algorithmrest.V1WebhookHMACAlgorithm
Encodingrest.V1WebhookHMACEncoding

SvixAuth

SvixAuth implements Svix's signature verification protocol for webhooks. Only the signing secret (whsec_...) is required; signature headers and algorithms are configured explicitly to match Svix's expectations.

Fields:

NameTypeDescription
SigningSecretstring

CreateWebhookOpts

Fields:

NameTypeDescription
Namestring
SourceNamerest.V1WebhookSourceName
EventKeyExpressionstring
ScopeExpression*string
StaticPayload*map[string]interface{}
ReturnEventAsResponsePayload*bool
AuthWebhookAuth

UpdateWebhookOpts

Fields:

NameTypeDescription
EventKeyExpression*string
ScopeExpression*string
StaticPayload*map[string]interface{}
ReturnEventAsResponsePayload*bool

Last updated on August 24, 2026

On this page