> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.makimoto.ai/llms.txt.
> For full documentation content, see https://apidocs.makimoto.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.makimoto.ai/_mcp/server.

# Transcribe an audio file or URI

POST https://transcribe
Content-Type: application/json

Submit a file upload OR a URI for batched, server-side transcription. Returns the full transcript inline when `callback_url` is omitted; otherwise returns an accepted body and POSTs the transcript to the callback when ready.

Audio is processed through VAD + diarization + denoise locally, then shipped to the `stt-model` Whisper inference container.

Reference: https://apidocs.makimoto.ai/makimoto-api-docs/transcription/transcribe-an-audio-file-or-uri

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /transcribe:
    post:
      operationId: transcribe-an-audio-file-or-uri
      summary: Transcribe an audio file or URI
      description: >-
        Submit a file upload OR a URI for batched, server-side transcription.
        Returns the full transcript inline when `callback_url` is omitted;
        otherwise returns an accepted body and POSTs the transcript to the
        callback when ready.


        Audio is processed through VAD + diarization + denoise locally, then
        shipped to the `stt-model` Whisper inference container.
      tags:
        - subpackage_transcription
      parameters:
        - name: apikey
          in: header
          description: Optional API key when calling through an API gateway.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Inline mode (no callback_url)
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/transcription_Transcribe an audio file or
                  URI_Response_200
        '400':
          description: Validation error (missing file/uri).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranscribeRequestBadRequestError'
        '401':
          description: Missing or invalid apikey.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranscribeRequestUnauthorizedError'
        '413':
          description: Upload exceeds MAX_UPLOAD_BYTES.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranscribeRequestContentTooLargeError'
        '500':
          description: Unexpected internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranscribeRequestInternalServerError'
        '502':
          description: stt-model returned an error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranscribeRequestBadGatewayError'
        '503':
          description: stt-model not ready
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostTranscribeRequestServiceUnavailableError
        '504':
          description: stt-model unreachable / timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranscribeRequestGatewayTimeoutError'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                uri:
                  type: string
                call_uuid:
                  type: string
                callback_url:
                  type: string
                  format: uri
              required:
                - uri
                - call_uuid
                - callback_url
servers:
  - url: https:/
    description: https://{baseurl}
components:
  schemas:
    TranscribePostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        message:
          type: string
        request_id:
          type: string
        callback_url:
          type: string
          format: uri
      required:
        - message
        - request_id
        - callback_url
      title: TranscribePostResponsesContentApplicationJsonSchemaData
    transcription_Transcribe an audio file or URI_Response_200:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaData
        status:
          type: string
        call_uuid:
          type: string
      required:
        - data
        - status
        - call_uuid
      title: transcription_Transcribe an audio file or URI_Response_200
    TranscribePostResponsesContentApplicationJsonSchemaError:
      type: object
      properties:
        code:
          type: string
        type:
          type: string
        message:
          type: string
      required:
        - code
        - type
        - message
      title: TranscribePostResponsesContentApplicationJsonSchemaError
    PostTranscribeRequestBadRequestError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTranscribeRequestBadRequestError
    PostTranscribeRequestUnauthorizedError:
      type: object
      properties:
        message:
          type: string
        request_id:
          type: string
      required:
        - message
        - request_id
      title: PostTranscribeRequestUnauthorizedError
    PostTranscribeRequestContentTooLargeError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTranscribeRequestContentTooLargeError
    PostTranscribeRequestInternalServerError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTranscribeRequestInternalServerError
    PostTranscribeRequestBadGatewayError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTranscribeRequestBadGatewayError
    PostTranscribeRequestServiceUnavailableError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTranscribeRequestServiceUnavailableError
    PostTranscribeRequestGatewayTimeoutError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TranscribePostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTranscribeRequestGatewayTimeoutError

```

## Examples

### transcription_Transcribe an audio file or URI_example



**Request**

```json
{
  "uri": "s3://your-bucket/recording.wav",
  "call_uuid": "call-abc123",
  "callback_url": "https://hooks.example.com/callback"
}
```

**Response**

```json
{
  "data": {
    "id": "29051cac-89b5-49ec-a932-006c8cc57-0febd3.wav",
    "metadata": {
      "lang": "en",
      "mode": "POST",
      "codec": "",
      "timestamp": 1780635349,
      "sample_rate": 16000,
      "audio_duration": 571.66,
      "num_of_channels": 2,
      "transcribed_mode": "POST"
    },
    "transcript": [
      {
        "text": "Hello, how can I help you today?",
        "time_end": 2.5,
        "speaker_id": 0,
        "time_start": 0,
        "speaker_alias": "Agent"
      },
      {
        "text": "I'd like to check my account balance.",
        "time_end": 5.1,
        "speaker_id": 1,
        "time_start": 1,
        "speaker_alias": "User"
      }
    ]
  },
  "status": "S001",
  "call_uuid": "call-abc123"
}
```

**SDK Code**

```python transcription_Transcribe an audio file or URI_example
import requests

url = "https://https/transcribe"

payload = {
    "uri": "s3://your-bucket/recording.wav",
    "call_uuid": "call-abc123",
    "callback_url": "https://hooks.example.com/callback"
}
headers = {
    "apikey": "{{apikey}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript transcription_Transcribe an audio file or URI_example
const url = 'https://https/transcribe';
const options = {
  method: 'POST',
  headers: {apikey: '{{apikey}}', 'Content-Type': 'application/json'},
  body: '{"uri":"s3://your-bucket/recording.wav","call_uuid":"call-abc123","callback_url":"https://hooks.example.com/callback"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go transcription_Transcribe an audio file or URI_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/transcribe"

	payload := strings.NewReader("{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("apikey", "{{apikey}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby transcription_Transcribe an audio file or URI_example
require 'uri'
require 'net/http'

url = URI("https://https/transcribe")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["apikey"] = '{{apikey}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}"

response = http.request(request)
puts response.read_body
```

```java transcription_Transcribe an audio file or URI_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/transcribe")
  .header("apikey", "{{apikey}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}")
  .asString();
```

```php transcription_Transcribe an audio file or URI_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/transcribe', [
  'body' => '{
  "uri": "s3://your-bucket/recording.wav",
  "call_uuid": "call-abc123",
  "callback_url": "https://hooks.example.com/callback"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'apikey' => '{{apikey}}',
  ],
]);

echo $response->getBody();
```

```csharp transcription_Transcribe an audio file or URI_example
using RestSharp;

var client = new RestClient("https://https/transcribe");
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "{{apikey}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift transcription_Transcribe an audio file or URI_example
import Foundation

let headers = [
  "apikey": "{{apikey}}",
  "Content-Type": "application/json"
]
let parameters = [
  "uri": "s3://your-bucket/recording.wav",
  "call_uuid": "call-abc123",
  "callback_url": "https://hooks.example.com/callback"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/transcribe")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### transcription_Transcribe an audio file or URI_example



**Request**

```json
{
  "uri": "s3://your-bucket/recording.wav",
  "call_uuid": "call-abc123",
  "callback_url": "https://hooks.example.com/callback"
}
```

**Response**

```json
{
  "data": {
    "message": "Transcription request received and is being processed",
    "request_id": "f9f23b27019a553c04c2d4280d37fd42",
    "callback_url": "https://hooks.example.com/callback"
  },
  "status": "S001",
  "call_uuid": "call-abc123"
}
```

**SDK Code**

```python transcription_Transcribe an audio file or URI_example
import requests

url = "https://https/transcribe"

payload = {
    "uri": "s3://your-bucket/recording.wav",
    "call_uuid": "call-abc123",
    "callback_url": "https://hooks.example.com/callback"
}
headers = {
    "apikey": "{{apikey}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript transcription_Transcribe an audio file or URI_example
const url = 'https://https/transcribe';
const options = {
  method: 'POST',
  headers: {apikey: '{{apikey}}', 'Content-Type': 'application/json'},
  body: '{"uri":"s3://your-bucket/recording.wav","call_uuid":"call-abc123","callback_url":"https://hooks.example.com/callback"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go transcription_Transcribe an audio file or URI_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/transcribe"

	payload := strings.NewReader("{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("apikey", "{{apikey}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby transcription_Transcribe an audio file or URI_example
require 'uri'
require 'net/http'

url = URI("https://https/transcribe")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["apikey"] = '{{apikey}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}"

response = http.request(request)
puts response.read_body
```

```java transcription_Transcribe an audio file or URI_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/transcribe")
  .header("apikey", "{{apikey}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}")
  .asString();
```

```php transcription_Transcribe an audio file or URI_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/transcribe', [
  'body' => '{
  "uri": "s3://your-bucket/recording.wav",
  "call_uuid": "call-abc123",
  "callback_url": "https://hooks.example.com/callback"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'apikey' => '{{apikey}}',
  ],
]);

echo $response->getBody();
```

```csharp transcription_Transcribe an audio file or URI_example
using RestSharp;

var client = new RestClient("https://https/transcribe");
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "{{apikey}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"uri\": \"s3://your-bucket/recording.wav\",\n  \"call_uuid\": \"call-abc123\",\n  \"callback_url\": \"https://hooks.example.com/callback\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift transcription_Transcribe an audio file or URI_example
import Foundation

let headers = [
  "apikey": "{{apikey}}",
  "Content-Type": "application/json"
]
let parameters = [
  "uri": "s3://your-bucket/recording.wav",
  "call_uuid": "call-abc123",
  "callback_url": "https://hooks.example.com/callback"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/transcribe")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```