---
title: "Add Custom Context"
method: POST
path: "/api/add_context"
---

# Add Custom Context

`POST /api/add_context`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/add_context`
- Auth: none declared

Add a new row to custom_context with the user's team.

- description: required in body
- channel_id: optional list of channel IDs (e.g., ["C123", "C456"]) or None for all channels
- chat_enabled: optional in body
- enabled: optional in body
Other fields (id, created_at) are auto-filled by DB defaults.

## Request body

- AddContextRequest: Request model for adding a custom context row.
  - `description` string, required
  - `channel_id` string[], nullable
  - `chat_enabled` boolean, nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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