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 token. Also the proper 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/
  3. If sending media via an external URL, make sure the proper MIME type 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.