---
title: "Add context to workspace"
method: POST
path: "/v1/context/text"
tags: ["Context"]
---

# Add context to workspace

`POST /v1/context/text`

## Request

- Base URL: `https://app.nex.ai/api/developers`
- URL: `https://app.nex.ai/api/developers/v1/context/text`
- Auth: API key in header `Authorization`

Add arbitrary context through unstructured text. This endpoint allows you to provide contextual information about (new or existing) people or companies. Returns an artifact_id that can be used to retrieve the processing results via GET /v1/context/artifacts/{artifact_id}.

## Request body

- DeveloperAddContextTextRequest
  - `content` string, required: The unstructured text containing context information about people, companies, or other entities
  - `context` string: Optional additional context about the content (e.g., source, type of activity)

## Response `200`

Context processing initiated, returns artifact_id for retrieving results

- DeveloperAddContextTextResponse
  - `artifact_id` integer: Unique identifier for the processing artifact. Use this ID to retrieve results via GET /v1/context/artifacts/{artifact_id}

## Other responses

- `400`: Bad request - Invalid data
- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

## Changes

- **2026-02-17** `b05d8cb8cf43`: 1 info
  - api operation id `addContext` was added
- **2025-11-28** `abb2dae0d348`: 1 breaking
  - the `artifact_id` response's property type changed from `string` to `integer` for status `200`
- **2025-11-28** `cf119e071036`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2025-09-22** `6cf7b0967c6a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nex/apis/nex-developer-api/changes/v1/context/text/post.md)

---

[API](https://skmtc.dev/nex/apis/nex-developer-api.md) - [All operations](https://skmtc.dev/nex/apis/nex-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nex/apis/nex-developer-api/revisions/51003af13108?raw)
