Skip to main content
ElevenLabs Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

API - Error Code 422

value_error: Required value is not provided or is not in the correct format

Section titled “value_error: Required value is not provided or is not in the correct format”

Check https://api.elevenlabs.io/docs#/ to see what parameters are required for the endpoint you are using. Ensure you are setting it properly.

A code 422 of type “cors” most commonly seems to occur when you do not use JSON.stringify() on the request body when using fetch() in JavaScript. It might also occur if you call one of the API from a frontend.

With any unsuccessful API response, be sure to check the response body as it will contain error detail in json format.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu