HubSpot webhook subscriptions batch
curl --request POST \
--url https://api.eventlink.co/api/v1/integrations/hubspot/webhooks \
--header 'Content-Type: application/json' \
--data '
[
{
"portalId": 123,
"eventId": 123,
"subscriptionId": 123,
"appId": 123,
"occurredAt": 123,
"subscriptionType": "<string>",
"attemptNumber": 123,
"objectId": 123
}
]
'import requests
url = "https://api.eventlink.co/api/v1/integrations/hubspot/webhooks"
payload = [
{
"portalId": 123,
"eventId": 123,
"subscriptionId": 123,
"appId": 123,
"occurredAt": 123,
"subscriptionType": "<string>",
"attemptNumber": 123,
"objectId": 123
}
]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([
{
portalId: 123,
eventId: 123,
subscriptionId: 123,
appId: 123,
occurredAt: 123,
subscriptionType: '<string>',
attemptNumber: 123,
objectId: 123
}
])
};
fetch('https://api.eventlink.co/api/v1/integrations/hubspot/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.eventlink.co/api/v1/integrations/hubspot/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'portalId' => 123,
'eventId' => 123,
'subscriptionId' => 123,
'appId' => 123,
'occurredAt' => 123,
'subscriptionType' => '<string>',
'attemptNumber' => 123,
'objectId' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eventlink.co/api/v1/integrations/hubspot/webhooks"
payload := strings.NewReader("[\n {\n \"portalId\": 123,\n \"eventId\": 123,\n \"subscriptionId\": 123,\n \"appId\": 123,\n \"occurredAt\": 123,\n \"subscriptionType\": \"<string>\",\n \"attemptNumber\": 123,\n \"objectId\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eventlink.co/api/v1/integrations/hubspot/webhooks")
.header("Content-Type", "application/json")
.body("[\n {\n \"portalId\": 123,\n \"eventId\": 123,\n \"subscriptionId\": 123,\n \"appId\": 123,\n \"occurredAt\": 123,\n \"subscriptionType\": \"<string>\",\n \"attemptNumber\": 123,\n \"objectId\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eventlink.co/api/v1/integrations/hubspot/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"portalId\": 123,\n \"eventId\": 123,\n \"subscriptionId\": 123,\n \"appId\": 123,\n \"occurredAt\": 123,\n \"subscriptionType\": \"<string>\",\n \"attemptNumber\": 123,\n \"objectId\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"ok": true,
"received": 123,
"dispatched": 123,
"skipped": 123
}{
"error": "<string>",
"status": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"error": "<string>",
"status": 123,
"code": "<string>",
"retryAfterSeconds": 123
}HubSpot
HubSpot webhook subscriptions batch
Receives HubSpot webhooks-API subscription batches (JSON array of events). Verifies the v1 webhook signature (X-HubSpot-Signature = sha256(clientSecret + rawBody)), then triggers the shared per-workspace HubSpot registrations pull for each distinct portal. Unknown portals are acknowledged and skipped.
POST
/
api
/
v1
/
integrations
/
hubspot
/
webhooks
HubSpot webhook subscriptions batch
curl --request POST \
--url https://api.eventlink.co/api/v1/integrations/hubspot/webhooks \
--header 'Content-Type: application/json' \
--data '
[
{
"portalId": 123,
"eventId": 123,
"subscriptionId": 123,
"appId": 123,
"occurredAt": 123,
"subscriptionType": "<string>",
"attemptNumber": 123,
"objectId": 123
}
]
'import requests
url = "https://api.eventlink.co/api/v1/integrations/hubspot/webhooks"
payload = [
{
"portalId": 123,
"eventId": 123,
"subscriptionId": 123,
"appId": 123,
"occurredAt": 123,
"subscriptionType": "<string>",
"attemptNumber": 123,
"objectId": 123
}
]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([
{
portalId: 123,
eventId: 123,
subscriptionId: 123,
appId: 123,
occurredAt: 123,
subscriptionType: '<string>',
attemptNumber: 123,
objectId: 123
}
])
};
fetch('https://api.eventlink.co/api/v1/integrations/hubspot/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.eventlink.co/api/v1/integrations/hubspot/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'portalId' => 123,
'eventId' => 123,
'subscriptionId' => 123,
'appId' => 123,
'occurredAt' => 123,
'subscriptionType' => '<string>',
'attemptNumber' => 123,
'objectId' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eventlink.co/api/v1/integrations/hubspot/webhooks"
payload := strings.NewReader("[\n {\n \"portalId\": 123,\n \"eventId\": 123,\n \"subscriptionId\": 123,\n \"appId\": 123,\n \"occurredAt\": 123,\n \"subscriptionType\": \"<string>\",\n \"attemptNumber\": 123,\n \"objectId\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eventlink.co/api/v1/integrations/hubspot/webhooks")
.header("Content-Type", "application/json")
.body("[\n {\n \"portalId\": 123,\n \"eventId\": 123,\n \"subscriptionId\": 123,\n \"appId\": 123,\n \"occurredAt\": 123,\n \"subscriptionType\": \"<string>\",\n \"attemptNumber\": 123,\n \"objectId\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eventlink.co/api/v1/integrations/hubspot/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"portalId\": 123,\n \"eventId\": 123,\n \"subscriptionId\": 123,\n \"appId\": 123,\n \"occurredAt\": 123,\n \"subscriptionType\": \"<string>\",\n \"attemptNumber\": 123,\n \"objectId\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"ok": true,
"received": 123,
"dispatched": 123,
"skipped": 123
}{
"error": "<string>",
"status": 123,
"code": "<string>",
"retryAfterSeconds": 123
}{
"error": "<string>",
"status": 123,
"code": "<string>",
"retryAfterSeconds": 123
}Body
application/json