PontoFato Metrics API

The Metrics API from PontoFato — 1 operation(s) for metrics.

GitHub OpenAPI

Operations 1

1 of 1 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /api/metrics Métricas dos últimos 7 dias para o painel do operador; com o token, inclui os… conformant #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pontofato:pontofato-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pontofato-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pontofato Metrics API
  version: '1.0'
  description: 'Operations tagged Metrics across 2 of this provider''s published API definitions: pontofato-openapi-original.json, pontofato-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://pontofato.com
tags:
- name: Metrics
paths:
  /api/metrics:
    get:
      operationId: get_api_metrics
      summary: Métricas dos últimos 7 dias para o painel do operador; com o token, inclui os…
      description: 'Sem credencial devolve o uso real da API: movimentos de crédito da casa por dia, com `produto` separando o PontoFato dos outros produtos no banco compartilhado. Visitas da interface não são contadas aqui — quem mede visita é o GA e a borda CF. Com `METRICS_TOKEN` em Bearer acrescenta `payments` — só x402 liquidado em Base mainnet.

        Devolve: { app, today, today_visits, today_contacts?, days, usage, accounts, financeiro?, payments? }'
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
        description: '`Bearer <METRICS_TOKEN>` para incluir o bloco financeiro; token errado é 401.'
      responses:
        '200':
          description: '{ app, today, today_visits, today_contacts?, days, usage, accounts, financeiro?, payments? }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Metricas'
        '401':
          description: Token de operador errado.
        '503':
          description: Worker sem METRICS_TOKEN configurado.
      tags:
      - Metrics
    servers:
    - url: https://pontofato.com
components:
  schemas:
    Metricas:
      type: object
      properties:
        app:
          type: string
          description: Nome do produto.
        today:
          type: string
          description: Dia de referência (UTC, AAAA-MM-DD).
        today_visits:
          type: integer
          description: 'Zero neste produto: visitas são medidas pelo GA e pela borda CF.'
        today_contacts:
          type: integer
          description: 'Mensagens de contato hoje. Só com `METRICS_TOKEN`: contato não sai sem token.'
        days:
          type: array
          items:
            type: object
          description: Um registro por dia da janela, com as contagens de cada métrica.
        usage:
          type: object
          description: '`creditos`: movimentos de crédito do PontoFato por dia — chamadas pagas da API, x402 ou crédito, com `produto` filtrando o que é da casa.'
        accounts:
          type: object
          description: 'Sem contas neste produto: objeto vazio.'
        financeiro:
          type: object
          description: 'Agregado do dia: `hoje_usd`, `hoje_count`, `rede`. Só com `METRICS_TOKEN`: dinheiro não sai sem token; a série completa é `payments`.'
        payments:
          type: object
          description: Resumo financeiro do x402; só com METRICS_TOKEN.
      required:
      - app
      - today
      - today_visits
      - days
      - usage
      - accounts
      description: Painel de 7 dias do operador. `payments` só aparece com o token e só em Base mainnet.
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details error response (`application/problem+json`). Includes stable `code` and backward-compatible `error` and `message` fields; route-specific extension fields (such as `accepts`, `allow`, `retry_after`, or `request_id`) may also be present.
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
      properties:
        type:
          type: string
          format: uri
          description: URI identifying the problem type, linking to `/errors#<code>` on this host.
        title:
          type: string
          description: Short human-readable summary of the problem type.
        status:
          type: integer
          description: HTTP status code generated for this occurrence.
        detail:
          type: string
          description: Human-readable explanation specific to this occurrence.
        instance:
          type: string
          description: Request path where the error occurred (without query parameters).
        code:
          type: string
          description: Stable machine-readable snake_case error code documented at `/errors`.
        error:
          type: string
          description: Backward-compatible alias of `code` (or protocol reason on x402 402 responses).
        message:
          type: string
          description: Backward-compatible alias of `detail`.
      additionalProperties: true
    Metricas_2:
      type: object
      properties:
        app:
          type: string
          description: Product name.
        today:
          type: string
          description: Reference day (UTC, YYYY-MM-DD).
        today_visits:
          type: integer
          description: 'Interface visits today: pings from `POST /api/visit`, one per page at the first human signal.'
        today_contacts:
          type: integer
          description: 'Contact messages today. Only with `METRICS_TOKEN`: contact data never leaves 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: '`creditos`: PontoFato credit movements per day: paid API calls, x402 or credit, with `produto` filtering what belongs to the house.'
        accounts:
          type: object
          description: 'No accounts in this product: empty object.'
        financeiro:
          type: object
          description: 'Daily aggregate: `hoje_usd`, `hoje_count`, `rede`. Only with `METRICS_TOKEN`: money data never leaves without a token; the full series is `payments`.'
        payments:
          type: object
          description: Finances (x402 and reais); only with METRICS_TOKEN.
        compras:
          type: object
          description: 'Who paid in the last 30 days: up to 20 purchases in reais, with name, verified e-mail and usage, and who paid by x402, by wallet. Only with METRICS_TOKEN.'
      required:
      - app
      - today
      - today_visits
      - days
      - usage
      - accounts
      description: 7-day operator dashboard. `payments` appears only with the token and only on Base mainnet.
  securitySchemes:
    globalAccount:
      type: apiKey
      in: cookie
      name: __Host-mm-auth
      description: Global session in the product's HttpOnly cookie; writes require exact Origin and X-CSRF-Token.
    contaChaveApi:
      type: http
      scheme: bearer
      bearerFormat: mmk_…
      description: 'Account API key: `Authorization: Bearer mmk_…` or `X-Api-Key: mmk_…`. Created on the account page (API keys), valid only in the product where it was created; it acts as the account (or the organization that owns it).'
    carteiraAgente:
      type: http
      scheme: bearer
      bearerFormat: mmw_…
      description: 'Wallet credential of an agent without an account (`Authorization: Bearer mmw_…`, 30 days, this product only): POST /api/auth/wallet/agent/start, check that the domain and URI of the message are the host and origin that you called, sign the message with the wallet, POST /api/auth/wallet/agent/token. The owner is `x402:<address>`.'
externalDocs:
  url: https://payapi.market/api/pontofato
  description: PayAPI Market
x-refined-from:
- pontofato-openapi-original.json
- pontofato-openapi.json