Check a post against each channel's rules without saving it

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-posts-validate"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/090f75ac-9149-4bbc-b7c6-6a47e87bf049/social-card.svg?v=3e7ae33eec8b" alt="Check a post against each channel's rules without saving it" width="600" height="315"></a>
POST http://localhost:4000/api/v1/posts/validate

Returns every reason the post could not be scheduled as it is (length, media, follow-up parts, required settings, a disabled channel), per channel and part. An empty list means POST /posts would accept it.

Request body

application/json
parts
object[]
required
Show child parameters
text
string
required
mediaIds
string[]
= []
delaySeconds
integer
targets
object[]
required
Show child parameters
channelId
string
required
parts
object[]
Show child parameters
text
string
required
mediaIds
string[]
= []
delaySeconds
integer
settings
object
= {}
{
  "parts": [
    {
      "text": "string",
      "mediaIds": [],
      "delaySeconds": 0
    }
  ],
  "targets": [
    {
      "channelId": "string",
      "parts": [
        {
          "text": "string",
          "mediaIds": [],
          "delaySeconds": 0
        }
      ],
      "settings": {}
    }
  ]
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/posts/validate" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parts":[{"text":"string","mediaIds":[],"delaySeconds":0}],"targets":[{"channelId":"string","parts":[{"text":"string","mediaIds":[],"delaySeconds":0}],"settings":{}}]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
Updated