API v1
Agents
Agents Workspace
Workspace: File Read
Read a file from the agent's workspace filesystem. Supports partial reads via line ranges.
post/v1/agents/{agent_id}/workspace/file_read
Request
- Base URLhttps://api.xpander.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
Path parameters
agent_idstring required
Request body
Example request
{
"path": "config.yaml",
"start_line": 1,
"end_line": 50,
"encoding": "utf-8"
}Response
Successful Response
Changes
No recorded changes to this operation across all 5 revisions of this API.