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

# network.secret-use-result@1 · OpenVibe.Services

HTML: [network.secret-use-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.secret-use-result)

# SecretUseResult `network.secret-use-result@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: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-056](/docs/adr/ADR-056)
- Schema: [`https://openvibe.network/contracts/network/secret-use-result.v1.json`](/docs/contracts/network.secret-use-result.json)

network.secret-use-result@1 (ADR-056): POST /internal/secrets/use's answer — the secret's name and version with the HMAC-SHA256 signature (sign) or the value (reveal). Sent with Cache-Control: no-store; a caller keeps a revealed value only as long as the request it is for.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `name` | string | yes |  | - `pattern ^[a-z][a-z0-9_-]{0,63}$` |
| `version` | integer | yes |  | - `minimum 1` |
| `purpose` | enum | yes |  | - `one of "sign", "reveal"` |
| `signature` | string |  | sign: the lowercase hex HMAC-SHA256 of the message under the secret. | - `pattern ^[0-9a-f]{64}$` |
| `value` | string |  | reveal: the value. | - `minLength 1`<br>- `maxLength 8192` |

## Examples

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

 Valid: signature

~~~~
{
  "name": "webhook-signing",
  "version": 2,
  "purpose": "sign",
  "signature": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
~~~~

Valid: value

~~~~
{
  "name": "api_token",
  "version": 1,
  "purpose": "reveal",
  "value": "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
}
~~~~

Rejected: short-signature

~~~~
{
  "name": "webhook-signing",
  "version": 2,
  "purpose": "sign",
  "signature": "abc"
}
~~~~

Rejected: sign-with-value

~~~~
{
  "name": "webhook-signing",
  "version": 2,
  "purpose": "sign",
  "signature": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "value": "x"
}
~~~~

## Validate

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