Example Usage
import { VaultSecretWriteRequest } from "@openrouter/sdk/models";
let value: VaultSecretWriteRequest = {
hosts: [
"api.github.com",
],
value: "ghp_exampleTokenValue",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
hosts | string[] | :heavy_check_mark: | Exact DNS hostnames the secret may be sent to, 1 to 100 entries. Each entry is lowercased and a trailing dot is removed, so API.Example.com. is stored as api.example.com. Schemes, ports, paths, wildcards and empty values are rejected. Duplicates after normalization are collapsed. Matching is exact: a secret bound to api.example.com is never released to example.com or any other hostname. |
value | string | :heavy_check_mark: | Secret value, 1 to 65536 characters. It is encrypted at rest and never returned. |