Skip to main content
GET
/
sites
/
environments
/
{env_id}
/
file-list
Get list of files for environment
curl --request GET \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/file-list \
  --header 'Authorization: Bearer <token>'
{
  "environment": {
    "id": "54fb80af-576c-4fdc-ba4f-b596c83f15b2",
    "file_list": [
      {
        "name": "wp-content",
        "path": "wp-content",
        "children": [
          {
            "name": "plugins",
            "path": "wp-content/plugins",
            "children": [
              {
                "name": "akismet",
                "path": "wp-content/plugins/akismet"
              }
            ]
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

env_id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Response

Successfully found environment file list

environment
object
required