# Check balance

### Endpoints

{% code title="Request" %}

```
GET https://cubemmo.net/api/check_balance?api_key={api_key}
```

{% endcode %}

### Request Parameters

| Parameters | Value      | Required | Description                                                                               |
| ---------- | ---------- | -------- | ----------------------------------------------------------------------------------------- |
| api\_key   | {api\_key} | yes      | The API key provided to authenticate the user. Replace {apiKey} with your actual API key. |

### Response

The API returns a JSON object with the following structure:

{% code title="Success Response (200)" %}

```json
{
    "success": true,
    "balance": 9000000
}
```

{% endcode %}

{% code title="Internal Server Error (500)" %}

```json
{
    "success": false,
    "message":"Error."
}

```

{% endcode %}

{% code title="Invalid API Key (401)" %}

```json
{
    "success": false,
    "message":"Invalid API Key"
}
```

{% endcode %}
