API v1
Agents
Agents Workspace

Workspace: File Share

Publish a file from the agent's workspace to a public CDN URL for sharing.

post/v1/agents/{agent_id}/workspace/file_share

Request

  • Base URL
    https://api.xpander.ai (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header x-api-key

Path parameters

agent_idstring required

Request body

pathstring required

Relative path to the file in the workspace to share publicly.

Example request

{
  "path": "output/report.csv"
}

Response

Successful Response

urlstring required

Public CDN URL for the shared file

Changes

No recorded changes to this operation across all 5 revisions of this API.