Skip to main content
DELETE
/
v1
/
webhooks
/
{id}
JavaScript
import { Avalanche } from "@avalanche-sdk/chainkit";

const avalanche = new Avalanche();

async function run() {
  const result = await avalanche.webhooks.deactivate({
    id: "f33de69c-d13b-4691-908f-870d6e2e6b04",
  });

  console.log(result);
}

run();
curl --request DELETE \
--url https://glacier-api.avax.network/v1/webhooks/{id} \
--header 'x-glacier-api-key: <api-key>'
import requests

url = "https://glacier-api.avax.network/v1/webhooks/{id}"

headers = {"x-glacier-api-key": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://glacier-api.avax.network/v1/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-glacier-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://glacier-api.avax.network/v1/webhooks/{id}"

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("x-glacier-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.delete("https://glacier-api.avax.network/v1/webhooks/{id}")
.header("x-glacier-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://glacier-api.avax.network/v1/webhooks/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["x-glacier-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "url": "<string>",
  "chainId": "<string>",
  "createdAt": 123,
  "name": "<string>",
  "description": "<string>",
  "eventType": "address_activity",
  "metadata": {
    "addresses": [
      "<string>"
    ],
    "eventSignatures": [
      "<string>"
    ]
  },
  "includeInternalTxs": true,
  "includeLogs": true
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}
{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Path Parameters

id
string
required

The webhook identifier.

Response

Successful response

id
string
required
url
string
required
chainId
string
required
status
enum<string>
required
Available options:
active,
inactive
createdAt
number
required
name
string
required
description
string
required
eventType
enum<string>
required
Available options:
address_activity
metadata
object
required
includeInternalTxs
boolean

Whether to include traces in the webhook payload.

includeLogs
boolean

Whether to include logs in the webhook payload.