Create Alert
Create an Alert in a Tenderly project.
Learn more about the different types of Alert triggers.
Authorizations
An API key is a token that a client provides when making API calls. The key can be sent as a request header:
curl 'https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate' \
-H 'X-Access-Key: ${TENDERLY_ACCESS_KEY}' \
...
Learn how to generate API access tokens at Tenderly Docs.
Path Parameters
Account slug of the user
Project slug of the account
Body
Create alert payload
A name of the alert.
"Failed transaction in Contract XYZ"
Alert type.
successful_tx, failed_tx, allowlisted_callers, blocklisted_callers, log_emitted, erc20_transfer_log_emitted, emitted_log_parameter, function_called, called_function_parameter, state_change, eth_balance, tx_value, view_function "failed_tx"
List of conditions that trigger the alert when met
Defines a specific condition to monitor on the blockchain
- Option 1
- Option 2
- Option 3
[
{
"type": "contract_address",
"expression": {
"address": "0x94c87a7b26980ae7aaa361c5c7e03e632ab36e6c"
}
},
{
"type": "network",
"expression": { "network_id": "1" }
},
{
"type": "tx_status",
"expression": { "transaction_success": false }
}
]
List of notification channels where alerts will be sent
[
{
"enabled": true,
"id": "b16b4b75-e034-44c9-a053-f10d769a1d64"
},
{
"enabled": true,
"id": "f48f1f9f-1f74-4849-81cf-fce8bd3746b7"
}
]
Alert description.
"This alert tracks failed transactions on Mainnet"
Hex color indicating the severity of the alert. It can be one of the following severity types:
- Default: #eeeeee
- Info: #34ace0
- Warning: #ffda79
- Danger: #ff5252
- Success: #33d9b2
#eeeeee, #34ace0, #ffda79, #ff5252, #33d9b2 "#eeeeee"
Whether the alert is currently active and monitoring
true
Response
A successful response.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
Extended alert information returned by the API
Alert object containing all details of the created alert