Check a post against each channel's rules without saving it
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
partsobject[]
required
Show child parameters
textstring
required
mediaIdsstring[]
delaySecondsinteger
targetsobject[]
required
Show child parameters
channelIdstring
required
partsobject[]
Show child parameters
textstring
required
mediaIdsstring[]
delaySecondsinteger
settingsobject
{
"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