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

# List pages

> Retrieve a list of all your pages with their IDs, titles, and status.

Returns all pages in your account. Use this to discover page IDs before calling other endpoints.

<ParamField header="Authorization" type="string" required>
  Bearer token. Example: `Bearer ew_live_your_key_here`
</ParamField>

## Response

<ResponseField name="pages" type="Page[]" required>
  <Expandable title="Page object" defaultOpen>
    <ResponseField name="id" type="string" required>
      Unique page ID. Use this in other endpoints.
    </ResponseField>

    <ResponseField name="title" type="string" required>
      Page title as shown in the dashboard.
    </ResponseField>

    <ResponseField name="slug" type="string" required>
      URL slug for the page.
    </ResponseField>

    <ResponseField name="handle" type="string" required>
      Shopify page handle.
    </ResponseField>

    <ResponseField name="status" type="string" required>
      Either `draft` or `published`.
    </ResponseField>

    <ResponseField name="template_type" type="string" required>
      Either `page` or `product`.
    </ResponseField>

    <ResponseField name="section_count" type="number" required>
      Number of sections on the page.
    </ResponseField>

    <ResponseField name="created_at" type="string" required>
      ISO 8601 creation timestamp.
    </ResponseField>

    <ResponseField name="updated_at" type="string" required>
      ISO 8601 last update timestamp.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://app.ecomwize.io/api/v1/pages \
    --header 'Authorization: Bearer ew_live_your_key_here'
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://app.ecomwize.io/api/v1/pages",
      headers={"Authorization": "Bearer ew_live_your_key_here"}
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://app.ecomwize.io/api/v1/pages", {
    headers: { "Authorization": "Bearer ew_live_your_key_here" }
  });
  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "pages": [
      {
        "id": "e22f3857-cf0c-49c0-9e44-d76ea0bb7221",
        "title": "Summer Sale Landing Page",
        "slug": "summer-sale-landing",
        "handle": "summer-sale-landing",
        "status": "published",
        "template_type": "page",
        "section_count": 12,
        "created_at": "2026-04-07T13:49:00.965Z",
        "updated_at": "2026-04-08T18:07:59.695Z"
      },
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "title": "Product Launch Landing",
        "slug": "product-launch",
        "handle": "product-launch",
        "status": "draft",
        "template_type": "page",
        "section_count": 8,
        "created_at": "2026-04-06T10:00:00.000Z",
        "updated_at": "2026-04-06T10:00:00.000Z"
      }
    ]
  }
  ```

  ```json 401 theme={null}
  {
    "error": "Authentication failed",
    "message": "Missing or invalid API key",
    "status": 401
  }
  ```
</ResponseExample>
