---
title: "Embed Turn"
method: POST
path: "/api/embed/{agent_identity_id}/turn"
tags: ["agent-embed"]
---

# Embed Turn

`POST /api/embed/{agent_identity_id}/turn`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/embed/{agent_identity_id}/turn`
- Auth: none declared

Run one turn of the embedded agent for an anonymous visitor.

## Path parameters

- `agent_identity_id` string, uuid, required

## Headers

- `origin` string, nullable
- `x-agent-visitor` string, nullable

## Request body

- TurnBody
  - `message` string, required
  - `page_path` string, nullable
  - `page_title` string, nullable

## Response `200`

Successful Response

- TurnResponse
  - `visitor_token` string, nullable, required
  - `reply` string, nullable, required
  - `chat_id` string, nullable, required
  - `rejected_reason` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5387b4ded614?raw)
