Skip to main content
POST
/
posts
/
validate
Validate post
curl --request POST \
  --url https://api.woopsocial.com/v1/posts/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": [
    {
      "text": "<string>",
      "media": [
        {
          "type": "MEDIA_LIBRARY",
          "mediaId": "<string>"
        }
      ]
    }
  ],
  "schedule": {
    "type": "DRAFT"
  },
  "socialAccounts": [
    {
      "platform": "FACEBOOK",
      "socialAccountId": "<string>",
      "postType": "TEXT_ONLY",
      "contentOverride": [
        {
          "text": "<string>",
          "media": [
            {
              "type": "MEDIA_LIBRARY",
              "mediaId": "<string>"
            }
          ]
        }
      ],
      "link": "<string>"
    }
  ]
}
'
{
  "isValid": true,
  "errors": [
    {
      "path": "<string>",
      "message": "<string>",
      "field": "DESCRIPTION"
    }
  ],
  "warnings": [
    {
      "path": "<string>",
      "message": "<string>",
      "field": "DESCRIPTION"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
content
object[]
required

Post content expressed as thread items.

The array exists for future thread support. Currently exactly one item is supported.

Required array length: 1 element
schedule
Draft · object
required
socialAccounts
(Facebook · object | Instagram · object | LinkedIn · object | LinkedIn Pages · object | Pinterest · object | TikTok · object | WoopTest · object | X · object | YouTube · object)[]
required

Social-account targets for this post.

All referenced social accounts must belong to the same project. Duplicate socialAccountId values are invalid.

Minimum array length: 1

Response

Validation result.

isValid
boolean
required

Whether the request passed validation.

errors
object[]
required

Blocking validation errors. Empty when the request is valid.

warnings
object[]
required

Non-blocking validation warnings. Empty when there are no warnings.