Vault

List intern secrets

Changed on

Lists secret metadata stored for one intern. The list includes secrets stored from the dashboard or at provisioning before workspace-scoped storage; where both exist under one name, the one stored through this API is listed. Those older secrets cannot be deleted or copied through this API, and storing the same name through this API replaces them. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with limit and offset. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as eu.openrouter.ai are refused. API key required.

get/vault/interns/{internId}/secrets

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

internId, string uuid required

UUID of an intern in the workspace selected by the API key.

Example:7c9e6679-7425-40de-944b-e07fc1f90ae7

Query parameters

limit, integer

Page size, 1 to 100. Defaults to 100.

Example:50
offset, integer

Number of secrets to skip, 0 to 10000. Defaults to 0.

Response

One page of secret metadata.

VaultSecretListResponse required

One page of secret metadata for the selected scope.

data, VaultSecret[] required
has_more, boolean required

True when more secrets exist beyond this page. Request the next page with offset increased by the number of returned entries.

Example response

{
  "data": [
    {
      "created_at": "2026-09-15T17:44:00.000Z",
      "fingerprint": "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "hosts": [
        "api.github.com"
      ],
      "name": "github_token"
    },
    {
      "created_at": "2026-08-01T09:30:00.000Z",
      "fingerprint": null,
      "hosts": null,
      "name": "legacy_token"
    }
  ],
  "has_more": false
}

Changes