{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pageaudit/json-schema/pageaudit-metricas-schema.json",
  "title": "Metricas",
  "description": "7-day panel. `payments` only shows with the operator token and only on Base mainnet.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pageaudit-metrics-api-openapi.yml#/components/schemas/Metricas",
  "type": "object",
  "properties": {
    "app": {
      "type": "string",
      "description": "Product name."
    },
    "today": {
      "type": "string",
      "description": "Reference day (UTC, YYYY-MM-DD)."
    },
    "today_visits": {
      "type": "integer",
      "description": "Visits counted today."
    },
    "today_contacts": {
      "type": "integer",
      "description": "Contact messages received today. Only with `METRICS_TOKEN`: contact does not leave without a token."
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "One record per day of the window, with the counts of each metric."
    },
    "usage": {
      "type": "object",
      "description": "Usage per product resource — here, audits and tabs."
    },
    "accounts": {
      "type": "object",
      "description": "Total guests and accounts."
    },
    "financeiro": {
      "type": "object",
      "description": "Aggregate of the day: `hoje_usd`, `hoje_count`, `rede`. Only with `METRICS_TOKEN`: money does not leave without a token; the full series is `payments`."
    },
    "payments": {
      "type": "object",
      "description": "Finance summary; only with METRICS_TOKEN."
    },
    "achados": {
      "type": [
        "object",
        "null"
      ],
      "description": "Which findings appear across stored audits: `audits` (total) and `por_codigo[]` with `code`, `n`, `audits` and `fracao_audits`. Aggregate, no URL and no owner; 1 h cache. `null` if the database did not answer."
    }
  },
  "required": [
    "app",
    "today",
    "today_visits",
    "days",
    "usage",
    "accounts",
    "achados"
  ]
}