If you receive HTML as a response of “Bad Request” instead of JSON, it is possible the POST body parameter is not valid JSON. For example, if you send this invalid JSON:Documentation Index
Fetch the complete documentation index at: https://ayrshare.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
post, the post text has a double set of ” quotes without escaping, and a missing end quote on platform. The valid JSON should be:
text/plain.
We recommend trying the call in Postman, which can help correct JSON formatting. Please see the next section for more information.
Validate JSON
You can validate your JSON by using either an online linter, such as https://jsonlint.com/ or using Postman. You may also use our/validate/json endpoint:
