> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# VaultSecret

Metadata for one stored secret. The secret value is never returned. `fingerprint` is a keyed SHA-256 digest of the value: equal fingerprints within one scope mean equal values, but a workspace secret and its intern copy carry different fingerprints. `hosts` and `fingerprint` are `null` only for legacy rows written before host binding was required; storing the secret again assigns hosts.

## Example Usage

```typescript theme={null}
import { VaultSecret } from "@openrouter/sdk/models";

let value: VaultSecret = {
  createdAt: new Date("2026-09-15T17:44:00.000Z"),
  fingerprint:
    "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  hosts: [
    "api.github.com",
  ],
  name: "github_token",
};
```

## Fields

| Field         | Type                                                                                          | Required             | Description |
| ------------- | --------------------------------------------------------------------------------------------- | -------------------- | ----------- |
| `createdAt`   | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy\_check\_mark: | N/A         |
| `fingerprint` | *string*                                                                                      | :heavy\_check\_mark: | N/A         |
| `hosts`       | *string*\[]                                                                                   | :heavy\_check\_mark: | N/A         |
| `name`        | *string*                                                                                      | :heavy\_check\_mark: | N/A         |
