Fauna · Schema

Fauna Event

Represents a change data capture event emitted by Fauna event sources. Events are generated when tracked changes occur in a database and are delivered via event streams (real-time) or event feeds (polling). Each event includes the change type, transaction timestamp, cursor for pagination and reconnection, and the associated document data.

Properties

Name Type Description
type string The type of change event. 'add' indicates a document was added to the tracked set, 'remove' indicates removal, 'update' indicates modification, and 'status' is a heartbeat or connection status event.
txn_ts integer Transaction timestamp in microseconds since the Unix epoch when the change occurred.
cursor string Cursor position for this event. Used for pagination in event feeds and for reconnection in event streams.
data object The document data associated with the event. Present for add, remove, and update events. The structure depends on the collection schema.
stats object
View JSON Schema on GitHub

JSON Schema

fauna-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://fauna.com/schemas/fauna/event.json",
  "title": "Fauna Event",
  "description": "Represents a change data capture event emitted by Fauna event sources. Events are generated when tracked changes occur in a database and are delivered via event streams (real-time) or event feeds (polling). Each event includes the change type, transaction timestamp, cursor for pagination and reconnection, and the associated document data.",
  "type": "object",
  "required": ["type", "txn_ts"],
  "properties": {
    "type": {
      "type": "string",
      "enum": ["add", "remove", "update", "status"],
      "description": "The type of change event. 'add' indicates a document was added to the tracked set, 'remove' indicates removal, 'update' indicates modification, and 'status' is a heartbeat or connection status event."
    },
    "txn_ts": {
      "type": "integer",
      "description": "Transaction timestamp in microseconds since the Unix epoch when the change occurred."
    },
    "cursor": {
      "type": "string",
      "description": "Cursor position for this event. Used for pagination in event feeds and for reconnection in event streams."
    },
    "data": {
      "type": "object",
      "additionalProperties": true,
      "description": "The document data associated with the event. Present for add, remove, and update events. The structure depends on the collection schema."
    },
    "stats": {
      "$ref": "#/$defs/EventStats"
    }
  },
  "$defs": {
    "EventStats": {
      "type": "object",
      "description": "Operational statistics for the event processing.",
      "properties": {
        "read_ops": {
          "type": "integer",
          "description": "Number of Transactional Read Operations consumed."
        },
        "storage_bytes_read": {
          "type": "integer",
          "description": "Number of bytes read from storage."
        },
        "compute_ops": {
          "type": "integer",
          "description": "Number of Transactional Compute Operations consumed."
        },
        "processing_time_ms": {
          "type": "integer",
          "description": "Processing time in milliseconds."
        },
        "rate_limits_hit": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of rate limits that were hit during event processing."
        }
      }
    },
    "EventFeedPage": {
      "type": "object",
      "description": "A page of events returned by the event feed endpoint.",
      "required": ["events", "has_next"],
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "$ref": "#"
          },
          "description": "Array of change events for the current page."
        },
        "cursor": {
          "type": "string",
          "description": "Cursor to use for fetching the next page of events."
        },
        "has_next": {
          "type": "boolean",
          "description": "Indicates whether more pages of events are available."
        },
        "stats": {
          "$ref": "#/$defs/EventStats"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/fauna-event"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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