---
title: "Turn"
method: POST
path: "/api/v1/page-agent/pages/{page_id}/turn"
tags: ["page-agent"]
---

# Turn

`POST /api/v1/page-agent/pages/{page_id}/turn`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/v1/page-agent/pages/{page_id}/turn`
- Auth: HTTP bearer

## Path parameters

- `page_id` string, uuid, required

## Headers

- `X-Org-Id` string, nullable

## Request body

- Turn
  - `message` string, required
  - `history` Message[]
    - `role` 'user' | 'assistant', required
    - `content` string, required
  - `selected_block_id` string, uuid, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
