Skip to content
FeedbackDashboard

Retrieve configuration files

projects.configs.retrieve(**kwargs) -> ConfigRetrieveResponse { content }
GET/v0/projects/{project}/configs
Retrieve the configuration files for a given project.
ParametersExpand Collapse
project: String
branch: String

Branch name, defaults to "main".

include: String
ReturnsExpand Collapse
Hash[Symbol, { content}]

Config files contents

content: String

The file content

Retrieve configuration files

require "stainless_v0"

stainless = StainlessV0::Client.new(
  api_key: "My API Key",
  environment: "staging" # defaults to "production"
)

config = stainless.projects.configs.retrieve(project: "project")

puts(config)
{
  "foo": {
    "content": "content"
  }
}
Returns Examples
{
  "foo": {
    "content": "content"
  }
}