---
title: "Files Create"
method: POST
path: "/agents/files/"
tags: ["agents"]
---

# Files Create

`POST /agents/files/`

Upload a file for agent chat. Returns a file_id to reference in chat messages.

## Headers

- `Authorization` string, required

## Response `201`

- AgentFileUploadResponse — Response schema for POST /agents/files/.
  - `file_id` string, required
  - `filename` string, required
  - `content_type` string, required
  - `size_bytes` integer, required
  - `kind` string, required

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
