---
title: ข้อมูลอ้างอิง API: Transcriptions
description: Platform API v1 ส่วน Transcriptions: path, พารามิเตอร์, ฟิลด์ของคำขอและคำตอบ, scope, idempotency และข้อผิดพลาดของทุก operation จาก contract
url: https://agentlab.cresclab.com/docs/th/api/transcriptions
language: th
updated: 2026-12-05
---

# ข้อมูลอ้างอิง API: Transcriptions

Platform API v1 ส่วน Transcriptions: path, พารามิเตอร์, ฟิลด์ของคำขอและคำตอบ, scope, idempotency และข้อผิดพลาดของทุก operation จาก contract

> [!NOTE]
> สร้างจาก API contract (Agent Lab Platform API 1.0.0-alpha.1) คำอธิบายเป็นภาษาอังกฤษตามต้นฉบับใน contract

A member's speech turned into text, metered as that member's voice input.

## Turn a member's speech into text

`POST /v1/workspaces/{workspaceId}/transcriptions`

Transcribes the acting member's dictation, as the console's microphone does before a
message is sent; nothing is stored and no conversation is started. The audio is a mono
16 kHz 16-bit PCM WAV of at most two minutes, sent base64-encoded. It is metered as the
member's voice input against the workspace's monthly audio-minute allowance and its
spending limits, which are checked before the audio is sent; a workspace whose plan has no
voice input is `PRODUCT_ACCESS_DENIED`. Needs an active member. A retried request is
transcribed and metered again.

| Scope | ทำในนามของ | การยืนยันตัวตน | Idempotency-Key |
| --- | --- | --- | --- |
| `runs:write` | `member` | `installationToken` | — |

### พารามิเตอร์

| ชื่อ | ตำแหน่ง | ชนิด | จำเป็น | คำอธิบาย |
| --- | --- | --- | --- | --- |
| `workspaceId` | path | `string` | ใช่ | The workspace, by id. It must be the installation's. |
| `Agentlab-On-Behalf-Of` | header | `string` | ใช่ | The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again. |

### เนื้อหาคำขอ

`application/json`: [TranscriptionCreate](https://agentlab.cresclab.com/docs/th/api/schemas.md#TranscriptionCreate)

| ฟิลด์ | ชนิด | จำเป็น | คำอธิบาย |
| --- | --- | --- | --- |
| `audio` | `string` | ใช่ | A mono 16 kHz 16-bit PCM WAV of at most two minutes, base64-encoded. |

### คำตอบ

| สถานะ | เนื้อหา | คำอธิบาย |
| --- | --- | --- |
| `200` | `application/json`: [Transcription](https://agentlab.cresclab.com/docs/th/api/schemas.md#Transcription) | The text. |
| `400` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | The request itself is wrong, such as a `cursor` this list did not answer (`recovery: none`). |
| `401` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | No token, or a token the platform does not honor. |
| `402` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | `TRANSCRIPTION_BUDGET_REFUSED`: the workspace's monthly audio-minute allowance or a spending limit refuses the audio; nothing was transcribed (`configure`). |
| `403` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | Refused: `SCOPE_NOT_GRANTED` (`configure`); `WORKSPACE_NOT_INSTALLED`, the path names a workspace other than the installation's (`configure`); `MEMBER_REQUIRED`, no single `Agentlab-On-Behalf-Of` (`none`); `MEMBER_NOT_AUTHORIZED`, the named account is not a current member who signed in to the application here, or the member may not read or do this (`authorize`); `SERVER_TO_SERVER_ONLY`, sent from a browser (`none`); `PRODUCT_ACCESS_DENIED`, the workspace's plan does not include it (`configure`). |
| `404` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | No such operation or resource. |
| `413` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | The body is larger than the operation accepts (`PAYLOAD_TOO_LARGE`, `recovery: none`). |
| `429` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | Rate limited (`recovery: retry`). |
| `503` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | Try again later (`recovery: retry`). |
