Operations for the Webhooks API.
Summary
Functions
Create a Webhook Endpoint
Delete a Webhook Endpoint
List Webhook Endpoints
Update a Webhook Endpoint
Functions
@spec create_webhook_endpoint(WorkOS.Client.t(), map(), keyword()) :: {:ok, WorkOS.WebhookEndpoint.t()} | {:error, WorkOS.Error.error()}
Create a Webhook Endpoint
Create a new webhook endpoint to receive event notifications.
Parameters
params— request body mapopts— per-request options (seeWorkOS.Client.request/5)
@spec delete_webhook_endpoint(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, term()} | {:error, WorkOS.Error.error()}
Delete a Webhook Endpoint
Delete an existing webhook endpoint.
Parameters
id— Unique identifier of the Webhook Endpoint.opts— per-request options (seeWorkOS.Client.request/5)
@spec list_webhook_endpoints(WorkOS.Client.t(), map(), keyword()) :: {:ok, WorkOS.Page.t(WorkOS.WebhookEndpoint.t())} | {:error, WorkOS.Error.error()}
List Webhook Endpoints
Get a list of all of your existing webhook endpoints.
Parameters
params— query parameters::before,:after_,:limit,:orderopts— per-request options (seeWorkOS.Client.request/5)
@spec update_webhook_endpoint(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.WebhookEndpoint.t()} | {:error, WorkOS.Error.error()}
Update a Webhook Endpoint
Update the properties of an existing webhook endpoint.
Parameters
id— Unique identifier of the Webhook Endpoint.params— request body mapopts— per-request options (seeWorkOS.Client.request/5)