---
title: "Fetch Site"
method: GET
path: "/workspaces/{workspace_id}/site"
tags: ["Site"]
---

# Fetch Site

`GET /workspaces/{workspace_id}/site`

Fetch the site for a workspace. Sites contain global code settings that apply to all pages and funnels.

## Path parameters

- `workspace_id` integer, required

## Query parameters

- `expand[]` string[]

## Response `200`

OK

- SiteAttributes — Sites represent a workspace's website configuration containing global code settings.
  - `id` integer — Site ID
  - `public_id` string — The public identifier of the site
  - `workspace_id` integer — Workspace ID that the site belongs to.
  - `name` string — Name of the site.
  - `created_at` string, date-time — Created at
  - `updated_at` string, date-time — Updated at
  - `head_code` string, nullable — **Expandable** Custom HTML/JavaScript code injected into the site head section. Only returned when expand[]=head_code is provided. Note: expanding may add latency, especially on list endpoints. Use sparingly.
  - `footer_code` string, nullable — **Expandable** Custom HTML/JavaScript code injected before the closing body tag. Only returned when expand[]=footer_code is provided. Note: expanding may add latency, especially on list endpoints. Use sparingly.
  - `homepage_id` string, nullable — The public id of the page served at the site's root path ("/"). Null when no homepage is configured.
  - `theme_id` string, nullable — Public id of the site's active theme.
  - `blog_theme_id` string, nullable — Public id of the site's blog theme.
  - `store_theme_id` string, nullable — Public id of the site's store theme.

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/myclickfunnels/apis/clickfunnels-api.md) · [All operations](https://skmtc.net/myclickfunnels/apis/clickfunnels-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myclickfunnels/clickfunnels-api/revisions/ae6313eaa176/schema)
