Stashbase
Secrets

Get single operational metadata

Get operational metadata for a single secret.

GET
/v1/projects/{project_identifier}/environments/{environment_identifier}/secrets/{secretName}/metadata

Get operational metadata for a single secret.

Path Parameters

project_identifier*string

The name or ID of the project.

environment_identifier*string

The name or ID of the environment.

secretName*string

The name of the secret, min 2 and max 255 characters. Must be properly formatted.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/projects/string/environments/string/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
    }
  }
}