Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"Slug": "uploadfile",
"Description": "Upload a media file to AssemblyAI\u0027s servers.\n\n\u003CNote\u003ETo upload a media file to our EU server, replace \u0060api.assemblyai.com\u0060 with \u0060api.eu.assemblyai.com\u0060.\u003C/Note\u003E\n\u003CWarning\u003ERequests 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 \u0060403\u0060 error and \u0022Cannot access uploaded file\u0022 message.\u003C/Warning\u003E",
"Language": "http",
"Code": "### Upload a media file\n# @name uploadFile\nPOST {{host}}/v2/upload\nAuthorization: {{api_key}}\nContent-Type: application/octet-stream\nAccept: application/json, text/plain\n\n## Responses\n# 200\n# Description: Media file uploaded successfully\n# Content-Type: application/json\n# 400\n# Description: Bad request\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# Content-Type: application/json\n# 403\n# Description: Cannot access uploaded file\n# Content-Type: application/json\n# 404\n# Description: Not found\n# Content-Type: application/json\n# 422\n# Description: Upload failed (for example, when the request body is empty). The response body is plain text, not JSON.\n\n# Content-Type: text/plain\n# 429\n# Description: Too many requests\n# Content-Type: application/json\n# 500\n# Description: An error occurred while processing the request\n# Content-Type: application/json\n# 503\n# Description: Service unavailable\n# 504\n# Description: Gateway timeout",
"Code": "### Upload a media file\n# @name uploadFile\nPOST {{host}}/v2/upload\nAuthorization: {{api_key}}\nContent-Type: application/octet-stream\nAccept: application/json, text/plain\n\n\u003C ./request.bin\n\n## Responses\n# 200\n# Description: Media file uploaded successfully\n# Content-Type: application/json\n# 400\n# Description: Bad request\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# Content-Type: application/json\n# 403\n# Description: Cannot access uploaded file\n# Content-Type: application/json\n# 404\n# Description: Not found\n# Content-Type: application/json\n# 422\n# Description: Upload failed (for example, when the request body is empty). The response body is plain text, not JSON.\n\n# Content-Type: text/plain\n# 429\n# Description: Too many requests\n# Content-Type: application/json\n# 500\n# Description: An error occurred while processing the request\n# Content-Type: application/json\n# 503\n# Description: Service unavailable\n# 504\n# Description: Gateway timeout",
"Format": "http",
"OperationId": "uploadFile",
"Setup": null
Expand Down