Upload a media file

Upload a media file to AssemblyAI's servers. <Note>To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`.</Note> <Warning>Requests to transcribe uploaded files must use an API key from the same project as the key that was used to upload the file. If you use an API key from a different project you will get a `403` error and "Cannot access uploaded file" message.</Warning>

Authentication

Authorizationstring
API Key authentication via header

Request

This endpoint expects binary data of type application/octet-stream.

Response

Media file uploaded successfully
upload_urlstringformat: "url"
A URL that points to your audio file, accessible only by AssemblyAI's servers

Errors