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

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<int32>

Ano para filtrar

month
integer<int32>

Mês para filtrar

day
integer<int32>

Dia para filtrar

Response

Consumo de créditos por agente

total
integer<int32>

Total de créditos gastos

data
object[]