Preview what one firing costs
GET
/api/v1/automations/preview
const url = 'https://trongas.ai/api/v1/automations/preview?volume=1';const options = {method: 'GET', headers: {'X-Api-Key': '<X-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://trongas.ai/api/v1/automations/preview?volume=1' \ --header 'X-Api-Key: <X-Api-Key>'What a single firing of a rule would cost at your price, in TRX. type is refill (default) or smart. Read-only — charges nothing and creates nothing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”volume
required
integer | string format: int64
Amount of the resource: energy units or bandwidth bytes. Limits: see GET /orders/options (orders) or GET /automations/options (automations).
duration
string
Rental period, e.g. 15m, 1h, 1d. Allowed values per resource: see GET /orders/options.
type
string
Automation kind: refill (default) or smart.
Responses
Section titled “ Responses ”OK
object
priceTrx
required
string
baseCostTrx
required
string
commissionTrx
required
string
object
priceTrx
required
string
baseCostTrx
required
string
commissionTrx
required
string
Examplegenerated
{ "priceTrx": "example", "baseCostTrx": "example", "commissionTrx": "example"}object
priceTrx
required
string
baseCostTrx
required
string
commissionTrx
required
string
Examplegenerated
{ "priceTrx": "example", "baseCostTrx": "example", "commissionTrx": "example"}