Getting Started

Uploading audio

Getting started

In order to send audio to the Audio API, you can do so by sending a POST request to the (opens in a new tab) endpoint.

To upload audio, simply submit a form with a form field called recording with your audio as value.

A lot like images, audio uploads also allow for metadata through the metadata form field.


const axios = require('axios');
const fs = require('fs');
const apiKey = 'YOUR_API_TOKEN';
const url = '';
const formData = new FormData();
formData.append('recording', yourAudioBlob);
// Optional metadata field (JSON string)
formData.append("metadata", JSON.stringify({
    name: 'My audio',
    description: 'This is a recording of something cool",
    // or any other field
}));, formData, {
    headers: {
        Authorization: apiKey,
}).then(res => {
}).catch(err => {