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

# Add Custom Context

`POST /api/add_context`

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.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/versions/2e2a6de8aeda/schema)
