Skip to main content

SecretMetadata

SecretMetadata is the only thing read APIs return. No message in this file carries a secret value out of the service.

Usage profiles​

UsageFields and validation
In responsesView fields

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
namestringOptionalName identifying the secret within its project.
projectIdstringOptionalIdentifier of the project within the tenant that scopes this record. "default" until Projects ships.
descriptionstringOptionalHuman-readable explanation of the secret.
labelsMap from string to stringOptionalFree-form labels used to organize and identify secrets. Free-form, e.g. {"kind": "mcp-auth"}.
versionstring (int64)OptionalVersion number of the stored secret metadata. Increments on every PutSecret. Pattern: ^-?\d+$.
createdBystringOptionalSubject identifier recorded for the creator of this record. Subject from the X-User-ID header, when present.
createdAtstring (date-time)OptionalTime this record was created.
updatedAtstring (date-time)OptionalTime this record was most recently updated.

Where used​

ReferenceRelationship
Get a secret's metadataPOST /api/v1/secrets/get-metadata
List secretsPOST /api/v1/secrets/list
Create or update a secretPOST /api/v1/secrets/put

Download the public reference contract.

Document: DOC-API-MODEL-secret-metadata.