---
title: "Create a context"
method: POST
path: "/v1/contexts"
tags: ["Context"]
---

# Create a context

`POST /v1/contexts`

## Request

- Base URL: `https://api.semilattice.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.semilattice.ai/v1/contexts`
- Auth: none declared

Create a context from a name and its text. It is attached to every
simulation planned against it, so simulation inputs need not repeat it.

## Headers

- `authorization` string

## Request body

- CreateContextBody
  - `name` string, required: A short name, e.g. the product's name
  - `body` string, required: Markdown describing the organisation or product: what it is, who uses it, what it competes with, how it is priced

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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