# Validate secret reference Validates if the secret at the secretManager path can be referenced Endpoint: POST /v1/secrets/validate-secret-ref Version: 1.0 Security: x-api-key ## Header parameters: - `Harness-Account` (string) Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped. ## Request fields (application/json): - `secret` (object, required) - `secret.name` (string, required) Secret name - `secret.identifier` (string, required) Secret identifier - `secret.org` (string) Organization identifier for secret - `secret.project` (string) Project identifier for secret - `secret.tags` (object) Secret tags - `secret.description` (string) Secret description - `secret.spec` (object, required) Details of the secret defined in Harness - `secret.spec.type` (string, required) This specifies the type of secret Enum: "SSHKeyPath", "SSHKeyReference", "SSHPassword", "SSHKerberosTGTKeyTabFile", "SSHKerberosTGTPassword", "SecretFile", "SecretText", "WinRmTGTKeyTabFile", "WinRmTGTPassword", "WinRmNTLM" ## Response 200 fields (application/json): - `success` (boolean) - `message` (string) Secret reference path validation result