cURL
curl --request GET \ --url https://api.gptmaker.ai/v2/agent/{agentId}/credits-spent \ --header 'Authorization: Bearer <token>'
{ "total": 123, "data": [ { "credits": 123, "year": 123, "month": 123, "day": 123, "model": "<string>" } ] }
Retorna o consumo de créditos por agente dentro de um período
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID do agente
Ano para filtrar
Mês para filtrar
Dia para filtrar
Consumo de créditos por agente
Total de créditos gastos
Show child attributes