cURL
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}"
Create a new webhook right from the API and see it active right away!
200
The response is of type object.
object
Was this page helpful?