POST
/
v1
/
webhooks:generateOrRotateSharedSecret
JavaScript
import { Avalanche } from "@avalanche-sdk/chainkit";

const avalanche = new Avalanche();

async function run() {
  const result = await avalanche.webhooks.generateOrRotateSharedSecret();

  console.log(result);
}

run();
{
  "secret": "<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/.

Response

201
application/json

Successful response

The response is of type object.