---
title: "share.transfer-view@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/share.transfer-view"
updated: null
---

# share.transfer-view@1 · OpenVibe.Services

HTML: [share.transfer-view@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/share.transfer-view)

# ShareTransferView `share.transfer-view@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: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/share/transfer-view.v1.json`](/docs/contracts/share.transfer-view.json)

share.transfer-view@1: the pending transfer in the GET body, with its recipient as a person. The transfer id is what the sheet sends back.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `format uuid` |
| `from` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `to` | [share.person](/docs/contracts/share.person) | yes |  |  |
| `keep_access` | boolean | yes |  | - `default false` |
| `requested_at` | string | yes |  | - `format date-time` |
| `expires_at` | string | yes |  | - `format date-time` |
| `state` | enum | yes |  | - `one of "pending", "accepted", "declined", "cancelled", "expired"` |

## Examples

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

 Valid: example

~~~~
{
  "id": "00000000-0000-4000-8000-000000000002",
  "from": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "to": {
    "subject": {
      "type": "user",
      "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
    },
    "username": "maticus",
    "display_name": "Maticus",
    "avatar_url": null
  },
  "keep_access": false,
  "requested_at": "2026-11-06T00:10:00Z",
  "expires_at": "2026-11-13T00:10:00Z",
  "state": "pending"
}
~~~~

Rejected: bare-to

~~~~
{
  "id": "00000000-0000-4000-8000-000000000002",
  "from": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "to": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "keep_access": false,
  "requested_at": "2026-11-06T00:10:00Z",
  "expires_at": "2026-11-13T00:10:00Z",
  "state": "pending"
}
~~~~

## Validate

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