Skip to content

Recheck a recorded provider receipt

PubNio API posts.reconcile: recheck a recorded provider receipt. Request fields, examples in five clients, errors, and idempotency.

Recheck a recorded provider receipt with POST /api/v1/posts/{postId}/targets/{targetId}/reconcile. Requires an API key with the publish scope or a signed-in workspace owner.

Request

Reads the provider’s current status for one unresolved delivery. May return unresolved again and never submits another post.

Reconcile asks the provider what happened to a submission PubNio could not confirm; it never submits the post again. It needs an unresolved delivery with a recorded provider receipt (canReconcile in GET /api/v1/posts/{postId}), otherwise it fails with delivery-not-reconcilable.

A delivery that is already published or provider_draft comes back unchanged. If the target’s current attempt is not expectedAttemptId, the call fails with attempt-changed and names currentAttemptId.

TikTok, LinkedIn, YouTube, Google Business Profile, Pinterest, Reddit, Snapchat, Threads, X, and Bluesky each run their own confirmation check; other networks use the shared one.

Parameter In Type Required
postId path UUID Yes
targetId path UUID Yes
workspaceId query UUID Yes
Body field Type Required
expectedAttemptId UUID Yes

Response

  • HTTP 200: an object with postId, status, targets.
    • status: draft, scheduled, queued, submitting, confirming, published, provider_draft, failed, unresolved, cancelled

The OpenAPI document has each field’s type.

Examples

const status = await workspace.posts.reconcile(postId, targetId, {
  expectedAttemptId: attemptId,
});
status = workspace.posts.reconcile(
    post_id,
    target_id,
    expected_attempt_id=attempt_id,
)
curl -X POST "https://pubnio.com/api/v1/posts/$POST_ID/targets/$TARGET_ID/reconcile?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expectedAttemptId":"'"$ATTEMPT_ID"'"}'
pnio posts reconcile "$POST_ID" "$TARGET_ID" --expected-attempt-id "$ATTEMPT_ID"
async () => {
  const postId = "<postId>";
  const targetId = "<targetId>";
  const attemptId = "<attemptId>";
  const response = await codemode.request({
    method: "POST",
    path: `/api/v1/posts/${postId}/targets/${targetId}/reconcile`,
    query: { workspaceId: codemode.workspaceId },
    body: { expectedAttemptId: attemptId },
  });
  return response.data;
};

Errors

It also declares the problems most operations declare.

Idempotency

No key. The required expectedAttemptId makes a stale retry fail instead of applying twice.

Limits

Type to search…

↑↓ navigate↵ selectEsc close