---
title: "Read project context resource"
method: GET
path: "/websiteKnowledge/{resourceId}/read"
tags: ["Project Context"]
---

# Read project context resource

`GET /websiteKnowledge/{resourceId}/read`

## Request

- Base URL: `https://api.cactal.ai/v1`
- URL: `https://api.cactal.ai/v1/websiteKnowledge/{resourceId}/read`
- Auth: HTTP bearer

Read a bounded line range from a project context document. Read short relevant documents directly; search large documents first. Do not reread sufficient search passages.

## Path parameters

- `resourceId` string, required

## Query parameters

- `startLine` integer
- `endLine` integer

## Response `200`

The resolved line range and content.

- object
  - `resourceId` string, required
  - `filename` string, required
  - `startLine` integer, required
  - `endLine` integer, required
  - `totalLines` integer, required
  - `content` string, required
  - `truncated` boolean, required

## Other responses

- `400`: Validation failed. The response `message` names the first invalid field.
- `401`: Missing, invalid, expired, or revoked API key.
- `403`: The authenticated principal lacks the required capability.
- `404`: The resource does not exist or is outside the principal’s access scope.
- `429`: Rate limit exceeded. Retry after the number of seconds in the `Retry-After` header.

---

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