Stashbase
Secrets (env. scope)

Get single operational metadata

Get operational metadata for a single secret.

GET
/v1/environment/secrets/{secretName}/metadata

Get operational metadata for a single secret.

Path Parameters

secretName*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/environment/secrets/string/metadata"
{
  "name": "DATABASE_URL",
  "comment": "Primary Postgres database",
  "version": 12,
  "has_value": true,
  "created_at": "2026-05-20T08:00:00.000Z",
  "updated_at": "2026-05-22T09:12:00.000Z",
  "last_accessed_at": "2026-05-23T10:05:00.000Z"
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}