Publishing · Validate

Validate post content

Validates post content without changing anything.

POSThttps://api.pozy.ai/v1/tools/validate/post
validatePost

Guides: Platform settings, Threads, Validation and dry runs

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the publishing resource group disabled get 403 resource_group_disabled. Authentication

Request body

application/json, required

  • contentstring
  • platformsarray of objectrequired
    • platformstringrequired

      One of twitter, instagram, tiktok, youtube, facebook, linkedin, bluesky, threads, reddit, pinterest, telegram, snapchat, googlebusiness, discord, slack.

    • accountIdstring
    • customContentstring
    • platformSpecificDataobject
    • customMediaarray of object
      13 child fields
      • typestring

        One of image, video, gif, document.

      • urlstring (URL)
      • fileIdstring
      • accountIdstring
      • titlestring
      • altTextstring
      • filenamestring
      • sizeinteger
      • mimeTypestring
      • thumbnailstring (URL)
      • instagramThumbnailstring (URL)
      • subtitlesarray of object

        Up to 20 items.

        2 child fields
        • urlstring (URL)required
        • languagestringrequired
      • tiktokProcessedboolean
  • mediaItemsarray of object
    13 child fields
    • typestring

      One of image, video, gif, document.

    • urlstring (URL)
    • fileIdstring
    • accountIdstring
    • titlestring
    • altTextstring
    • filenamestring
    • sizeinteger
    • mimeTypestring
    • thumbnailstring (URL)
    • instagramThumbnailstring (URL)
    • subtitlesarray of object

      Up to 20 items.

      2 child fields
      • urlstring (URL)required
      • languagestringrequired
    • tiktokProcessedboolean

Example

curl -X POST "https://api.pozy.ai/v1/tools/validate/post" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "platforms": [
    {
      "platform": "twitter"
    }
  ]
}'

Response

200 on success

200 response
{
  "valid": true,
  "message": "Hello from Pozy",
  "warnings": [
    {
      "platform": "instagram",
      "warning": "string"
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Validate