Patch webhook
curl --request PATCH \
--url https://api.instantly.ai/api/v2/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign": "01a207a7-a641-7a6f-9336-42fdd7cfa165",
"name": "Zapier Positive Replies",
"target_hook_url": "https://webhook.site/unique-url",
"event_type": "email_sent",
"custom_interest_value": 1,
"headers": {
"Authorization": "Basic dXNlcm5hbWU6cGFzc3dvcmQ="
}
}
'import requests
url = "https://api.instantly.ai/api/v2/webhooks/{id}"
payload = {
"campaign": "01a207a7-a641-7a6f-9336-42fdd7cfa165",
"name": "Zapier Positive Replies",
"target_hook_url": "https://webhook.site/unique-url",
"event_type": "email_sent",
"custom_interest_value": 1,
"headers": { "Authorization": "Basic dXNlcm5hbWU6cGFzc3dvcmQ=" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaign: '01a207a7-a641-7a6f-9336-42fdd7cfa165',
name: 'Zapier Positive Replies',
target_hook_url: 'https://webhook.site/unique-url',
event_type: 'email_sent',
custom_interest_value: 1,
headers: {Authorization: 'Basic dXNlcm5hbWU6cGFzc3dvcmQ='}
})
};
fetch('https://api.instantly.ai/api/v2/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.instantly.ai/api/v2/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"campaign\": \"01a207a7-a641-7a6f-9336-42fdd7cfa165\",\n \"name\": \"Zapier Positive Replies\",\n \"target_hook_url\": \"https://webhook.site/unique-url\",\n \"event_type\": \"email_sent\",\n \"custom_interest_value\": 1,\n \"headers\": {\n \"Authorization\": \"Basic dXNlcm5hbWU6cGFzc3dvcmQ=\"\n }\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'campaign' => '01a207a7-a641-7a6f-9336-42fdd7cfa165',
'name' => 'Zapier Positive Replies',
'target_hook_url' => 'https://webhook.site/unique-url',
'event_type' => 'email_sent',
'custom_interest_value' => 1,
'headers' => [
'Authorization' => 'Basic dXNlcm5hbWU6cGFzc3dvcmQ='
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.instantly.ai/api/v2/webhooks/{id}"
payload := strings.NewReader("{\n \"campaign\": \"01a207a7-a641-7a6f-9336-42fdd7cfa165\",\n \"name\": \"Zapier Positive Replies\",\n \"target_hook_url\": \"https://webhook.site/unique-url\",\n \"event_type\": \"email_sent\",\n \"custom_interest_value\": 1,\n \"headers\": {\n \"Authorization\": \"Basic dXNlcm5hbWU6cGFzc3dvcmQ=\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"id": "01a207a7-a641-7a6f-9336-42fbaa06d56f",
"organization": "01a207a7-a641-7a6f-9336-42fcaf9f7bd9",
"target_hook_url": "https://webhook.site/unique-url",
"timestamp_created": "2026-11-23T09:05:57.313Z",
"campaign": "01a207a7-a641-7a6f-9336-42fdd7cfa165",
"name": "Zapier Positive Replies",
"event_type": "email_sent",
"custom_interest_value": 1,
"headers": {
"Authorization": "Basic dXNlcm5hbWU6cGFzc3dvcmQ="
},
"status": 1,
"timestamp_error": "2026-11-23T09:05:57.313Z"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}Webhook
Patch webhook
Requires one of the following scopes: webhooks:update, webhooks:all, all:update, all:all
PATCH
/
api
/
v2
/
webhooks
/
{id}
Patch webhook
curl --request PATCH \
--url https://api.instantly.ai/api/v2/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign": "01a207a7-a641-7a6f-9336-42fdd7cfa165",
"name": "Zapier Positive Replies",
"target_hook_url": "https://webhook.site/unique-url",
"event_type": "email_sent",
"custom_interest_value": 1,
"headers": {
"Authorization": "Basic dXNlcm5hbWU6cGFzc3dvcmQ="
}
}
'import requests
url = "https://api.instantly.ai/api/v2/webhooks/{id}"
payload = {
"campaign": "01a207a7-a641-7a6f-9336-42fdd7cfa165",
"name": "Zapier Positive Replies",
"target_hook_url": "https://webhook.site/unique-url",
"event_type": "email_sent",
"custom_interest_value": 1,
"headers": { "Authorization": "Basic dXNlcm5hbWU6cGFzc3dvcmQ=" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaign: '01a207a7-a641-7a6f-9336-42fdd7cfa165',
name: 'Zapier Positive Replies',
target_hook_url: 'https://webhook.site/unique-url',
event_type: 'email_sent',
custom_interest_value: 1,
headers: {Authorization: 'Basic dXNlcm5hbWU6cGFzc3dvcmQ='}
})
};
fetch('https://api.instantly.ai/api/v2/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.instantly.ai/api/v2/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"campaign\": \"01a207a7-a641-7a6f-9336-42fdd7cfa165\",\n \"name\": \"Zapier Positive Replies\",\n \"target_hook_url\": \"https://webhook.site/unique-url\",\n \"event_type\": \"email_sent\",\n \"custom_interest_value\": 1,\n \"headers\": {\n \"Authorization\": \"Basic dXNlcm5hbWU6cGFzc3dvcmQ=\"\n }\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'campaign' => '01a207a7-a641-7a6f-9336-42fdd7cfa165',
'name' => 'Zapier Positive Replies',
'target_hook_url' => 'https://webhook.site/unique-url',
'event_type' => 'email_sent',
'custom_interest_value' => 1,
'headers' => [
'Authorization' => 'Basic dXNlcm5hbWU6cGFzc3dvcmQ='
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.instantly.ai/api/v2/webhooks/{id}"
payload := strings.NewReader("{\n \"campaign\": \"01a207a7-a641-7a6f-9336-42fdd7cfa165\",\n \"name\": \"Zapier Positive Replies\",\n \"target_hook_url\": \"https://webhook.site/unique-url\",\n \"event_type\": \"email_sent\",\n \"custom_interest_value\": 1,\n \"headers\": {\n \"Authorization\": \"Basic dXNlcm5hbWU6cGFzc3dvcmQ=\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"id": "01a207a7-a641-7a6f-9336-42fbaa06d56f",
"organization": "01a207a7-a641-7a6f-9336-42fcaf9f7bd9",
"target_hook_url": "https://webhook.site/unique-url",
"timestamp_created": "2026-11-23T09:05:57.313Z",
"campaign": "01a207a7-a641-7a6f-9336-42fdd7cfa165",
"name": "Zapier Positive Replies",
"event_type": "email_sent",
"custom_interest_value": 1,
"headers": {
"Authorization": "Basic dXNlcm5hbWU6cGFzc3dvcmQ="
},
"status": 1,
"timestamp_error": "2026-11-23T09:05:57.313Z"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}Authorizations
Path Parameters
Body
application/json
Type of event to trigger the webhook (null for custom label events). Set to "all_events" to subscribe to all events - including custom label events
Available options:
all_events, email_sent, email_opened, email_link_clicked, reply_received, email_bounced, lead_unsubscribed, campaign_completed, account_error, lead_neutral, lead_interested, lead_not_interested, lead_meeting_booked, lead_meeting_completed, lead_closed, lead_out_of_office, lead_wrong_person, lead_no_show, supersearch_enrichment_completed Example:
"email_sent"
Response
The updated Webhook
A webhook subscription for receiving event notifications
Type of event to trigger the webhook (null for custom label events). Set to "all_events" to subscribe to all events - including custom label events
Available options:
all_events, email_sent, email_opened, email_link_clicked, reply_received, email_bounced, lead_unsubscribed, campaign_completed, account_error, lead_neutral, lead_interested, lead_not_interested, lead_meeting_booked, lead_meeting_completed, lead_closed, lead_out_of_office, lead_wrong_person, lead_no_show, supersearch_enrichment_completed Example:
"email_sent"