GET
/
v2
/
agent
/
{agentId}
/
credits-spent
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

ID do agente

Query Parameters

year
integer

Ano para filtrar

month
integer

Mês para filtrar

day
integer

Dia para filtrar

Response

200
application/json
Consumo de créditos por agente
total
integer

Total de créditos gastos

data
object[]