Skip to main content
GET
Permission Required: any API key scoped to the requested project
Knowledge endpoints are served by the bouncer service at https://bouncer.nunu.ai, not the main nunu.ai/api/v1 host. Use the same X-Api-Key header for authentication.
Knowledge files are user-uploaded reference material (design docs, specs, guides, etc.) that nunu agents can read while running. Files are organized by scope: This endpoint always returns project-scope files, and optionally appends agent- and/or test-case-scope files when their IDs are passed as query parameters.

Path Parameters

string
required
The nunu.ai project ID. Must match the project the API key is scoped to.

Query Parameters

string
Include files from agent/{agent_id}/ in the response.
string
Include files from test_case/{test_case_id}/ in the response.
boolean
default:"false"
When true, attach the parsed metadata (description, summary, keywords) for each file. Metadata is stored alongside each file as a hidden .{name}.meta.json sidecar.

Response

string
required
Echo of the path parameter.
integer
required
Total number of files across all included sections.
Section[]
required
One section per scope returned. The project section is always present; other sections are only present when the corresponding query parameter is set.

File Object

string
required
Basename of the file (no directory prefix).
string
required
Path of the file relative to the scope root (may include subdirectories).
integer
required
File size in bytes.
string
required
ISO 8601 timestamp when the file was last written.
string
required
Object ETag.
object
Only present when include_metadata=true and a sidecar metadata file exists.

Authorizations

X-Api-Key
string
header
required

API key for authentication

Path Parameters

projectId
string
required

The nunu.ai project ID. Must match the project the API key is scoped to.

Query Parameters

agent_id
string

Include files from agent/{agent_id}/ in the response.

test_case_id
string

Include files from test_case/{test_case_id}/ in the response.

include_metadata
boolean
default:false

When true, attach parsed metadata (description, summary, keywords) for each file from its .{name}.meta.json sidecar.

Response

Successful response

projectId
string
required

Echo of the path parameter.

count
integer
required

Total number of files across all included sections.

sections
object[]
required

One section per scope returned. The project section is always present; other sections only appear when their query param is set.