> For the complete documentation index, see [llms.txt](https://developer.leaderos.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.leaderos.net/credits/add-credits.md).

# Add Credits

<mark style="color:green;">`POST`</mark> `https://yourwebsite.com/api/credits/add`

#### Request Body

| Name                                               | Type    | Description |
| -------------------------------------------------- | ------- | ----------- |
| target\_username<mark style="color:red;">\*</mark> | string  |             |
| amount<mark style="color:red;">\*</mark>           | decimal |             |

{% tabs %}
{% tab title="200: OK Successful login" %}

```json
{
    "current_credits": "10.25 USD",
    "current_raw_credits": 10.25,
    "currency": "USD"
}
```

{% endtab %}

{% tab title="404: Not Found User not found" %}

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

{% endtab %}

{% tab title="400: Bad Request Invalid amount" %}

```json
{
    "status": false,
    "error": "INVALID_AMOUNT",
    "message": "You can't send less than 0.01!"
}
```

{% endtab %}
{% endtabs %}
