Granite Upgrade Activates in00d:00h:00m:00sLearn more

Create a webhook

Create a new webhook.

POST
/v1/webhooks
x-glacier-api-key<token>

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://build.avax.network/console/utilities/data-api-keys.

In: header

eventTypestring
Value in"address_activity"
urlstring
name?string
description?string
chainIdstring
metadata
includeInternalTxs?boolean

Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.

includeLogs?boolean

Whether to include logs in the webhook payload.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://data-api.avax.network/v1/webhooks" \  -H "Content-Type: application/json" \  -d '{    "eventType": "address_activity",    "url": "string",    "chainId": "string",    "metadata": {      "addresses": [        "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"      ]    }  }'
{
  "id": "string",
  "url": "string",
  "chainId": "string",
  "status": "active",
  "createdAt": 0,
  "name": "string",
  "description": "string",
  "eventType": "address_activity",
  "metadata": {
    "eventSignatures": [
      "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"
    ],
    "addresses": [
      "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
    ]
  },
  "includeInternalTxs": true,
  "includeLogs": true
}
{
  "message": "string",
  "statusCode": 400,
  "error": "Bad Request"
}
{
  "message": "string",
  "statusCode": 401,
  "error": "Unauthorized"
}
{
  "message": "string",
  "statusCode": 403,
  "error": "Forbidden"
}
{
  "message": "string",
  "statusCode": 404,
  "error": "Not Found"
}
{
  "message": "string",
  "statusCode": 429,
  "error": "Too Many Requests"
}
{
  "message": "string",
  "statusCode": 500,
  "error": "Internal Server Error"
}
{
  "message": "string",
  "statusCode": 502,
  "error": "Bad Gateway"
}
{
  "message": "string",
  "statusCode": 503,
  "error": "Service Unavailable"
}

Is this guide helpful?