Skip to main content
POST
/
v1.0
/
subscriptions
/
thresholds
/
add
Create Threshold
curl --request POST \
  --url https://api.telegent.com/v1.0/v1.0/subscriptions/thresholds/add \
  --header 'Content-Type: application/json' \
  --data '
{
  "AccountId": "AID-1234567",
  "ThresholdName": "80% Data Alert",
  "ThresholdType": "Data",
  "ThresholdAmount": 80,
  "ThresholdUnit": "MB",
  "ThresholdAction": "Alert"
}
'
{
  "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
  "AccountId": "AID-1234567",
  "ThresholdName": "80% Data Alert",
  "ThresholdType": "Data",
  "ThresholdAmount": 80,
  "ThresholdUnit": "MB",
  "ThresholdAction": "Alert",
  "Active": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.telegent.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

Threshold object

AccountId
string | null

Your Telegent account identifier (AID-). Scopes the threshold to this account.

Example:

"AID-1234567"

ThresholdName
string | null

Human-readable name for this threshold.

Example:

"80% Data Alert"

ThresholdType
string | null

Resource the threshold applies to. Supported values: Data, SMS, Voice.

Example:

"Data"

ThresholdAmount
integer

Numeric limit at which the threshold triggers (e.g. 80 for 80 MB).

Example:

80

ThresholdUnit
string | null

Unit of measurement for ThresholdAmount. Supported values: MB, GB, Count.

Example:

"MB"

ThresholdAction
string | null

Action taken when the threshold is reached. Supported values: Alert, Pause, Restrict.

Example:

"Alert"

Response

Success — returns the new threshold ID and record

The response is of type object.