Unispec Docs
ApiAgents

Store a project secret

Envelope-encrypted at rest (AES-256-GCM). Reference it from a tool via `secret_ref` + `auth_header`; the value is injected server-side — the model never sees it. Returns 503 when the server has no `LIBRA_SECRET_KEY`.

POST
/v1/secrets

Envelope-encrypted at rest (AES-256-GCM). Reference it from a tool via secret_ref + auth_header; the value is injected server-side — the model never sees it. Returns 503 when the server has no LIBRA_SECRET_KEY.

Authorization

TokenAuth
Authorization<token>

Project API key as Token lb-sk_...

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/secrets" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "value": "string"  }'
{  "name": "string"}
Empty