Read a file in the app's sandbox, or list a folder.
Reads one file of the app's code, or lists a folder's files and subfolders, so an agent sees what is there before it edits. A folder path always lists. The kernel's own files are readable; the writable boundary applies only to POST .../sandbox/edit.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
clientportal-ai. readonlyOAuthPrivate IntegrationSub-Account TokenRequest
Headers
The API version.
v3v3Path Parameters
Project identifier.
Possible values: Value must match regular expression ^prj_[A-Za-z0-9_-]+$
prj_01HXQ8Z6J9K2Body
The file or folder, relative to the workspace root.
apps/clientportal-custom-app/pagesList the path even when it is a file's folder; a folder path lists either way.
falseResponse
The file, or the folder's entries.
file carries the file's content; list the folder's entries.
filelistfileThe file's content, encoded as encoding says.
<template><h1>Welcome</h1></template>
The file's size in bytes.
38base64 for a binary file, such as an image.
utf-8base64utf-8The folder's files and subfolders, sorted by name.