---
title: "Transcribe audio"
method: POST
path: "/api/audio/{agentId}/transcriptions"
tags: ["audio"]
---

# Transcribe audio

`POST /api/audio/{agentId}/transcriptions`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/audio/{agentId}/transcriptions`
- Auth: none declared

Transcribe audio file to text

## Path parameters

- `agentId` string, uuid, required

## Request body `multipart/form-data`

- object
  - `file` string, binary: Audio file to transcribe
  - `userId` string, uuid: ID of the user

## Response `200`

Audio transcribed successfully

- object
  - `success` boolean
  - `data` object
    - `text` string: Transcribed text

## Other responses

- `400`: Invalid request
- `404`: Agent not found
- `415`: Unsupported media type
- `500`: Error transcribing audio

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
