Skip to content

Get automation limits and durations

GET
/api/v1/automations/options
curl --request GET \
--url https://trongas.ai/api/v1/automations/options \
--header 'X-Api-Key: <X-Api-Key>'

Allowed durations, the unit one transaction costs, and the min/max volume for auto-refill and auto-renewal rules. Call this instead of hardcoding limits — they change.

OK

object
durations
required
Array<string>
energyUnit
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
minVolume
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
maxVolume
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
renewalMinVolume
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
renewalMaxVolume
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/