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

# GetVoiceMessageAudio

GET https://api//api/public/inbox/GetVoiceMessageAudio/{accountId}/{conversationId}/{messageId}

Download the audio of a voice message. Take the ids from **GetChatroom**: the conversation's `linkedInAccountId` as `accountId`, its `id` as `conversationId`, and the `messageId` of a message whose `type` is `voice_note`.

The response body is the audio file itself, not JSON, sent with its stored content type - typically `audio/mp4`.

### Errors

- **403** `You do not have an active subscription. Please check your subscription in the account settings and try again.`
- **404** `This conversation does not exist`: no conversation with this id for this sender in your workspace.
- **404** `No audio is available for this message`: the message is not in this conversation, it is not a voice note, or its audio is not available.

Reference: https://docs.heyreach.io/hey-reach-api/inbox/get-voice-message-audio

## Request

### Path parameters

- `accountId` (integer, required) — The LinkedIn account (sender) the conversation belongs to.
- `conversationId` (string, required) — The conversation id.
- `messageId` (string, required) — The `messageId` of the voice message.

### Headers

- `X-API-KEY` (string, optional) — API key header using this scheme. Example: "X-API-KEY: \{API\_KEY}"

## Response

### 200

OK. The audio bytes of the voice message.

- File download.

## Errors

### 403 Get Voice Message Audio Inbox Request Forbidden Error

Forbidden. The workspace has no active subscription.

- `errorMessage` (string, required)

### 404 Get Voice Message Audio Inbox Request Not Found Error

Not Found. The conversation is not found, or the message has no audio.

- `errorMessage` (string, required)

## Examples

**SDK Code**

```python
import requests

url = "https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId"

headers = {"X-API-KEY": "string"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId';
const options = {method: 'GET', headers: {'X-API-KEY': 'string'}};

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

```go
package main

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

func main() {

	url := "https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-KEY", "string")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId")

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

request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = 'string'

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId")
  .header("X-API-KEY", "string")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId', [
  'headers' => [
    'X-API-KEY' => 'string',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-KEY", "string");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-KEY": "string"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api//api/public/inbox/GetVoiceMessageAudio/0/%3AconversationId/%3AmessageId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```