Skip to main content
POST

Authorizations

X-Access-Key
string
header
required

An API key is a token that a client provides when making API calls. Send it as the X-Access-Key request header on any endpoint:

Learn how to generate API access tokens at Tenderly Docs.

Path Parameters

accountSlug
string
required

Account slug of the user

projectSlug
string
required

Project slug of the account

Body

application/json

Create alert payload

name
string
required

A name of the alert.

Example:

"Failed transaction in Contract XYZ"

simple_type
enum<string>
required

Alert type.

Available options:
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
Example:

"failed_tx"

expressions
expressions · object[]
required

List of conditions that trigger the alert when met

Defines a specific condition to monitor on the blockchain

Example:
delivery_channels
delivery_channels · object[]
required

List of notification channels where alerts will be sent

Example:
description
string

Alert description.

Example:

"This alert tracks failed transactions on Mainnet"

color
enum<string>

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
Available options:
#eeeeee,
#34ace0,
#ffda79,
#ff5252,
#33d9b2
Example:

"#eeeeee"

enabled
boolean

Whether the alert is currently active and monitoring

Example:

true

Response

A successful response.

Extended alert information returned by the API

alert
alert · object
required

Alert object containing all details of the created alert