---
title: "network.friend.requested@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/network.friend.requested"
updated: null
---

# network.friend.requested@1 · OpenVibe.Services

HTML: [network.friend.requested@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.friend.requested)

# NetworkFriendRequestedPayload `network.friend.requested@1`

Generated at 2026-11-17 06:52:56 UTC from [`openvibe-contracts v0.443.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.443.0) and [`openvibe-sdk v0.177.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.177.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/network.friend.requested.v1.json`](/docs/contracts/network.friend.requested.json)

network.friend.requested v1 (plan §AB.51): \`from\` added \`to\` as a friend and \`to\` has not added \`from\`: a request \`to\` can accept (add back) or leave. Adding again what is already added sends nothing. Written to Network's outbox in the transaction that stores the change. Envelope: subject { type: user, id: <to> }, visibility subject, actor <from>.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `from` | string | yes | Who acted. | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `to` | string | yes | The other person. | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `revision` | integer | yes | Grows with every change of this pair; apply the latest. | - `minimum 1`<br>- `maximum 9007199254740991` |
| `at` | string |  |  | - `format date-time` |

## Examples

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

 Valid: pair

~~~~
{
  "from": "usr_01K9R2V6M8Q4T0B7C3D5E9F2GH",
  "to": "usr_01K9R2V6M8Q4T0B7C3D5E9F2GJ",
  "revision": 2,
  "at": "2026-11-14T08:00:00Z"
}
~~~~

Rejected: no-revision

~~~~
{
  "from": "usr_01K9R2V6M8Q4T0B7C3D5E9F2GH",
  "to": "usr_01K9R2V6M8Q4T0B7C3D5E9F2GJ"
}
~~~~

## Validate

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