Additional Topics
Errors making requests with the API
A few things to check to verify you have all the required information to successfully post, or call any API endpoint.
- Verify you are sending the API*KEY, found in the Ayrshare GUI dashboard under API Dashboard, in the header as an Authorization Bearer token. Also the proper Content Type must be set.
- For POST calls, validate properly formatted JSON is being sent in the body. Online tools can assist such as https://jsonlint.com/
- If sending media via an external URL, make sure the proper MIME type is set for the image or video.
- Review the required endpoint’s required parameters to be sure they are included and have the proper format.