---
updatedAt: 2026-04-21T03:46:21.000Z
agentTools:
  projectIndex: https://help.rainforestqa.com/llms.txt
---

# List sites and environments

List sites and environments

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Rainforest API Documentation",
    "description": "Nearly all interactions done on in Rainforest can be done in via the API.<br/><br/>Find your API Token (for the CLIENT_TOKEN header field) on the <a href=\"https://app.rainforestqa.com/settings/integrations\">integration settings</a> page.",
    "version": "1"
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "site_environments",
      "description": "Operations about site_environments"
    }
  ],
  "paths": {
    "/1/site_environments": {
      "get": {
        "summary": "List sites and environments",
        "description": "List sites and environments",
        "parameters": [
          {
            "in": "query",
            "name": "include_site_test_count",
            "description": "Includes test count for each site if set to true",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "in": "query",
            "name": "slim",
            "description": "If true, returns less data in order to reduce latency and response size",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sites and environments retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SiteEnvironments_Index"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "site_environments"
        ],
        "operationId": "get-site_environments",
        "x-rdme-order": 1
      }
    }
  },
  "servers": [
    {
      "url": "//app.rainforestqa.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "CLIENT_TOKEN",
        "in": "header"
      }
    },
    "schemas": {
      "SiteEnvironment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "site_id": {
            "type": "integer",
            "format": "int32"
          },
          "environment_id": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "type": "string",
            "format": "url"
          }
        },
        "required": [
          "site_id",
          "environment_id",
          "url"
        ]
      },
      "Site": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "default": {
            "type": "boolean"
          },
          "category": {
            "type": "string",
            "enum": [
              "site",
              "ios",
              "android"
            ]
          },
          "ai_generation_rules": {
            "type": "string"
          },
          "snippet_count": {
            "type": "integer",
            "format": "int32"
          },
          "test_count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "description": "Site model"
      },
      "SiteEnvironments_Index": {
        "type": "object",
        "properties": {
          "environments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Site"
            }
          },
          "site_environments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteEnvironment"
            }
          }
        },
        "description": "SiteEnvironments_Index model"
      }
    }
  }
}
```