Store an intern secret
Creates or replaces a secret stored for one intern. The value is encrypted at rest and released only to the exact hostnames in hosts. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. 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. Requests on regional hostnames such as eu.openrouter.ai are refused. API key required.
Path parameters
UUID of an intern in the workspace selected by the API key.
UUID of an intern in the workspace selected by the API key.
Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
Request body
Example request
{
"hosts": [
"api.github.com"
],
"value": "ghp_exampleTokenValue"
}Response
Metadata for the stored secret.
Example response
{
"data": {
"created_at": "2026-09-15T17:44:00.000Z",
"fingerprint": "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"hosts": [
"api.github.com"
],
"name": "github_token"
}
}Changes
Changed in 1 of the 303 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○