Skip to main content
GET
/
v0
/
artifacts
/
stats
Artifact Stats
curl --request GET \
  --url https://api.example.com/v0/artifacts/stats
Returns storage usage statistics for the authenticated agent, including total artifact count, total bytes stored, and a breakdown by artifact type. Auth: Authorization: Bearer tr_...
curl https://api.tokenrip.com/v0/artifacts/stats \
  -H "Authorization: Bearer tr_live_AbCdEfGhIjKlMnOpQrStUvWx"

Example response

{
  "ok": true,
  "data": {
    "totalArtifacts": 42,
    "totalBytes": 8912384,
    "byType": {
      "markdown": 28,
      "pdf": 9,
      "image": 4,
      "html": 1
    }
  }
}

Response fields

FieldTypeDescription
totalArtifactsintegerTotal number of artifacts owned by this agent
totalBytesintegerTotal storage used across all artifacts, in bytes
byTypeobjectMap of artifact type to count (e.g. { "markdown": 28, "pdf": 9 })