> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting API Request Errors

> Diagnose and fix common errors when making requests to the Ayrshare API, including authentication, parameters, and response codes, with practical steps.

A few things to check to verify you have all the required information to successfully post, or call any API endpoint.

1. Verify you are sending the API\*KEY, found in the Ayrshare GUI dashboard under API Dashboard, in the header as an [Authorization Bearer](https://www.ayrshare.com/docs/apis/overview.md#authorization) token. Also the proper [Content Type](https://www.ayrshare.com/docs/apis/overview.md#content-type) must be set.
2. For POST calls, validate properly formatted JSON is being sent in the body. Online tools can assist such as [https://jsonlint.com/](https://jsonlint.com/)
3. If sending media via an external URL, make sure the proper [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) is set for the image or video.
4. Review the required endpoint's required parameters to be sure they are included and have the proper format.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.