---
title: "POST /v1/context/construct"
method: POST
path: "/v1/context/construct"
---

# POST /v1/context/construct

`POST /v1/context/construct`

## Request

- Base URL: `https://thumbgate.ai`
- URL: `https://thumbgate.ai/v1/context/construct`
- Auth: HTTP bearer

## Request body

- object
  - `query` string
  - `maxItems` integer
  - `maxChars` integer
  - `namespaces` string[]
  - `strategy` 'summarize-then-expand'
  - `contextEnvelope` object
    - `goal` string, required
    - `businessData` string[], required
    - `examples` string[], required
    - `procedures` string[], required
    - `constraints` string[], required
    - `rubric` string[], required

## Response `200`

Context pack created

## Other responses

- `400`: Invalid namespace selection
- `401`: Unauthorized

---

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