transcript

Upload a media file

Changed on

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>

post/v2/upload

Request

  • Base URL
    https://api.assemblyai.com
  • URL
    https://api.assemblyai.com/v2/upload
  • Auth
    API key in header Authorization

Request body application/octet-stream

string binary required

Response

Media file uploaded successfully

upload_urlstring url required

A URL that points to your audio file, accessible only by AssemblyAI's servers

Example response

{
  "upload_url": "https://cdn.assemblyai.com/upload/f756988d-47e2-4ca3-96ce-04bb168f8f2a"
}

Changes