Create an auto-renewal rule (energy)
POST
/api/v1/automations/renewal
const url = 'https://trongas.ai/api/v1/automations/renewal';const options = { method: 'POST', headers: {'X-Api-Key': '<X-Api-Key>', 'Content-Type': 'application/json'}, body: '{"targetAddress":"example","volume":1,"autoResume":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://trongas.ai/api/v1/automations/renewal \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <X-Api-Key>' \ --data '{ "targetAddress": "example", "volume": 1, "autoResume": false }'Required API-key scope: trade
Renew a fixed volume of energy on an address once a day, regardless of how much is left — unlike auto-refill, which reacts to a threshold.
Each renewal is charged to your TRX balance at your price. Creating the rule requires enough balance for at least one renewal, otherwise 402 wallet.insufficient_balance. If the balance can no longer cover the next one the rule is paused; set autoResume to have it come back by itself once you top up.
Energy only.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
targetAddress
required
string
volume
required
integer | string format: int64
autoResume
boolean
object
targetAddress
required
string
volume
required
integer | string format: int64
autoResume
boolean
object
targetAddress
required
string
volume
required
integer | string format: int64
autoResume
boolean
Responses
Section titled “Responses”OK
object
id
required
string format: uuid
type
required
string
resource
required
string
targetAddress
required
string
minimal
required
null | integer | string format: int64
volume
required
null | integer | string format: int64
duration
required
null | string
spentTrx
required
string
status
required
string
pauseReason
required
null | string
autoResume
required
boolean
feeSaverOrderId
required
null | integer | string format: int64
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
object
id
required
string format: uuid
type
required
string
resource
required
string
targetAddress
required
string
minimal
required
null | integer | string format: int64
volume
required
null | integer | string format: int64
duration
required
null | string
spentTrx
required
string
status
required
string
pauseReason
required
null | string
autoResume
required
boolean
feeSaverOrderId
required
null | integer | string format: int64
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "type": "example", "resource": "example", "targetAddress": "example", "minimal": 1, "volume": 1, "duration": "example", "spentTrx": "example", "status": "example", "pauseReason": "example", "autoResume": true, "feeSaverOrderId": 1, "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z"}object
id
required
string format: uuid
type
required
string
resource
required
string
targetAddress
required
string
minimal
required
null | integer | string format: int64
volume
required
null | integer | string format: int64
duration
required
null | string
spentTrx
required
string
status
required
string
pauseReason
required
null | string
autoResume
required
boolean
feeSaverOrderId
required
null | integer | string format: int64
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "type": "example", "resource": "example", "targetAddress": "example", "minimal": 1, "volume": 1, "duration": "example", "spentTrx": "example", "status": "example", "pauseReason": "example", "autoResume": true, "feeSaverOrderId": 1, "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z"}Payment Required
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}