---
title: "Upload files to a chat session's git repository"
method: POST
path: "/chat/files/upload/{chat_id}"
tags: ["chat"]
---

# Upload files to a chat session's git repository

`POST /chat/files/upload/{chat_id}`

## Path parameters

- `chat_id` string, uuid, required

## Response `200`

Files uploaded successfully

- UploadFilesResponse
  - `files_uploaded` integer, required

## Other responses

- `400` — Bad request - invalid request format or no files provided
- `401` — Unauthorized - invalid or missing API key
- `404` — Chat session not found
- `413` — Payload too large - file size or total size exceeds limits
- `500` — Internal server error

---

[API](https://skmtc.net/structifyai/apis/structify.md) · [All operations](https://skmtc.net/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/structifyai/structify/versions/1364930b6980/schema)
