---
title: "Get context entry by ID"
method: GET
path: "/v1/context/{id}"
tags: ["Context"]
---

# Get context entry by ID

`GET /v1/context/{id}`

Returns a specific context entry by ID for the authenticated organization. Supports both API key authentication (X-API-Key header) and session authentication (Bearer token or cookies).

## Path parameters

- `id` string, required

## Response `200`

Context entry retrieved successfully

- object
  - `id` string
  - `organizationId` string
  - `question` string
  - `answer` string
  - `tags` string[]
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `authType` 'api-key' | 'session'

## Other responses

- `401` — Unauthorized - Invalid or missing authentication
- `404` — Context entry not found
- `500` — Internal server error

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/6e22489e33cb/schema)
