---
title: "platform.service-instance@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/platform.service-instance"
updated: null
---

# platform.service-instance@1 · OpenVibe.Services

HTML: [platform.service-instance@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/platform.service-instance)

# ServiceInstance `platform.service-instance@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: network
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-034](/docs/adr/ADR-034)
- Schema: [`https://openvibe.network/contracts/platform/service-instance.v1.json`](/docs/contracts/platform.service-instance.json)

One running instance registered in a cell (T1 Universal Fabric; ADR-034 proposed).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  |  |
| `service` | string | yes |  |  |
| `version` | string | yes |  |  |
| `cell` | string | yes |  |  |
| `node` | string | yes |  |  |
| `region` | string | yes |  |  |
| `endpoints` | array of string | yes |  | - `minItems 1`<br>- `items: format uri` |
| `state` | enum | yes |  | - `one of "starting", "ready", "degraded", "draining", "stopped"` |
| `started_at` | string | yes |  | - `format date-time` |
| `route_weight` | integer |  | Share of this service's traffic the router sends to this instance, relative to its siblings; absent means equal weight. | - `minimum 0`<br>- `maximum 1000` |

## Examples

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

 Valid: example

~~~~
{
  "id": "inst-1",
  "service": "media",
  "version": "1.4.0",
  "cell": "cell-west",
  "node": "node-1",
  "region": "us-west",
  "endpoints": [
    "https://media.internal.example"
  ],
  "state": "ready",
  "started_at": "2026-09-30T10:00:00Z"
}
~~~~

Valid: route-weight

~~~~
{
  "id": "inst-1",
  "service": "media",
  "version": "1.4.0",
  "cell": "cell-west",
  "node": "node-1",
  "region": "us-west",
  "endpoints": [
    "https://media.internal.example"
  ],
  "state": "ready",
  "started_at": "2026-09-30T10:00:00Z",
  "route_weight": 250
}
~~~~

Rejected: missing-id

~~~~
{
  "service": "media",
  "version": "1.4.0",
  "cell": "cell-west",
  "node": "node-1",
  "region": "us-west",
  "endpoints": [
    "https://media.internal.example"
  ],
  "state": "ready",
  "started_at": "2026-09-30T10:00:00Z"
}
~~~~

Rejected: route-weight-over-1000

~~~~
{
  "id": "inst-1",
  "service": "media",
  "version": "1.4.0",
  "cell": "cell-west",
  "node": "node-1",
  "region": "us-west",
  "endpoints": [
    "https://media.internal.example"
  ],
  "state": "ready",
  "started_at": "2026-09-30T10:00:00Z",
  "route_weight": 1001
}
~~~~

## Validate

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