createWebhooks registers one or more webhook subscriptions in a single call. Each top-level input field corresponds to a webhook category; you can mix and match in the same request, and the response groups the created webhooks by category in matching arrays.
Returns
CreateWebhooksOutput!
Created webhooks, grouped by category. See CreateWebhooksOutput.
Arguments
CreateWebhooksInput!
required
Bundle of category-specific webhook inputs. See CreateWebhooksInput.
Validation
securityTokenis required on every webhook input.- At least one network must be supplied via
conditions.networkId. Token price and market cap webhooks accept a single ID via{ eq: <id> }; pair and transfer webhooks accept multiple via{ oneOf: [<id>, ...] }. - When
bucketKeyis provided, bothbucketIdandbucketSortKeyare required. deduplicate: truereturns the existing webhook (instead of creating a duplicate) when an active webhook with identicalcallbackUrl,conditions,publishingType, andalertRecurrencealready exists for the calling API key.
Example
Variables