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

# link.access-request@1 · OpenVibe.Services

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

# LinkAccessRequest `link.access-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: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/link/access-request.v1.json`](/docs/contracts/link.access-request.json)

A machine asks another for bounded access.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^[a-z]{3}_[A-Za-z0-9_-]{8,80}$` |
| `from_principal` | string | yes |  | - `pattern ^lnk_[0-9A-HJKMNP-TV-Z]{26}$` |
| `to_principal` | string | yes |  | - `pattern ^lnk_[0-9A-HJKMNP-TV-Z]{26}$` |
| `from_owner` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `to_owner` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `from_agent` | string |  |  | - `pattern ^agt_[0-9A-HJKMNP-TV-Z]{26}$` |
| `scopes` | array of enum | yes |  | - `minItems 1`<br>- `unique items`<br>- `items: one of "agent", "send", "screen", "desk", "computer", "worker"` |
| `reason` | string |  |  | - `maxLength 500` |
| `status` | enum | yes |  | - `one of "pending", "approved", "denied", "expired"` |
| `requested_at` | string | yes |  | - `format date-time` |
| `expires_at` | string | yes |  | - `format date-time` |
| `duration_seconds` | integer | yes |  | - `minimum 60`<br>- `maximum 2592000` |

## Examples

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

 Valid: example

~~~~
{
  "id": "req_12345678",
  "from_principal": "lnk_AAAAAAAAAAAAAAAAAAAAAAAAAA",
  "to_principal": "lnk_BBBBBBBBBBBBBBBBBBBBBBBBBB",
  "from_owner": "usr_AAAAAAAAAAAAAAAAAAAAAAAAAA",
  "to_owner": "usr_BBBBBBBBBBBBBBBBBBBBBBBBBB",
  "scopes": [
    "agent"
  ],
  "status": "pending",
  "requested_at": "2026-11-11T00:00:00Z",
  "expires_at": "2026-11-11T01:00:00Z",
  "duration_seconds": 3600
}
~~~~

Rejected: example

~~~~
{}
~~~~

## Validate

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