Docs
get_post_status
Check where one post is in publishing: its state (scheduled, publishing, published, failed_retrying, needs_attention, failed, manual...), the permalink once live, the last error in plain words with a fix, the next automatic retry, and every publish attempt. Use it after scheduling to confirm a post went out, or when a post shows up in Updates, before calling retry_post or mark_post_published_manually.
Check where one post is in publishing: its state (scheduled, publishing, published, failed_retrying, needs_attention, failed, manual...), the permalink once live, the last error in plain words with a fix, the next automatic retry, and every publish attempt. Use it after scheduling to confirm a post went out, or when a post shows up in Updates, before calling retry_post or mark_post_published_manually.
Access and cost
- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"postId": {
"format": "uuid",
"type": "string"
}
},
"required": [
"workspaceId",
"postId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"status": {
"additionalProperties": false,
"properties": {
"postId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"state": {
"enum": [
"draft",
"ready",
"awaiting_confirmation",
"scheduled",
"publishing",
"published",
"failed_retrying",
"needs_attention",
"failed",
"manual",
"removed"
],
"type": "string"
},
"scheduledAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"publishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"permalink": {
"type": [
"string",
"null"
]
},
"lastError": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"fix": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
{
"type": "null"
}
]
},
"needsYou": {
"type": "boolean"
},
"waitingForReconnect": {
"type": "boolean"
},
"nextRetryAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"automaticRetriesUsed": {
"minimum": 0,
"type": "integer"
},
"publication": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"status": {
"enum": [
"pending",
"published",
"failed"
],
"type": "string"
},
"platformPostId": {
"type": [
"string",
"null"
]
},
"permalink": {
"type": [
"string",
"null"
]
},
"publishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"notices": {
"items": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"status",
"platformPostId",
"permalink",
"publishedAt",
"notices"
],
"type": "object"
},
{
"type": "null"
}
]
},
"attempts": {
"items": {
"additionalProperties": false,
"properties": {
"attemptNumber": {
"minimum": 1,
"type": "integer"
},
"outcome": {
"enum": [
"in_flight",
"succeeded",
"failed",
"ambiguous"
],
"type": "string"
},
"errorCode": {
"anyOf": [
{
"enum": [
"auth_expired",
"rate_limited",
"rejected_content",
"media_unsupported",
"platform_error",
"timeout_after_send",
"not_permitted"
],
"type": "string"
},
{
"type": "null"
}
]
},
"errorMessage": {
"type": [
"string",
"null"
]
},
"startedAt": {
"format": "date-time",
"type": "string"
},
"finishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"durationMs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"attemptNumber",
"outcome",
"errorCode",
"errorMessage",
"startedAt",
"finishedAt",
"durationMs"
],
"type": "object"
},
"type": "array"
},
"nextStep": {
"type": "string"
}
},
"required": [
"postId",
"pieceId",
"channelAccountId",
"platform",
"state",
"scheduledAt",
"publishedAt",
"permalink",
"lastError",
"needsYou",
"waitingForReconnect",
"nextRetryAt",
"automaticRetriesUsed",
"publication",
"attempts",
"nextStep"
],
"type": "object"
}
},
"required": [
"status"
],
"type": "object"
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "Get a post's publishing status"
}