Vitrus Ingest API

What the browser script sends. No authentication; quota applies.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /api/collect Record one event #
POST /api/batch Up to 50 events of one site in one request (native SDKs) #

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/vitrus-dev:vitrus-dev-ingest-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

vitrus-dev-ingest-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vitrus Ingest API
  version: '1'
  summary: Cookie-free analytics where every number carries the query that produced it.
  description: 'Two surfaces: an unauthenticated ingest endpoint the browser script calls, and a session-authenticated read API. Every read response carries evidence records — the SQL, its parameters and the window — so a client can cite a number rather than assert it.


    There is also a read-only MCP server at POST /mcp for agents that speak the Model Context Protocol. It is read-only on purpose: a record a model can write to stops being a record.'
  license:
    name: Apache-2.0 (core)
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://app.vitrus.dev/app
  description: Vitrus Cloud
- url: http://localhost:3000
  description: Self-hosted
security:
- session: []
- apiKey: []
tags:
- name: Ingest
  description: What the browser script sends. No authentication; quota applies.
paths:
  /api/collect:
    post:
      tags:
      - Ingest
      summary: Record one event
      description: Called by the tracker at /api/d (this path is the same endpoint under its original name). Returns 204 on success, 404 for an unknown site and 429 when the workspace is past its quota grace band — rejected events are counted and shown to the customer.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - site
              - type
              properties:
                site:
                  type: string
                type:
                  type: string
                  enum:
                  - pageview
                  - event
                name:
                  type: string
                  description: Event name. Required when type is event.
                url:
                  type: string
                referrer:
                  type: string
                props:
                  type: object
                  description: Event properties. Never contains a form field's VALUE.
      responses:
        '204':
          description: Recorded.
        '404':
          description: Unknown site.
        '429':
          description: Quota exceeded; the event was rejected and counted as rejected.
      operationId: postApiCollect
      x-operation-id-source: derived
  /api/batch:
    post:
      tags:
      - Ingest
      summary: Up to 50 events of one site in one request (native SDKs)
      description: 'Body: { events: [...] } — each event as for /api/collect, plus optional `nonce` (a per-device value the SDK regenerates every UTC day; it replaces IP + user-agent in the visitor hash) and `ago` (ms since the event, at most 86400000; the server subtracts it from its own clock). Each event is validated, excluded and counted on its own.'
      responses:
        '200':
          description: '{ ok, accepted, rejected: [{ index, reason }] }'
        '400':
          description: Not a batch, mixed sites, or more than 50.
        '404':
          description: Unknown site.
      operationId: postApiBatch
      x-operation-id-source: derived
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: vitrus_session
      description: 'Server-side session, not a JWT: revoking one has to be instant, which a signed token cannot do.'
    apiKey:
      type: http
      scheme: bearer
      description: 'Workspace API key (vk_…), created under Workspace → API keys. Read-only: accepted by the read endpoints only. Header only — a key in the URL is refused. 600 requests a minute per key.'
externalDocs:
  url: https://vitrus.dev/docs
  description: Documentation