POST/api/v6/callblasting/audios

Upload a pre-recorded audio

Puts an audio in your catalog to reuse across as many calls as you want.

Scope and limits

Scope

API key with the callblasting service enabled

Usage limit

30 requests per minute

  • Accepted formats: wav, mp3, ogg and m4a. Up to 20 MB.

Uploads a pre-recorded audio that stays in your catalog to reuse across as many calls as you want. Accepts wav, mp3, ogg and m4a, up to 20 MB, and we prepare it for the voice network.

Returns an id you later send as audioId when creating a call. Uploading the same audio twice returns the same id: nothing is duplicated.

Request body

multipart/form-data
file
filerequired
Audio file (wav, mp3, ogg or m4a; max 20 MB).
name
stringoptional
Optional label to identify the audio (max 120 characters).

Responses

201

Audio uploaded, or reused if it already existed.

{
  "success": true,
  "data": {
    "id": "01J9Z4M7K2QABCDEF5GHTV3WXY",
    "durationMs": 4200,
    "format": "mp3",
    "sizeBytes": 67200,
    "cached": false
  },
  "meta": {
    "requestId": "8f0c0e2a4b1d4c8fae2b7a91e0c5d3f6",
    "timestamp": "2026-06-23T15:04:05+00:00",
    "responseTimeMs": 180.4
  }
}
400

Missing file, unsupported format, or the audio could not be processed.

401

Invalid or missing credentials.

403

The API key does not have the callblasting service enabled.

413

The audio is empty or exceeds the maximum allowed size.

429

Request limit exceeded.

Possible errors

Codes this endpoint can return in error.code. The full detail lives in the catalog.

See the full catalog
POST /api/v6/callblasting/audios
curl -X POST 'https://developers.hablame.co/api/v6/callblasting/audios' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer hk_YOUR_API_KEY' \
  -F 'file=@path/to/file'

Try-It

Run the request against the real API with your own API key.

The key is used only in your browser for this request. It is not stored nor sent anywhere else.

Request body

Audio file (wav, mp3, ogg or m4a; max 20 MB).

Optional label to identify the audio (max 120 characters).

POST https://developers.hablame.co/api/v6/callblasting/audios

Response

You have not sent a request yet.