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

# vision.face-enrol-request@1 · OpenVibe.Services

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

# VisionFaceEnrolRequest `vision.face-enrol-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/face-enrol-request.v1.json`](/docs/contracts/vision.face-enrol-request.json)

vision.face-enrol-request@1: POST /api/v1/faces/enrol/:feature. \`feature\` is verify (1:1 verification of yourself), find (search your own uploads) or cast (an adult tagging named streams); each needs its own signed consent first, and cast also names the channel scope.

## 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` |
| `feature` | enum | yes |  | - `one of "verify", "find", "cast"` |
| `channel` | string |  |  | - `pattern ^[a-zA-Z0-9][a-zA-Z0-9:_-]{1,119}$` |

## Examples

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

 Valid: one

~~~~
{
  "feature": "cast",
  "channel": "live:one",
  "image": "data:image/png;base64,iVBORw0KGgo="
}
~~~~

Rejected: one

~~~~
{
  "feature": "library",
  "image": "data:image/png;base64,iVBORw0KGgo="
}
~~~~

## Validate

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