Skip to content

Docs

mark_post_published_manually

Record that a post went live outside heyeveryone: posted by hand with the post kit (state manual), or found live after an unknown outcome (needs_attention), or posted by hand after a failure. Pass the live post's URL as permalink when you have it. The post becomes published and is never sent again. Requires publish permission (a member, or an agent on Autopilot for the post's channel).

Record that a post went live outside heyeveryone: posted by hand with the post kit (state manual), or found live after an unknown outcome (needs_attention), or posted by hand after a failure. Pass the live post's URL as permalink when you have it. The post becomes published and is never sent again. Requires publish permission (a member, or an agent on Autopilot for the post's channel).

Access and cost

  • Kind: mutation
  • 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"
    },
    "permalink": {
      "format": "uri",
      "maxLength": 2000,
      "type": "string"
    },
    "publishedAt": {
      "format": "date-time",
      "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

[
  "not_markable"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Mark a post as posted by hand"
}