---
title: "exchange.key-created@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/exchange.key-created"
updated: null
---

# exchange.key-created@1 · OpenVibe.Services

HTML: [exchange.key-created@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/exchange.key-created)

# ExchangeKeyCreated `exchange.key-created@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: exchange
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-025](/docs/adr/ADR-025)
- Schema: [`https://openvibe.network/contracts/exchange/key-created.v1.json`](/docs/contracts/exchange.key-created.json)

An Exchange key and its one-time secret. Never cache or log this response.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `key` | [exchange.key](/docs/contracts/exchange.key) | yes |  |  |
| `secret` | string | yes |  | - `pattern ^ovx_[A-Za-z0-9_-]{43}$` |

## Examples

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

 Valid: platform

~~~~
{
  "key": {
    "id": "xkey_example",
    "name": "App",
    "prefix": "ovx_exampl",
    "monthly_cap_usd": 10,
    "allowed_models": [
      "m"
    ],
    "created_at": "2026-11-09T00:00:00Z",
    "revoked_at": null
  },
  "secret": "ovx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
~~~~

Rejected: platform

~~~~
{
  "key": {},
  "secret": "bad"
}
~~~~

## Validate

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