---
title: "Get Ai Context"
method: POST
path: "/api/v1/content/properties/{property_id}/ai/context"
tags: ["Content AI"]
---

# Get Ai Context

`POST /api/v1/content/properties/{property_id}/ai/context`

Return grounding context for the editor AI menu.

Retrieves PUBLIC-audience KB chunks for the property.
No LLM call — retrieval only.

## Path parameters

- `property_id` string, uuid, required

## Request body

- AIContextRequest
  - `query` string, required
  - `mode` 'generate' | 'edit', required

## Response `200`

Successful Response

- AIContextResponse
  - `property_name` string, required
  - `chunks` AIContextChunk[], required
    - `content` string, required
    - `title` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/content/properties/:property_id/ai/context/post.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/a9141b6e4e7e/schema)
