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

# network.setup-grant-save@1 · OpenVibe.Services

HTML: [network.setup-grant-save@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.setup-grant-save)

# NetworkSetupGrantSave `network.setup-grant-save@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/network/setup-grant-save.v1.json`](/docs/contracts/network.setup-grant-save.json)

network.setup-grant-save@1 (capability network.setup.grant.save): the value(s) a person's own agent read from a provider's page, saved into exactly the one Setup row a one-time grant names (plan §AB.44). POST /internal/setup/grants/:id/save on OpenVibe.Network, with the agent's service token and the live grant: each key must be one of the grant's own; the grant is burnt by the first save; nothing is ever read back.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `values` | object | yes |  | - `no other fields` |
| `run` | string |  | The agent run that read the value(s), for the audit line. | - `pattern ^[A-Za-z0-9_-]{1,80}$` |

## Examples

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

 Valid: one-key

~~~~
{
  "values": {
    "deepseek.api_key": "pasted-from-the-provider-page"
  },
  "run": "run_setup_deepseek"
}
~~~~

Rejected: no-values

~~~~
{
  "values": {}
}
~~~~

Rejected: too-many-keys

~~~~
{
  "values": {
    "a": "one",
    "b": "two",
    "c": "three",
    "d": "four",
    "e": "five"
  }
}
~~~~

## Validate

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