---
title: "vision.watch-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vision.watch-request"
updated: null
---

# vision.watch-request@1 · OpenVibe.Services

HTML: [vision.watch-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vision.watch-request)

# VisionWatchRequest `vision.watch-request@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

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

vision.watch-request@1: the body of POST /api/v1/watch (owner-granted camera alerts). \`classes\` names 1–20 things to look for (snow, delivery, package, a DETR label, or "scene change"); \`previous\_image\` is required for a scene change and is compared by histogram.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `image` | string |  | The image as a data URL (base64). | - `pattern ^data:image/` |
| `image_url` | string |  | A public image URL, fetched through Vision's private-address guard. | - `pattern ^https?://`<br>- `format uri` |
| `classes` | array of string | yes |  | - `minItems 1`<br>- `maxItems 20`<br>- `items: maxLength 60` |
| `previous_image` | string |  |  | - `pattern ^data:image/` |

## Examples

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

 Valid: one

~~~~
{
  "image": "data:image/png;base64,iVBORw0KGgo=",
  "classes": [
    "package",
    "scene change"
  ],
  "previous_image": "data:image/png;base64,iVBORw0KGgo="
}
~~~~

Rejected: one

~~~~
{
  "image": "data:image/png;base64,iVBORw0KGgo=",
  "classes": []
}
~~~~

## Validate

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