---
title: "events.read-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/events.read-result"
updated: null
---

# events.read-result@1 · OpenVibe.Services

HTML: [events.read-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/events.read-result)

# EventsReadResult `events.read-result@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: events
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/read-result.v1.json`](/docs/contracts/events.read-result.json)

events.read-result@1: answers of the pull API on OpenVibe.Events. GET /api/v1/events → { events: \[{ cursor, event }\], next\_cursor, latest\_cursor, gap? } (keep next\_cursor as the position and read on with after=: it moves past events that did not match; latest\_cursor is the head, for a consumer that starts at now; without after= a page starts at the oldest retained event; gap { from\_seq, to\_seq } says events after the position were already pruned by retention); GET /api/v1/events/:event\_id → { cursor, event }; GET|PUT /api/v1/checkpoints → { consumer, topic, cursor, carrier, updated\_at } (cursor, carrier and updated\_at null when none is stored). GET /realtime/stream?topics= (events.event.read) is a Server-Sent Events feed whose messages carry { event } with the cursor as the SSE id; it resumes from Last-Event-ID (or last\_event\_id=) when that is a cursor, and a gap message comes first when the cursor is older than retention. A position is only ever an opaque cursor (ADR-042 decision 7): there is no per-event sequence number and no global order; dedupe on event.event\_id. An app sees only its project's events in its token's environment plus public first-party events.

## Fields

This schema has no named fields.

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: checkpoint

~~~~
{
  "consumer": "live",
  "topic": "media.vod.*",
  "cursor": "c1.0.ODgyMTM",
  "carrier": "pg-v1",
  "updated_at": "2026-10-10T12:00:00Z"
}
~~~~

Valid: no-checkpoint

~~~~
{
  "consumer": "live",
  "topic": "media.vod.*",
  "cursor": null,
  "carrier": null,
  "updated_at": null
}
~~~~

Valid: page-with-cursor

~~~~
{
  "events": [
    {
      "event": {
        "event_id": "evt_01JAB2C3D4E5F6G7H8J9K0MNPR",
        "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.order.created",
        "version": 1,
        "source": "app-01jab2c3d4e5f6g7h8j9k0mnps",
        "actor": {
          "type": "app",
          "id": "app_01JAB2C3D4E5F6G7H8J9K0MNPS"
        },
        "timestamp": "2026-09-23T12:00:00Z",
        "visibility": "internal",
        "subject": {
          "type": "order",
          "id": "42"
        },
        "payload": {
          "total": 3
        }
      },
      "cursor": "c1.e0.1"
    }
  ],
  "next_cursor": "c1.e0.next",
  "latest_cursor": "c1.0.ODgyNDA"
}
~~~~

Valid: page-with-latest-cursor

~~~~
{
  "events": [
    {
      "event": {
        "event_id": "evt_01JAB2C3D4E5F6G7H8J9K0MNPR",
        "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.order.created",
        "version": 1,
        "source": "app-01jab2c3d4e5f6g7h8j9k0mnps",
        "actor": {
          "type": "app",
          "id": "app_01JAB2C3D4E5F6G7H8J9K0MNPS"
        },
        "timestamp": "2026-09-23T12:00:00Z",
        "visibility": "internal",
        "subject": {
          "type": "order",
          "id": "42"
        },
        "payload": {
          "total": 3
        }
      },
      "cursor": "c1.e0.1"
    }
  ],
  "next_cursor": "c1.e0.next",
  "latest_cursor": "c1.0.Nw"
}
~~~~

Valid: page

~~~~
{
  "events": [
    {
      "event": {
        "event_id": "evt_01JAB2C3D4E5F6G7H8J9K0MNPR",
        "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.order.created",
        "version": 1,
        "source": "app-01jab2c3d4e5f6g7h8j9k0mnps",
        "actor": {
          "type": "app",
          "id": "app_01JAB2C3D4E5F6G7H8J9K0MNPS"
        },
        "timestamp": "2026-09-23T12:00:00Z",
        "visibility": "internal",
        "subject": {
          "type": "order",
          "id": "42"
        },
        "payload": {
          "total": 3
        }
      },
      "cursor": "c1.0.ODgyMTM"
    }
  ],
  "next_cursor": "c1.0.ODgyNDA",
  "latest_cursor": "c1.0.ODgyNDA"
}
~~~~

Rejected: bad-envelope

~~~~
{
  "events": [
    {
      "cursor": "c1.0.MQ",
      "event": {
        "event_type": "x"
      }
    }
  ],
  "next_cursor": "c1.0.MQ",
  "latest_cursor": "c1.0.MQ"
}
~~~~

Rejected: empty-latest-cursor

~~~~
{
  "events": [
    {
      "event": {
        "event_id": "evt_01JAB2C3D4E5F6G7H8J9K0MNPR",
        "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.order.created",
        "version": 1,
        "source": "app-01jab2c3d4e5f6g7h8j9k0mnps",
        "actor": {
          "type": "app",
          "id": "app_01JAB2C3D4E5F6G7H8J9K0MNPS"
        },
        "timestamp": "2026-09-23T12:00:00Z",
        "visibility": "internal",
        "subject": {
          "type": "order",
          "id": "42"
        },
        "payload": {
          "total": 3
        }
      },
      "cursor": "c1.e0.1"
    }
  ],
  "next_cursor": "c1.e0.next",
  "latest_cursor": ""
}
~~~~

Rejected: numeric-checkpoint

~~~~
{
  "consumer": "live",
  "topic": "media.vod.*",
  "cursor": 88213,
  "updated_at": "2026-10-10T12:00:00Z"
}
~~~~

Rejected: numeric-page

~~~~
{
  "events": [],
  "next_after_seq": 5,
  "latest_seq": 5
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('events.read-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
