POST
/
validate
/
post
curl --location "https://api.ayrshare.com/api/validate/post" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer API_KEY" \
--data '{
  "post": "This is amazing",
  "platforms": [
  "facebook"
  ],
  "mediaUrls": ["https://img.ayrshare.com/012/gb.jpg"]
}'
{
    "status": "success",
    "message": "No validation issues were found with this post. This is only an Ayrshare validation test and the post may still return an error by the social networks.",
}
Available on Premium, Business, Enterprise plans.

Before publishing a post, you can verify the content and parameters are correct. Send the exact same JSON you normally send to the /post endpoint to the /validate/post endpoint and it will return a response with any issues found.

  • Validation tests based on Ayrshare’s own internal algorithms.
  • Posts are not sent to the social networks.
  • Posts may still return an error by the social networks at the time of publishing, even with a passed validation.

Please see the /post endpoint for sending a post.

Header Parameters

Authorization
string
required
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY

Body Parameters

Send the same body as you would send to the /post endpoint.

curl --location "https://api.ayrshare.com/api/validate/post" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer API_KEY" \
--data '{
  "post": "This is amazing",
  "platforms": [
  "facebook"
  ],
  "mediaUrls": ["https://img.ayrshare.com/012/gb.jpg"]
}'
{
    "status": "success",
    "message": "No validation issues were found with this post. This is only an Ayrshare validation test and the post may still return an error by the social networks.",
}