Get All Webhooks
curl --request GET \
--url https://app.activecalculator.com/api/v1/webhooks \
--header 'x-ac-api-key: <api-key>'import requests
url = "https://app.activecalculator.com/api/v1/webhooks"
headers = {"x-ac-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-ac-api-key': '<api-key>'}};
fetch('https://app.activecalculator.com/api/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.activecalculator.com/api/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-ac-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.activecalculator.com/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ac-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.activecalculator.com/api/v1/webhooks")
.header("x-ac-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.activecalculator.com/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-ac-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"{\n \"data\": [\n {\n \"id\": \"webhook123\",\n \"name\": \"Webhook One\",\n \"createdAt\": \"2024-01-15T10:30:00.000Z\",\n \"updatedAt\": \"2024-01-15T11:45:00.000Z\",\n \"url\": \"https://example.com/webhook1\",\n \"source\": \"user\",\n \"workspaceId\": \"workspace456\",\n \"calculators\": [\n {\n \"id\": \"calc789\",\n \"name\": \"Calculator A\"\n },\n {\n \"id\": \"calc101\",\n \"name\": \"Calculator B\"\n },\n {\n \"id\": \"calc202\",\n \"name\": \"Calculator C\"\n }\n ],\n \"triggers\": [\n {\n \"type\": \"newSubmission\",\n \"webhookId\": \"webhook123\"\n }\n ]\n },\n {\n \"id\": \"webhook456\",\n \"name\": \"Webhook Two\",\n \"createdAt\": \"2024-01-20T14:20:00.000Z\",\n \"updatedAt\": \"2024-01-20T14:20:00.000Z\",\n \"url\": \"https://example.com/webhook2\",\n \"source\": \"user\",\n \"workspaceId\": \"workspace456\",\n \"calculators\": [\n {\n \"id\": \"calc789\",\n \"name\": \"Calculator A\"\n }\n ],\n \"triggers\": [\n {\n \"type\": \"newSubmission\",\n \"webhookId\": \"webhook456\"\n }\n ]\n }\n ]\n}"""Webhooks
Get All Webhooks
Retrieve a list of all webhooks for the current workspace
GET
/
webhooks
Get All Webhooks
curl --request GET \
--url https://app.activecalculator.com/api/v1/webhooks \
--header 'x-ac-api-key: <api-key>'import requests
url = "https://app.activecalculator.com/api/v1/webhooks"
headers = {"x-ac-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-ac-api-key': '<api-key>'}};
fetch('https://app.activecalculator.com/api/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.activecalculator.com/api/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-ac-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.activecalculator.com/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ac-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.activecalculator.com/api/v1/webhooks")
.header("x-ac-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.activecalculator.com/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-ac-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"{\n \"data\": [\n {\n \"id\": \"webhook123\",\n \"name\": \"Webhook One\",\n \"createdAt\": \"2024-01-15T10:30:00.000Z\",\n \"updatedAt\": \"2024-01-15T11:45:00.000Z\",\n \"url\": \"https://example.com/webhook1\",\n \"source\": \"user\",\n \"workspaceId\": \"workspace456\",\n \"calculators\": [\n {\n \"id\": \"calc789\",\n \"name\": \"Calculator A\"\n },\n {\n \"id\": \"calc101\",\n \"name\": \"Calculator B\"\n },\n {\n \"id\": \"calc202\",\n \"name\": \"Calculator C\"\n }\n ],\n \"triggers\": [\n {\n \"type\": \"newSubmission\",\n \"webhookId\": \"webhook123\"\n }\n ]\n },\n {\n \"id\": \"webhook456\",\n \"name\": \"Webhook Two\",\n \"createdAt\": \"2024-01-20T14:20:00.000Z\",\n \"updatedAt\": \"2024-01-20T14:20:00.000Z\",\n \"url\": \"https://example.com/webhook2\",\n \"source\": \"user\",\n \"workspaceId\": \"workspace456\",\n \"calculators\": [\n {\n \"id\": \"calc789\",\n \"name\": \"Calculator A\"\n }\n ],\n \"triggers\": [\n {\n \"type\": \"newSubmission\",\n \"webhookId\": \"webhook456\"\n }\n ]\n }\n ]\n}"""Was this page helpful?
⌘I