---
title: "GET /{account_slug}/sites"
method: GET
path: "/{account_slug}/sites"
tags: ["site"]
---

# GET /{account_slug}/sites

`GET /{account_slug}/sites`

**Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables.

## Path parameters

- `account_slug` string, required

## Query parameters

- `name` string
- `page` integer
- `per_page` integer

## Response `200`

OK

- Site[]
  - `id` string
  - `state` string
  - `plan` string
  - `name` string
  - `custom_domain` string
  - `domain_aliases` string[]
  - `branch_deploy_custom_domain` string
  - `deploy_preview_custom_domain` string
  - `password` string
  - `notification_email` string
  - `url` string
  - `ssl_url` string
  - `admin_url` string
  - `screenshot_url` string
  - `created_at` string, dateTime
  - `updated_at` string, dateTime
  - `user_id` string
  - `session_id` string
  - `ssl` boolean
  - `force_ssl` boolean
  - `managed_dns` boolean
  - `deploy_url` string
  - `published_deploy` Deploy
    - `id` string
    - `site_id` string
    - `user_id` string
    - `build_id` string
    - `state` string
    - `name` string
    - `url` string
    - `ssl_url` string
    - `admin_url` string
    - `deploy_url` string
    - `deploy_ssl_url` string
    - `screenshot_url` string
    - `review_id` number
    - `draft` boolean
    - `required` string[]
    - `required_functions` string[]
    - `required_edge_functions` string[] — An array of code_shas for the edge-function bundles that need to be uploaded to complete the deploy.
    - `error_message` string
    - `branch` string
    - `commit_ref` string
    - `commit_url` string
    - `skipped` boolean
    - `created_at` string, dateTime
    - `updated_at` string, dateTime
    - `published_at` string, dateTime
    - `title` string
    - `context` string
    - `locked` boolean
    - `review_url` string
    - `framework` string
    - `skew_protection_token` string
    - `function_schedules` FunctionSchedule[]
      - `name` string
      - `cron` string
    - `functions_region` string — The functions region for this deploy as an airport code.
    - `functions_region_overrides` object[] — Functions in the deploy that explicitly specify their own region (airport code).
      - `name` string
      - `region` string
  - `account_id` string
  - `account_name` string
  - `account_slug` string
  - `git_provider` string
  - `deploy_hook` string
  - `capabilities` object
  - `processing_settings` object
    - `html` object
      - `pretty_urls` boolean
  - `build_settings` RepoInfo
    - `id` integer
    - `provider` string
    - `deploy_key_id` string
    - `repo_path` string
    - `repo_branch` string
    - `dir` string
    - `functions_dir` string — The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file.
    - `cmd` string — The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value.
    - `allowed_branches` string[]
    - `public_repo` boolean
    - `private_logs` boolean
    - `repo_url` string
    - `env` object
    - `installation_id` integer
    - `stop_builds` boolean — When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API.
  - `id_domain` string
  - `default_hooks_data` object
    - `access_token` string
  - `build_image` string
  - `prerender` string
  - `functions_region` string
  - `prevent_non_git_prod_deploys` boolean

## Other responses

- `default` — error

---

[API](https://skmtc.net/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.net/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/revisions/71540d1b5d9d/schema)
