POST
/
audio_to_midi
import requests

url = "https://api.example.com/api/public/v1/audio_to_midi"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}

payload = {
    "audio_path": "https://example.com/audio_file.wav",
    "sonify_midi": True,
    "save_note_events": True,
    "webhook_url": "https://your-webhook-url.com/callback"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
{
  "success": true,
  "task_id": "task789",
  "message": "MIDI conversion task queued successfully"
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data

Response

200
application/json

MIDI conversion task initiated successfully

The response is of type object.