Properties
| Name | Type | Description |
|---|---|---|
| object | object | |
| campaignId | stringnull | |
| posts | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/antwork-io/json-schema/antwork-io-post-batch-schema.json",
"title": "PostBatch",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/antwork-io-campaigns-api-openapi.yml#/components/schemas/PostBatch",
"type": "object",
"required": [
"object",
"campaignId",
"posts"
],
"properties": {
"object": {
"const": "post_batch"
},
"campaignId": {
"type": [
"string",
"null"
]
},
"posts": {
"type": "array",
"items": {
"$ref": "#/$defs/PostResult"
}
}
},
"$defs": {
"PostReadiness": {
"type": "object",
"required": [
"characterCount",
"characterLimit",
"overLimit",
"mediaRequired",
"settingsRequired",
"publishBlocker"
],
"properties": {
"characterCount": {
"type": "integer"
},
"characterLimit": {
"type": [
"integer",
"null"
]
},
"overLimit": {
"type": "boolean"
},
"mediaRequired": {
"type": "boolean"
},
"settingsRequired": {
"type": "boolean",
"description": "A setting only the account owner picks (TikTok audience) is unset."
},
"publishBlocker": {
"type": [
"string",
"null"
],
"description": "The rejection reason a publish would get now, or null."
}
}
},
"PostResult": {
"type": "object",
"required": [
"object",
"id",
"accountId",
"platform",
"status",
"reason",
"message",
"readiness",
"editUrl",
"settingsUrl"
],
"properties": {
"object": {
"const": "post_result"
},
"id": {
"type": [
"string",
"null"
],
"description": "Null when the target was rejected before anything was written."
},
"accountId": {
"type": [
"string",
"null"
]
},
"platform": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"accepted",
"rejected",
"failed"
]
},
"reason": {
"type": [
"string",
"null"
],
"description": "A rejection reason from /docs/api/errors."
},
"message": {
"type": [
"string",
"null"
]
},
"readiness": {
"oneOf": [
{
"$ref": "#/$defs/PostReadiness"
},
{
"type": "null"
}
],
"description": "What the post still needs before it can publish. Null when nothing was written."
},
"editUrl": {
"type": [
"string",
"null"
],
"description": "The post in the Antwork composer."
},
"settingsUrl": {
"type": [
"string",
"null"
],
"description": "The post in the composer with its settings open."
},
"retried": {
"type": "boolean",
"description": "Campaign publish only: a failed post was requeued (its retry)."
},
"pendingApproval": {
"type": "boolean",
"description": "Accepted for approval, not for publishing: the workspace requires approval, so the post is `pending_approval` and goes out once a person approves it in the Antwork app."
},
"similarRecent": {
"type": "array",
"description": "Near-duplicates of this post on the same account from the last 30 days (shared distinct words, Jaccard ≥ 0.6), most similar first, at most 3. A hint, never a refusal.",
"items": {
"type": "object",
"properties": {
"postId": {
"type": "string"
},
"status": {
"type": "string"
},
"at": {
"type": [
"string",
"null"
]
},
"similarity": {
"type": "number"
},
"excerpt": {
"type": "string"
}
}
}
},
"tiktokChoices": {
"$ref": "#/$defs/TikTokChoices"
},
"problems": {
"type": "array",
"items": {
"type": "object"
},
"description": "With `tiktok_choices_needed` after settings were sent."
},
"tagChecks": {
"type": "array",
"description": "Instagram posts with `photo_tag` userTags: each handle looked up on Instagram. `found` carries the profile; `unchecked` means Instagram would not say (personal and age-gated accounts cannot be looked up), not that the handle is wrong.",
"items": {
"type": "object",
"required": [
"username",
"status"
],
"properties": {
"username": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"found",
"unchecked"
]
},
"name": {
"type": [
"string",
"null"
]
},
"pictureUrl": {
"type": [
"string",
"null"
]
}
}
}
}
}
},
"TikTokChoices": {
"type": "object",
"description": "With `tiktok_choices_needed`: what to put in front of the user before a TikTok post goes. Build the UI from it; never pick for the user.",
"properties": {
"creator": {
"type": "object",
"properties": {
"nickname": {
"type": [
"string",
"null"
]
},
"avatarUrl": {
"type": [
"string",
"null"
]
}
}
},
"privacyLevel": {
"type": "object",
"description": "No default: `default` is always null.",
"properties": {
"default": {
"type": "null"
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
},
"notWithBrandedContent": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"interactions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"label": {
"type": "string"
},
"default": {
"const": false
},
"disabledByCreator": {
"type": "boolean"
}
}
}
},
"commercialContent": {
"type": "object",
"description": "Off by default; once on, at least one of `yourBrand` / `brandedContent`, each with the label TikTok shows."
},
"aiGenerated": {
"type": "object"
},
"maxVideoPostDurationSec": {
"type": [
"integer",
"null"
]
},
"videoDurationSec": {
"type": "number"
},
"declaration": {
"type": "object",
"description": "Shown, with its links, and agreed to before `userConsented: true` is sent.",
"properties": {
"text": {
"type": "string"
},
"textWithBrandedContent": {
"type": "string"
},
"links": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"requiresConsent": {
"const": true
}
}
},
"preview": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"mediaUrls": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"lastUsed": {
"type": "object",
"description": "The account's last answers that still apply, when it has some: ask the user once, then send `{useLast: true, userConsented: true}`.",
"properties": {
"settings": {
"type": "object"
},
"summary": {
"type": "string"
}
}
},
"nextStep": {
"type": "string"
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/antwork-io-post-batch"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.