Knowledge
List Knowledge Files
List knowledge files for a project. Always returns project-scope files; conditionally includes agent- and/or test-case-scope files when their IDs are passed as query parameters.
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.| Scope | Path on storage | Visible to |
|---|---|---|
project | {projectId}/project/ | Every run in the project |
agent | {projectId}/agent/{agentId}/ | Runs that use the given agent |
test_case | {projectId}/test_case/{testCaseId}/ | Runs that execute the given test |
Path Parameters
The nunu.ai project ID. Must match the project the API key is scoped to.
Query Parameters
Include files from
agent/{agent_id}/ in the response.Include files from
test_case/{test_case_id}/ in the response.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
Echo of the path parameter.
Total number of files across all included sections.
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
Basename of the file (no directory prefix).
Path of the file relative to the scope root (may include subdirectories).
File size in bytes.
ISO 8601 timestamp when the file was last written.
Object ETag.
Only present when
include_metadata=true and a sidecar metadata file exists.Authorizations
API key for authentication
Path Parameters
The nunu.ai project ID. Must match the project the API key is scoped to.
Query Parameters
Include files from agent/{agent_id}/ in the response.
Include files from test_case/{test_case_id}/ in the response.
When true, attach parsed metadata (description, summary, keywords) for each file from its .{name}.meta.json sidecar.
Response
Successful response