For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Credits

POST https://yourwebsite.com/api/credits/<user>/set

Request Body

Name
Type
Description

target_username*

string

amount*

decimal

{
    "current_credits": "10.25 USD",
    "current_raw_credits": 10.25,
    "currency": "USD"
}
{
    "status": false,
    "error": "USER_NOT_FOUND",
    "message": "User not found!"
}
{
    "status": false,
    "error": "INVALID_AMOUNT",
    "message": "You can't set less than 0!"
}

Last updated