Skip to main content
PUT
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Headers

Idempotency-Key
string

Optional. A retry with the same key returns the first answer with idempotentReplay: true.

Required string length: 8 - 255

Body

application/json

The setting.

enabled
boolean
required

On or off.

planCode
enum<string>

The plan it buys. Leave out to keep the current one.

Available options:
SILVER,
GOLD,
DIAMOND
thresholdMinutes
integer

Buy when the balance falls to this many minutes. Managed agencies only.

Required range: 10 <= x <= 200

Response

The auto-recharge setting as it now stands.

success
boolean
required
Example:

true

data
object
required
idempotentReplay
boolean

Present, and true, when this answer is a replay of an earlier request with the same Idempotency-Key.