Create a new destination
Authorizations:
x-api-key
Request Body schema: application/json
name required | string |
to_url required | string Webhook URL to send the alert payload |
webhook_type required | string Enum: "POST" "GET" |
service required | string Value: "webhook" |
payload_type required | number Enum: 1 2 3 4 5 6 7 Payload type to send to the webhook |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "My Destination",
- "webhook_type": "POST",
- "service": "webhook",
- "payload_type": 1
}
Create a new notification
Authorizations:
x-api-key
Request Body schema: application/json
name required | string |
expression required | string <base64> Base64 encoded expression |
network required | string Enum: "ethereum-mainnet" "ethereum-goerli" "ethereum-sepolia" "bnbchain-mainnet" "avalanchec-mainnet" "fantom-mainnet" "polygon-mainnet" "celo-mainnet" "gnosis-mainnet" "optimism-mainnet" "nova-mainnet" "arbitrum-mainnet" "bitcoin-mainnet" "doge-mainnet" |
destinationIds required | Array of strings |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "My Notification",
- "expression": "cXVpY2tBbGVydHMgaXMgY29vbAo=",
- "network": "ethereum-mainnet",
- "destinationIds": [
- "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6"
]
}
Update a notification
Authorizations:
x-api-key
path Parameters
id required | string |
Request Body schema: application/json
name | string |
expression | string <base64> Base64 encoded expression |
network | string Enum: "ethereum-mainnet" "ethereum-goerli" "ethereum-sepolia" "bnbchain-mainnet" "avalanchec-mainnet" "fantom-mainnet" "polygon-mainnet" "celo-mainnet" "gnosis-mainnet" "optimism-mainnet" "nova-mainnet" "arbitrum-mainnet" "bitcoin-mainnet" "doge-mainnet" |
destinationIds | Array of strings Destination IDs |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "My Notification",
- "expression": "cXVpY2tBbGVydHMgaXMgY29vbAo=",
- "network": "ethereum-mainnet",
- "destinationIds": [
- "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6"
]
}
Validate expression for a notification
Authorizations:
x-api-key
Request Body schema: application/json
expression required | string <base64> Base64 encoded expression |
network required | string Enum: "ethereum-mainnet" "ethereum-goerli" "ethereum-sepolia" "bnbchain-mainnet" "avalanchec-mainnet" "fantom-mainnet" "polygon-mainnet" "celo-mainnet" "gnosis-mainnet" "optimism-mainnet" "nova-mainnet" "arbitrum-mainnet" "bitcoin-mainnet" "doge-mainnet" |
Responses
Request samples
- Payload
Content type
application/json
{- "expression": "cXVpY2tBbGVydHMgaXMgY29vbAo=",
- "network": "ethereum-mainnet"
}
Backtest expression for a notification
Authorizations:
x-api-key
Request Body schema: application/json
expression required | string <base64> Base64 encoded expression |
network required | string Enum: "ethereum-mainnet" "ethereum-goerli" "ethereum-sepolia" "bnbchain-mainnet" "avalanchec-mainnet" "fantom-mainnet" "polygon-mainnet" "celo-mainnet" "gnosis-mainnet" "optimism-mainnet" "nova-mainnet" "arbitrum-mainnet" "bitcoin-mainnet" "doge-mainnet" |
block_number required | number Block number to backtest |
backtest_count required | number <= 20 Number of blocks to backtest |
Responses
Request samples
- Payload
Content type
application/json
{- "expression": "cXVpY2tBbGVydHMgaXMgY29vbAo=",
- "network": "ethereum-mainnet",
- "block_number": 16735528,
- "backtest_count": 5
}