# Credits

GET `/credits`

This endpoint lets you get the available credits on your account.

**Headers**

| Header          | Type   | Description   |
| --------------- | ------ | ------------- |
| `Authorization` | string | Bearer token. |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "status": "success",
    "credits": 2.95,
    "email": "helloworld@gmail.com"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "status": "error",
  "message": "User not found"
}
```

{% endtab %}

{% tab title="500" %}

```json
{
  "status": "error",
  "message": "Failed to fetch credits"
}
```

{% endtab %}
{% endtabs %}
