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>"
    }
  ],
  "autoDeleteMediaAfterPublish": false
}
'
{
  "isValid": true,
  "errors": [
    {
      "path": "<string>",
      "message": "<string>",
      "field": "DESCRIPTION"
    }
  ],
  "warnings": [
    {
      "path": "<string>",
      "message": "<string>",
      "field": "DESCRIPTION"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.woopsocial.com/llms.txt

Use this file to discover all available pages before exploring further.

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

When the post should be published.

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
autoDeleteMediaAfterPublish
boolean
default:false

When true, all media referenced by this post is automatically deleted from the media library after all social account deliveries for the post have published successfully.

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.