> 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

Adds a file to the agent which will be available for all users.

<figure><img src="https://2455207419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZwCwAN15BUJcXMA5avi%2Fuploads%2Fch1Yq5DfoBLgXjpzdF3s%2Fimage.png?alt=media&amp;token=fcb8387e-833c-4ebc-ac81-72f71f2563d6" alt=""><figcaption></figcaption></figure>

**Type:** POST

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

**Parameters:**&#x20;

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