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

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Recheck a recorded provider receipt

Recheck a recorded provider receipt with [`POST /api/v1/posts/{postId}/targets/{targetId}/reconcile`](https://pubnio.com/api/v1/docs#tag/posts/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}`](https://pubnio.com/api/v1/docs#tag/posts/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](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const status = await workspace.posts.reconcile(postId, targetId, {
  expectedAttemptId: attemptId,
});
```

### Python

```python
status = workspace.posts.reconcile(
    post_id,
    target_id,
    expected_attempt_id=attempt_id,
)
```

### cURL

```sh
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"'"}'
```

### CLI

```sh
pnio posts reconcile "$POST_ID" "$TARGET_ID" --expected-attempt-id "$ATTEMPT_ID"
```

### MCP execute

```js
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

- [`attempt-changed`](https://pubnio.com/docs/problems/attempt-changed/): HTTP 409, Delivery attempt changed
- [`delivery-not-reconcilable`](https://pubnio.com/docs/problems/delivery-not-reconcilable/): HTTP 409, Delivery cannot be reconciled

It also declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

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

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Posts operations](https://pubnio.com/docs/reference/#posts)
- [Publishing](https://pubnio.com/docs/publishing/)
- [Post lifecycle](https://pubnio.com/docs/concepts/post-lifecycle/)

Source: https://pubnio.com/docs/reference/posts-reconcile/index.mdx
