List webhooks
curl --request GET \
--url https://api.bigco.ai/api/v1/webhooks \
--header 'x-bigco-hmac-sha256: <api-key>'import requests
url = "https://api.bigco.ai/api/v1/webhooks"
headers = {"x-bigco-hmac-sha256": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-bigco-hmac-sha256': '<api-key>'}};
fetch('https://api.bigco.ai/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://api.bigco.ai/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-bigco-hmac-sha256: <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://api.bigco.ai/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-bigco-hmac-sha256", "<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://api.bigco.ai/api/v1/webhooks")
.header("x-bigco-hmac-sha256", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bigco.ai/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-bigco-hmac-sha256"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"webhooks": [
{
"topic": "user/opt-in",
"address": "https://example.com/webhooks/callback",
"id": "123e4567-e89b-12d3-a456-426614174000",
"date_created": "2024-01-01T12:00:00Z",
"date_last_updated": "2024-01-01T12:00:00Z",
"version": "v1"
}
]
}{
"detail": {
"type": "not_authenticated",
"msg": "HMAC signature verification failed"
}
}{
"detail": {
"type": "UNCAUGHT_ERROR",
"msg": "Internal server error"
}
}Retrieves all webhook subscriptions for your brand.
GET
/
webhooks
List webhooks
curl --request GET \
--url https://api.bigco.ai/api/v1/webhooks \
--header 'x-bigco-hmac-sha256: <api-key>'import requests
url = "https://api.bigco.ai/api/v1/webhooks"
headers = {"x-bigco-hmac-sha256": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-bigco-hmac-sha256': '<api-key>'}};
fetch('https://api.bigco.ai/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://api.bigco.ai/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-bigco-hmac-sha256: <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://api.bigco.ai/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-bigco-hmac-sha256", "<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://api.bigco.ai/api/v1/webhooks")
.header("x-bigco-hmac-sha256", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bigco.ai/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-bigco-hmac-sha256"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"webhooks": [
{
"topic": "user/opt-in",
"address": "https://example.com/webhooks/callback",
"id": "123e4567-e89b-12d3-a456-426614174000",
"date_created": "2024-01-01T12:00:00Z",
"date_last_updated": "2024-01-01T12:00:00Z",
"version": "v1"
}
]
}{
"detail": {
"type": "not_authenticated",
"msg": "HMAC signature verification failed"
}
}{
"detail": {
"type": "UNCAUGHT_ERROR",
"msg": "Internal server error"
}
}Authorizations
Base64-encoded HMAC-SHA256 signature of the request. Every request must also include the x-bigco-hmac-username and x-date headers, and POST/PUT requests must include x-digest. See the Authentication guide for the full signing procedure.
Response
All webhook subscriptions.
Show child attributes
Show child attributes
⌘I