Guides
Renewing API Account

Renewing API Account

to prevent abusers, every API user is needed to undergo verification process constantly. you can automate the process through api instead of doing it in the support server (opens in a new tab)

ℹ️

Account is still verifiable even when it is.not expired.

When your account is expired/non-active, the API will reject every requests from you. Renewing allows your account to stay active.

Method One

theres a rate limit in method one which you can only trigger this once every 21,600,000 milliseconds.
simply click Renew Account in the panel menu from the support server (opens in a new tab) to renew

Method Two

🍔

This method requires the account to stay active, means that you have to use method one if the account is already expired.

you can automate the time wasting process by making a request to the API.
theres a limit on the endpoint, that is 172,800,000 milliseconds.

Javascript
import { renewAccount } from "shockbs";
 
setInterval(async()=> {
    console.log(await renewAccount());
}, 172860000); // calls /v1/account/renew every 2 days and 1 minute
  • using node-fetch
import fetch from "node-fetch";
 
setInterval(async()=> {
    console.log((await fetch("https://api.shockbs.is-a.dev/v1/account/renew", {
        method: "get",
        headers: {
            Authorization: `Bearer ${process.env.ShockToken}`,
            Accept: "application/json",
            "Content-Type": "application/json",
        }
    })).json());
}, 172860000); // calls /v1/account/renew every 2 days and 1 minute

Renewal Failed Situations