---
title: "Create chat file download URL"
method: POST
path: "/api/v2/chats/files/{file}/download-url"
tags: ["Chats"]
---

# Create chat file download URL

`POST /api/v2/chats/files/{file}/download-url`

## Path parameters

- `file` string, uuid, required

## Response `200`

OK

- CodersdkChatFileDownloadURLResponse
  - `expires_at` string, date-time
  - `mime_type` string
  - `name` string
  - `sha256` string
  - `size_bytes` integer
  - `url` string, uri

## Changes

- **2026-08-26** `4e2ba40f72eb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/coder/apis/coder-api/changes/api/v2/chats/files/:file/download-url/post.md)

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
