> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get site

> Retrieves metadata and publishing state for one Webflow site.

`webflow.getSite` retrieves metadata and publishing state for one Webflow site.

## Example

```ts automations/webflow-get-site.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { webflow } from "automate.ax/webflow"

export default automation("Get site", () => {
  onDashboardRun({ title: "Get site" })

  webflow.getSite({
    siteId: "site-id",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires the `sites:read` OAuth scope.

| Field    | Type     | Required | Description      |
| -------- | -------- | -------- | ---------------- |
| `siteId` | `string` | Yes      | Webflow site ID. |

## Output

Returns an object with the fields below. Automate.ax converts provider `Date` values to ISO 8601 strings.

| Field                   | Type                             | Description                            |
| ----------------------- | -------------------------------- | -------------------------------------- |
| `id`                    | `string`                         | Webflow `id` value.                    |
| `workspaceId`           | `string`                         | Webflow `workspaceId` value.           |
| `createdOn`             | `string`                         | Webflow `createdOn` value.             |
| `displayName`           | `string`                         | Webflow `displayName` value.           |
| `shortName`             | `string`                         | Webflow `shortName` value.             |
| `lastPublished`         | `string`                         | Webflow `lastPublished` value.         |
| `lastUpdated`           | `string`                         | Webflow `lastUpdated` value.           |
| `previewUrl`            | `string`                         | Webflow `previewUrl` value.            |
| `timeZone`              | `string`                         | Webflow `timeZone` value.              |
| `parentFolderId`        | `string`                         | Webflow `parentFolderId` value.        |
| `customDomains`         | `Webflow.Domain[]`               | Webflow `customDomains` value.         |
| `locales`               | `Webflow.Locales`                | Webflow `locales` value.               |
| `dataCollectionEnabled` | `boolean`                        | Webflow `dataCollectionEnabled` value. |
| `dataCollectionType`    | `Webflow.SiteDataCollectionType` | Webflow `dataCollectionType` value.    |
