> 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.

# UploadStaticClip

POST https://api//api/public/voice/UploadStaticClip
Content-Type: multipart/form-data

Upload a static voice clip (your own recording, sent as is) for a `STATIC` voice step, as a multipart `file` part whose own `Content-Type` is the audio's MIME type. The clip may be at most **50 seconds** long and 25 MiB large. Returns the `clipId` to use in the sequence step, the measured duration and a best-effort transcript. Never clones a voice. The optional `name` part is not stored yet; identify a clip by its `clipId`.

Quality findings (no detected speech, clipping) come back as `warnings` with a null `clipId` and `s3Key`, and nothing is stored; re-submit the same audio with `ignoreSoftWarnings=true` to store it. `transcriptStatus` and `transcriptFailureReason` say why a transcript is absent; the clip is stored either way.

### Errors

- **400** `VOICE_AUDIO_MISSING`, `VOICE_AUDIO_TOO_LARGE`, `VOICE_AUDIO_UNSUPPORTED` or `VOICE_AUDIO_DURATION_OUT_OF_RANGE`: change the file.
- **403** `NO_ACTIVE_SUBSCRIPTION` or `VOICE_NOTES_NOT_ENABLED`.
- **503** `VOICE_AUDIO_PROCESSING_UNAVAILABLE`: the audio could not be processed on our side. Transient, so retry the same file in a few minutes.

Reference: https://docs.heyreach.io/hey-reach-api/voice/upload-static-clip

## Request

### Query parameters

- `ignoreSoftWarnings` (boolean, optional) — Set to true to store the clip despite the warnings a previous call returned for the same audio. Defaults to false.

### Headers

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

### Body (multipart/form-data)

This endpoint expects a multipart form containing a file.

- `file` (file, required) — The clip, at most 50 seconds and 25 MiB. The part's own `Content-Type` must be the audio's MIME type.
- `name` (string, optional) — Not stored yet.

## Response

### 200

OK

- `clipId` (integer, required, nullable) — The stored clip's id, for `staticClipId` in a sequence step. Null on a warning response.
- `durationMs` (integer, required)
- `transcriptStatus` (enum, required) — DONE, NO_SPEECH or FAILED for a stored clip; NONE on a warning response.
  - Allowed values: `NONE`, `DONE`, `NO_SPEECH`, `FAILED`
- `warnings` (list of UploadStaticClipVoiceResponseWarningsItem, required) — Soft findings: `NO_SPEECH` or `LOW_QUALITY`.
- `s3Key` (string, optional, nullable) — Storage key. Null on a warning response; never needed by API callers.
- `transcript` (string, optional, nullable)
- `transcriptFailureReason` (string, optional, nullable) — Set only when `transcriptStatus` is FAILED: `PROVIDER_ERROR`, `NOT_CONFIGURED`, `OUT_OF_CREDITS`, `TEMPORARILY_UNAVAILABLE` or `AUDIO_REJECTED`.

## Errors

### 400 Upload Static Clip Voice Request Bad Request Error

Bad Request. `VOICE_AUDIO_MISSING`: no `file` part, or an empty file. `VOICE_AUDIO_TOO_LARGE`: the file is over 25 MiB. `VOICE_AUDIO_UNSUPPORTED`: the file's `Content-Type` is not an accepted audio type, or the audio could not be decoded. `VOICE_AUDIO_DURATION_OUT_OF_RANGE`: the clip is longer than 50 seconds, or its length could not be read.

- `errorMessage` (string, required)
- `errorCode` (enum, optional)
  - Allowed values: `PAGING_OUT_OF_RANGE`

### 403 Upload Static Clip Voice Request Forbidden Error

Forbidden. `NO_ACTIVE_SUBSCRIPTION`: the workspace has no active subscription. `VOICE_NOTES_NOT_ENABLED`: voice notes are not enabled for the workspace.

- `errorMessage` (string, required)
- `errorCode` (enum, optional)
  - Allowed values: `NO_ACTIVE_SUBSCRIPTION`, `VOICE_NOTES_NOT_ENABLED`, `ELEVENLABS_NOT_ENABLED`

### 503 Upload Static Clip Voice Request Service Unavailable Error

Service Unavailable. `VOICE_AUDIO_PROCESSING_UNAVAILABLE`: the audio could not be processed on our side; this is a server fault, not a problem with the file. Transient, so retry the same file in a few minutes.

- `errorMessage` (string, required)
- `errorCode` (enum, optional)
  - Allowed values: `VOICE_AUDIO_PROCESSING_UNAVAILABLE`

## Types

### UploadStaticClipVoiceResponseWarningsItem

- `code` (string, required)
- `message` (string, required)

## Examples

**Request**

```json
{
  "file": "<file: <file1>>"
}
```

**Response**

```json
{
  "clipId": 4521,
  "durationMs": 18400,
  "transcriptStatus": "DONE",
  "warnings": [
    {
      "code": "code",
      "message": "message"
    }
  ],
  "s3Key": "<string>",
  "transcript": "Hi Anna, thanks for connecting..."
}
```

**SDK Code**

```python
import requests

url = "https://api//api/public/voice/UploadStaticClip"

files = { "file": "open('<file1>', 'rb')" }
payload = { "name":  }
headers = {"X-API-KEY": "<string>"}

response = requests.post(url, data=payload, files=files, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api//api/public/voice/UploadStaticClip';
const form = new FormData();
form.append('file', '<file1>');
form.append('name', '');

const options = {method: 'POST', headers: {'X-API-KEY': '<string>'}};

options.body = form;

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api//api/public/voice/UploadStaticClip"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")

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

	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/voice/UploadStaticClip")

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

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<string>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

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.post("https://api//api/public/voice/UploadStaticClip")
  .header("X-API-KEY", "<string>")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api//api/public/voice/UploadStaticClip', [
  'multipart' => [
    [
        'name' => 'file',
        'filename' => '<file1>',
        'contents' => null
    ]
  ]
  'headers' => [
    'X-API-KEY' => '<string>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api//api/public/voice/UploadStaticClip");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-KEY", "<string>");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"<file1>\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-KEY": "<string>"]
let parameters = [
  [
    "name": "file",
    "fileName": "<file1>"
  ],
  [
    "name": "name",
    "value": 
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://api//api/public/voice/UploadStaticClip")! 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()
```