---
title: "Set Open Pages For Chat"
method: POST
path: "/api/domains/{domain_id}/chat/generated-pages/open-pages"
tags: ["chat_generated_pages"]
---

# Set Open Pages For Chat

`POST /api/domains/{domain_id}/chat/generated-pages/open-pages`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/chat/generated-pages/open-pages`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Upsert the set of pages that are considered open for this chat.
The provided list replaces the previous set for the chat.

## Path parameters

- `domain_id` string, required

## Headers

- `x-view-as` string, nullable

## Request body

- OpenPageBody
  - `chat_id` string, required
  - `page_ids` string[]

## Response `200`

Successful Response

- OpenPageItem[]
  - `page_id` string, required
  - `slug` string, required
  - `title` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
