---
title: "bot.robot.offline@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/bot.robot.offline"
updated: null
---

# bot.robot.offline@1 · OpenVibe.Services

HTML: [bot.robot.offline@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/bot.robot.offline)

# BotRobotOfflinePayload `bot.robot.offline@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: bot
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-043](/docs/adr/ADR-043)
- Schema: [`https://openvibe.network/contracts/events/payloads/bot.robot.offline.v1.json`](/docs/contracts/bot.robot.offline.json)

bot.robot.offline v1 (OpenVibe.Bot server/domain/index.js setOnline). The device missed two heartbeats plus the grace window, or its socket closed; one event per robot it is attached to. Envelope: subject { type: robot, id: <robot id> }, visibility internal, priority important, actor service:bot.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `robot_id` | string | yes |  | - `pattern ^rob_[0-9A-HJKMNP-TV-Z]{26}$` |
| `device_id` | string | yes |  | - `pattern ^dev_[0-9A-HJKMNP-TV-Z]{26}$` |
| `owner` | string |  | The robot owner's user subject (Bot since 0.192.0; absent from older events). OpenVibe.Quest credits the owner's "Bring a robot online" quest from it. | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |

## Examples

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

 Valid: offline

~~~~
{
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "device_id": "dev_01J8Z4N5S2V8X0ZB4M7Q9R3T5W"
}
~~~~

Rejected: bad-robot

~~~~
{
  "robot_id": "robot-1",
  "device_id": "dev_01J8Z4N5S2V8X0ZB4M7Q9R3T5W"
}
~~~~

## Validate

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