POST
/
webhooks
curl --request POST \
  --url https://app.activecalculator.com/api/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'x-ac-api-key: <api-key>' \
  --data '{
  "url": "<string>",
  "name": "<string>",
  "source": "user",
  "triggers": [
    "newSubmission"
  ],
  "calculators": [
    "<string>"
  ]
}'
"{\n  \"data\": {\n    \"id\": \"webhook123\",\n    \"name\": \"Example Webhook\",\n    \"createdAt\": \"2024-01-15T10:30:00.000Z\",\n    \"updatedAt\": \"2024-01-15T11:45:00.000Z\",\n    \"url\": \"https://example.com/webhook\",\n    \"source\": \"user\",\n    \"workspaceId\": \"workspace456\"\n  }\n}"

Authorizations

x-ac-api-key
string
header
required

Body

application/json
url
string
required

The URL where the webhook will send data

triggers
string[]
required

An array of pipeline trigger event types. Currently supported trigger is "newSubmission"

calculators
string[]
required

An array of calculator IDs (CUID2 format)

name
string

A name for the webhook

source
enum<string>
default:user

The source of the webhook

Available options:
user,
zapier,
make,
n8n,
pipedream

Response

200
application/json
200
data
object