POST
/
v3
/
agents
/
{agent_id}
/
usage
curl --request POST \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v3/agents/{agent_id}/usage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "range": {
    "start": 123,
    "end": 123
  }
}'
{
  "creditsConsumed": 123,
  "metrics": "<any>"
}

Authorizations

Authorization
string
header
required

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

Body

application/json
range
object

Response

200 - application/json
Successful response
creditsConsumed
number
required
metrics
any
{key}
any