business_knowledge

Read a file from a selected GitHub repository

Reads one file whose path is in the cached file list, at the cached commit. The path must come from the repository search.

get/api/projects/{project_id}/business_knowledge/repositories/file/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/business_knowledge/repositories/file/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

pathstring required

File path returned by the repository search.

repostring required

owner/repo to read. It must already be selected.

Response

repostring required

Lowercased owner/repo.

pathstring required

File path that was read.

urlstring uri required

Permalink for this file at the cached commit. Cite this when you use the file.

contentstring required

File text, cut off at 32,000 characters.

truncatedboolean required

True when content was cut off at 32,000 characters.

Changes

No recorded changes to this operation across all 1 revision of this API.