---
title: "Get Context"
method: POST
path: "/v1/context"
tags: ["query"]
---

# Get Context

`POST /v1/context`

Return raw context (chunks + facts) without LLM answer - for frontend AI SDK.

## Request body

- ContextRequest
  - `workspace_id` string, uuid, required
  - `prompt` string, required
  - `vault_ids` string[], nullable
  - `top_k` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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