Spanish Total.js
English
Documentation For AI agents
Contents

Account

Check the credits of your token.

.md Website
On this page

Every service is a POST request with your token. See Call Total API from Total.js and Call Total API over HTTP.

API

rest

POST https://api.totaljs.com/check/

Returns the credits that remain on your token.

Returns Object An object with the credits in credits.

It is free.

Total.js
var response = await API('TAPI', 'check').promise();
console.log(response.credits);
REST
curl -X POST https://api.totaljs.com/check/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN"
Response
{ "credits": 34.49 }
Made in Europe