cURL
curl --request GET \ --url https://chat.muffinscorp.com/api/public/user/balance \ --header 'x-api-key: <api-key>'
{ "balance": { "regularBalance": 123, "dailyBalance": 123, "totalBalance": 123, "hasDailyCredit": true, "credits": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "amount": 123, "expiresAt": "2023-11-07T05:31:56Z", "extendedExpiresAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "usedAmount": 123, "type": "<string>" } ], "dailyCredit": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "grantedAmount": 123, "amount": 123, "grantedDate": "2023-12-25", "used": true } }, "success": true, "timestamp": "2023-11-07T05:31:56Z" }
Retorna o saldo atual do usuário autenticado.
API key for authentication
Saldo retornado com sucesso.
Show child attributes
Indica se a requisição foi bem sucedida.
Data e hora da resposta.