What happened
The API could not accept your request because something in it is missing, wrongly written or not allowed. It answered 400 INVALID_REQUEST, and the message says exactly what to fix. Nothing was started.
Why it happens
The message names the one thing that is wrong. The common causes are:
- The body is not valid JSON, or it is not a JSON object.
- A field the API does not know. Request bodies are strict: a misspelled or extra field, such as
dirizeinstead ofdiarize, is refused so that the typo does not go unnoticed. The message lists the fields that are allowed. - The file source is wrong. A transcription needs exactly one of
upload_idorurl: none of them, or both, is refused. Aurlmust be text, start withhttporhttps, be a valid address and be under 2048 characters. - To transcribe an earlier job again,
source_transcription_idtakes the place ofupload_idandurl, and it must be a job id asPOST /v1/transcribereturned it, and the job must be completed. Sending it together withupload_idorurlis refused. - An option has the wrong type or value.
diarizeandalignmust betrueorfalse;speaker_countis a whole number from 1 to 50 and needsdiarizeto betrue;speech_thresholdis a number from 0 to 1;languagemust be a supported language code such asen,esorfr. - A
webhook_urlthat cannot be used. It must be a validhttps://address, and not a private or internal network address. - A bad
Idempotency-Key. It must be printable ASCII characters, and not empty or longer than the limit named in the message. - A bad query on a list or a read. For
GET /v1/transcriptions: an unknownstatus, afromortothat is not an ISO-8601 time, anorderthat is notdescorasc, alimitoutside the allowed range, or acursorthat is not valid. ForGET /v1/transcribe/{id}: aformatthat is notjson,srt,vttortext, or a caption option that is not valid. - Feedback without enough words. A rating, a problem report or a "no speech" report needs at least 20 characters of your own words.
What to do
- Read the message: it names the field or rule.
- Fix that one thing in the request, and send it again. The same request gives the same answer until you change it.
- Check the field in the API reference, which lists every parameter with its type and allowed values.
- If the message is about a link, check that it is a full address that starts with
https://and opens in a browser.
In Claude, ChatGPT and other AI apps
- You see this when an app that uses an API key or API credits sends the API something it does not accept. The app usually fixes it on its own when you ask it to try again. If it keeps failing, tell the app what you want in plain words (the file or link, the language) and let it build the request again.
Were you charged?
No. Nothing was started, so nothing was used.
Still stuck?
Email support@scriptivox.com with:
- the email address of your Scriptivox account
- the
request_idfrom the answer, and the request you sent with your key left out - when it happened, with your time zone
- the exact message you saw
In Claude, ChatGPT or another AI app, you can also ask it to send us a problem report: it shows you the report first and sends it only when you say yes.
For developers
400 INVALID_REQUEST, answered at once on the request, before any job exists. Sending the same request again never works: change what the message names. The API has dozens of different sentences for this code, each naming one problem. Some of them:
Invalid JSON in request bodyUnknown field(s): {fields}. Allowed: {allowed}.Send either upload_id (from POST /v1/upload) or url.Provide either upload_id or url, not bothspeaker_count requires diarize to be truespeaker_count must be an integer between 1 and 50speech_threshold must be a number from 0 to 1Invalid language code "{language}". Use an ISO 639-1 code (e.g. "en", "es", "fr"). See docs for the full list of supported languages.Invalid webhook_url. Must be a valid HTTPS URL.webhook_url points to a private or internal network addressInvalid URL formatURL must use http or https protocolURL must be under 2048 charactersInvalid Idempotency-Key. Must be 1..{max} printable ASCII characters.Invalid status "{status}". Allowed: {list}.Invalid format "{format}". Allowed: json, srt, vtt, text.A rating needs words: comment or their_words, at least 20 characters.The URL must be a valid https:// address.
For a transcribe-again request, Provide only one of upload_id, url or source_transcription_id. answers a request that sends more than one, and a source_transcription_id that is not a job id (a UUID) is refused as well. A job id that is not one of your jobs is 404 TRANSCRIPTION_NOT_FOUND, and a job that is not completed is refused as INVALID_REQUEST with error.current_status added.
A link to a site that is switched off for links also answers INVALID_REQUEST, with error.reason platform_disabled and error.platform naming the site; that case has its own page.
{
"error": {
"code": "INVALID_REQUEST",
"message": "speaker_count requires diarize to be true",
"docs_url": "https://www.scriptivox.com/errors/request-invalid",
"help_id": "request-invalid",
"request_id": "req_6fe725fffa7d9b98"
}
}