POST
/
alerts
/
external_customer_id
/
{external_customer_id}

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Path Parameters

external_customer_id
string | null
required

Body

application/json
currency
string
required

The case sensitive currency or custom pricing unit to use for this alert.

type
enum<string>
required

The type of alert to create. This must be a valid alert type.

Available options:
usage_exceeded,
cost_exceeded,
credit_balance_depleted,
credit_balance_dropped,
credit_balance_recovered
thresholds
object[] | null

The thresholds that define the values at which the alert will be triggered.

Response

201 - application/json

Alerts within Orb monitor spending, usage, or credit balance and trigger webhooks when a threshold is exceeded.

Alerts created through the API can be scoped to either customers or subscriptions.

created_at
string
required

The creation time of the resource in Orb.

currency
string | null
required

The name of the currency the credit balance or invoice cost is denominated in.

customer
object | null
required

The customer the alert applies to.

enabled
boolean
required

Whether the alert is enabled or disabled.

id
string
required

Also referred to as alert_id in this documentation.

metric
object | null
required

The metric the alert applies to.

plan
object | null
required

The plan the alert applies to.

subscription
object | null
required

The subscription the alert applies to.

thresholds
object[] | null
required

The thresholds that define the conditions under which the alert will be triggered.

type
enum<string>
required

The type of alert. This must be a valid alert type.

Available options:
usage_exceeded,
cost_exceeded,
credit_balance_depleted,
credit_balance_dropped,
credit_balance_recovered