Get All Webhooks

Programatically retrieve all your Helius webhooks.

Due to response size limitations, we will truncate addresses return to 100 per config.

To get all addresses, use our Get Webhook By ID endpoint.

GET /webhooks

Returns all webhooks.

GEThttps://api.helius.xyz/v0/webhooks
Query parameters
Response

Webhooks for the given API key.

Body
webhookIDstring
walletstring
webhookURLstring
transactionTypesarray of TransactionType (enum)
accountAddressesarray of string
webhookTypestring
authHeaderstring
Request
const response = await fetch('https://api.helius.xyz/v0/webhooks?api-key=text', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "webhookID": "text",
    "wallet": "text",
    "webhookURL": "text",
    "transactionTypes": [
      "UNKNOWN"
    ],
    "accountAddresses": [
      "text"
    ],
    "webhookType": "text",
    "authHeader": "text"
  }
]

Example

const getWebhooks = async () => {
    try {
      const response = await fetch(
        "https://api.helius.xyz/v0/webhooks?api-key=<PASTE YOUR API KEY HERE>",
        {
          method: 'GET',
          headers: {
            'Content-Type': 'application/json',
          }
        }
      );
      const data = await response.json();
      console.log({ data });
    } catch (e) {
      console.error("error", e);
    }
  };
getWebhooks();

Last updated