---
title: Compte
project: Total API
version: 2026
section: reference
language: fr
license: 
url: https://totaljs.es/docs/fr/total-api/2026/reference/account/
updated: 2026-11-20T06:51:47.968Z
---

# Compte

> Vérifie les crédits de ton token.

Chaque service est une requête `POST` avec ton token. Consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/) et [Appeler Total API en HTTP](../../guides/call-over-http/).

## API

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

Type: `rest`

Renvoie les crédits qui restent sur ton token.

Returns: `Object` Un objet avec les crédits dans `credits`.

Il est gratuit.

Example: Total.js
```js
var response = await API('TAPI', 'check').promise();
console.log(response.credits);
```

Example: REST
```bash
curl -X POST https://api.totaljs.com/check/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN"
```

Example: Réponse
```json
{ "credits": 34.49 }
```
