PreflightResult
True when create-post with the same body would succeed.
errors objectrequired
Validation and network-requirement errors keyed by field, as create-post would report them in a 422.
property name* string[]
issues object[]required
Guardrail problems, in the order create-post would report the first of them.
Possible values: [duplicate_post, account_daily_cap_reached, account_unauthorized, account_token_missing]
The account the problem is about.
duplicate_post only: the earlier post with the same content.
account_daily_cap_reached only: the account's daily cap.
account_daily_cap_reached only: posts already counted on that UTC day.
UTC time the post would publish at; null for a draft.
accounts object[]required
False when the account must be reconnected.
Whether an access token is stored for the account.
authorized and has_token: the account can publish.
daily_cap objectrequired
Posts allowed per UTC day for this network.
Scheduled, awaiting-approval and published posts counted for today (UTC).
{
"valid": true,
"errors": {},
"issues": [
{
"message": "string",
"code": "duplicate_post",
"account_id": 0,
"existing_post_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"limit": 0,
"used": 0
}
],
"publish_at": "2024-07-29T15:51:28.071Z",
"accounts": [
{
"id": 0,
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"provider": "string",
"authorized": true,
"has_token": true,
"healthy": true,
"daily_cap": {
"limit": 0,
"used_today": 0
}
}
]
}