Skip to content
Alchemy Logo

Create a variable

POST
https://dashboard.alchemy.com/api/graphql/variables/{var_name}

Creates a GraphQL webhook variable, or adds items to it if it exists. Items that the variable already has are not added again. The JSON body takes items: at most 10,000 addresses, or 32-byte hex values such as log topics. A GraphQL webhook query reads the variable as $var_name. The name has at most 64 letters, numbers, and underscores, and starts with a letter or an underscore.

Headers

stringrequired

Your team's auth token. Find it on the Webhooks page of the Alchemy dashboard.

Path Parameters

stringrequired

The variable name.

Request Body

Responses

201

Created the variable or added the items

Construct a type with a set of properties K of type T

400

Invalid input

401

Requires authentication

503

Variable service unavailable

Was this page helpful?