---
title: "Workspace: File Share"
method: POST
path: "/v1/agents/{agent_id}/workspace/file_share"
tags: ["API v1", "Agents", "Agents Workspace"]
---

# Workspace: File Share

`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)
- URL: `https://api.xpander.ai/v1/agents/{agent_id}/workspace/file_share`
- Auth: API key in header `x-api-key`

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

## Path parameters

- `agent_id` string, required

## Request body

- FileShareRequest
  - `path` string, required: Relative path to the file in the workspace to share publicly.

## Response `200`

Successful Response

- FileShareResponse
  - `url` string, required: Public CDN URL for the shared file

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/725c0066d5df?raw)
