Skip to content
FeedbackDashboard

Retrieve configuration files

$client->projects->configs->retrieve(string project, ?string branch, ?string include): ConfigGetResponse
GET/v0/projects/{project}/configs
Retrieve the configuration files for a given project.
ParametersExpand Collapse
project: string
branch?:optional string

Branch name, defaults to "main".

include?:optional string
ReturnsExpand Collapse
array<string,ConfigGetResponseItem>
string content

The file content

Retrieve configuration files

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'staging');

$config = $client->projects->configs->retrieve(
  project: 'project', branch: 'branch', include: 'include'
);

var_dump($config);
{
  "foo": {
    "content": "content"
  }
}
Returns Examples
{
  "foo": {
    "content": "content"
  }
}