Stashbase
Secrets

Get single

Get single secret.

GET
/v1/projects/{project_identifier}/environments/{environment_identifier}/secrets/{name}

Get single secret.

Path Parameters

project_identifier*string

The name or ID of the project.

environment_identifier*string

The name or ID of the environment.

name*string

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

Query Parameters

expand_refs?boolean

Expand secret references with their referred values.

omit?string

Fields of the secrets to omit from the response. Comma separated list of 'value' or 'comment'.

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"
{
  "name": "DB_URL",
  "value": "postgres://postgres:postgres@${DB_HOST}:${DB_PORT}/postgres",
  "comment": "The connection string to the database."
}
{
  "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
    }
  }
}