> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create webhook

> Creates an independent Tally form-response webhook.

`tally.createWebhook` creates an independent Tally form-response webhook.

## Example

```ts automations/tally-create-webhook.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { tally } from "automate.ax/tally"

export default automation("Create webhook", () => {
  onHttpRequest({ scope: "automation" })

  tally.createWebhook({
    formId: "form-id",
    url: "https://example.com/tally",
    eventTypes: ["FORM_RESPONSE"],
    signingSecret: "replace-with-a-secret",
  })
})
```

## Inputs

`formId`, an HTTP or HTTPS `url`, and `eventTypes` are required. Tally currently supports `FORM_RESPONSE`. Optionally pass `signingSecret`, `httpHeaders`, and `externalSubscriber`.

Pass `account` to select a named Tally connection.

## Output

Returns the ID, URL, event types, state, and creation time for the created webhook.

Use `onFormResponse` for an Automate.ax-managed webhook. This action is for an external endpoint you manage.
