---
title: "Generate pre-signed S3 upload URL for voice message audio"
method: POST
path: "/v2/chats/{id}/voice-message/upload-url"
tags: ["Chats v2"]
---

# Generate pre-signed S3 upload URL for voice message audio

`POST /v2/chats/{id}/voice-message/upload-url`

## Path parameters

- `id` string, required

## Response `200`

- object
  - `uploadUrl` string — Pre-signed S3 upload URL
  - `audioS3Key` string — S3 key for later reference

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
