> For the complete documentation index, see [llms.txt](https://docs.aicrisk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aicrisk.com/server-admin/api-access/chat/add-files-to-agent.md).

# Add Files to Agent

<figure><img src="/files/teRTxdyvBQsCbI1Ra3zO" alt=""><figcaption></figcaption></figure>

**Type:** POST

**End Point:** /api/Chat/AddFilesToAgent/{agentid}

**Parameters:**&#x20;

* **agentid-string (path)**
  * *Description: ID of the agent*
