If you receive a 502 or 504 HTTP error with a “Bad Gateway” message, or timeout, and are trying to post a large media file and the call timed out. Please try sending the post as a scheduled post with a scheduleDate or use the api.ayrshare.com endpoint, which allow for longer processing times. See the /post endpoint for details.

https://api.ayrshare.com/api/{endpoint name}

For example, instead of https://app.ayrshare.com/api/post, use https://api.ayrshare.com/api/post

You may use the api.ayrshare.com for the /post endpoint or any other endpoint.