Skip to main content
lago_id
string<uuid>
required

Unique identifier of the alert, created by Lago.

Example:

"1a901a90-1a90-1a90-1a90-1a901a901a90"

lago_organization_id
string<uuid>
required

Unique identifier of the organization, created by Lago.

Example:

"1a901a90-1a90-1a90-1a90-1a901a901a90"

subscription_external_id
string
required

The subscription external unique identifier (provided by your own application).

Example:

"sub_1234567890"

customer_external_id
string
required

The customer external unique identifier (provided by your own application).

Example:

"cus_0987654321"

billable_metric
object
required

The billable metric associated with the alert. Only for alerts based on a billable metric.

alert_type
enum<string>
required

The type of alert.

Available options:
current_usage_amount,
billable_metric_current_usage_amount,
billable_metric_current_usage_units,
lifetime_usage_amount
Example:

"billable_metric_current_usage_amount"

code
string
required

Unique code used to identify the alert.

Example:

"storage_threshold_alert"

name
string | null
required

The name of the alert.

Example:

"Storage Usage Alert"

previous_value
number
required

When the system checked if this alert should be triggered, this value was retrieved and checked against the thresholds.

Example:

1000

last_processed_at
string<date-time> | null
required

The date and time in UTC (ISO 8601) when the system checked if this alert should be triggered. Null until it's processed for the first time.

Example:

"2025-05-19T10:04:21Z"

thresholds
object[]
required

Array of thresholds associated with the alert.

created_at
string<date-time>
required

The date and time in UTC (ISO 8601) when the alert was created.

Example:

"2025-03-20T10:00:00Z"

I