Skip to content

Resume a paused rule

POST
/api/v1/automations/{id}/resume
curl --request POST \
--url https://trongas.ai/api/v1/automations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resume \
--header 'X-Api-Key: <X-Api-Key>'

Required API-key scope: purchase

Put a paused rule back to work. Requires enough free balance for one more firing of this rule (one delivery, refill or renewal), otherwise 402 wallet.insufficient_balance and the rule stays Paused. Free balance is your TRX balance minus what your other active rules already hold for their next firing, so one balance can’t fund several new rules at once. If we can’t confirm the restart right now you get 502 provider.upstream_error and the rule stays Paused — retry. 503 pricing.unavailable if the price of one firing is temporarily unknown — the rule stays Paused, retry shortly.

id
required
string format: uuid

Resource id (UUID).

OK

object
id
required
string format: uuid
type
required
string
resource
required
string
targetAddress
required
string
minimal
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
volume
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
duration
required
null | string
spentTrx
required
string
status
required
string
pauseReason
required
null | string
autoResume
required
boolean
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Payment Required

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Machine-readable error code, e.g. wallet.insufficient_balance. Branch on this, not on title. Always present: validation_failed for request validation (400, with per-field errors), unauthorized for 401, domain codes otherwise.

null | string

Bad Gateway

Service Unavailable