> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veri.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Diff snapshots

> Rows added, superseded, and tombstoned between snapshot `a` and the later snapshot `b`. `b` may be `head` for the live stream.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/datasets/{dataset_id}/snapshots/{a}/diff/{b}
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Compatibility
    description: Advisory model and runtime compatibility guidance.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: SSH keys
    description: Manage SSH key pairs for compute access.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
  - name: Metrics
    description: Prometheus metrics export for your own observability stack.
paths:
  /v1/datasets/{dataset_id}/snapshots/{a}/diff/{b}:
    get:
      tags:
        - Datasets
      summary: Diff snapshots
      description: >-
        Rows added, superseded, and tombstoned between snapshot `a` and the
        later snapshot `b`. `b` may be `head` for the live stream.
      operationId: diff
      parameters:
        - name: dataset_id
          in: path
          description: Dataset ID or name
          required: true
          schema:
            type: string
        - name: a
          in: path
          description: Older snapshot (snap-N)
          required: true
          schema:
            type: string
        - name: b
          in: path
          description: Newer snapshot (snap-N) or `head`
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The delta
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotDiff'
        '400':
          description: a is newer than b
        '404':
          description: Dataset or snapshot not found
      security:
        - bearerAuth: []
components:
  schemas:
    SnapshotDiff:
      type: object
      required:
        - dataset_id
        - from
        - to
        - from_head
        - to_head
        - added
        - superseded
        - tombstoned
      properties:
        dataset_id:
          type: string
        from:
          type: string
        to:
          type: string
        from_head:
          type: integer
          format: int64
        to_head:
          type: integer
          format: int64
        added:
          type: array
          items:
            type: integer
            format: int64
          description: |-
            Data rows appended in (from_head, to_head] (supersede rows included:
            they are new rows too).
        superseded:
          type: array
          items:
            $ref: '#/components/schemas/SupersededRow'
        tombstoned:
          type: array
          items:
            $ref: '#/components/schemas/TombstonedRow'
    SupersededRow:
      type: object
      required:
        - row_id
        - by_row
      properties:
        row_id:
          type: integer
          format: int64
          description: The row that was corrected.
        by_row:
          type: integer
          format: int64
          description: The correcting row (carries `supersedes = row_id`).
    TombstonedRow:
      type: object
      required:
        - row_id
        - tombstone_row
      properties:
        row_id:
          type: integer
          format: int64
        tombstone_row:
          type: integer
          format: int64
        reason:
          type:
            - string
            - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````