---
title: "Duplicate content (duplicate-content)"
description: "PubNio duplicate-content problem, HTTP 409: A new Idempotency-Key sends the same text and media to an account and placement that already has a delivery from the last day that did not fail or get cancelled."
---

> 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.

# Duplicate content (duplicate-content)

HTTP 409 Duplicate content. A new `Idempotency-Key` sends the same text and media to an account and placement that already has a delivery from the last day that did not fail or get cancelled.

## When it happens

The whole request is refused and nothing is stored.

2 operations declare it: [`POST /api/v1/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) and [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish).

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/duplicate-content/",
  "status": 409,
  "title": "Duplicate content",
  "code": "duplicate_content",
  "existingPostId": "3c1d2e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
  "duplicates": [
    {
      "accountId": "5f0c3a6e-2b1d-4c8e-9a7f-1e2d3c4b5a69",
      "placement": "feed",
      "postId": "3c1d2e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
      "targetId": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
      "status": "published"
    }
  ],
  "nextAction": "Read existingPostId with posts.get before posting again. To repeat the content on purpose, resend the same request and Idempotency-Key with allowDuplicate: true.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field            | Type            | Always present |
| ---------------- | --------------- | -------------- |
| `existingPostId` | string          | Yes            |
| `duplicates`     | array of object | Yes            |
| `nextAction`     | string          | Yes            |

## Recovery for agents

- Read `existingPostId` before posting again. To repeat the content on purpose, resend the same body and `Idempotency-Key` with `allowDuplicate: true`; the refused request left the key unused.
- Do what `nextAction` says.
- [`POST /api/v1/posts/{postId}/validate`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/validate) reports the same cause as the `duplicate_content`
  issue instead.

## Retryable

An unchanged resend is refused again until the earlier delivery is a day old, fails, or is cancelled.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [Publishing problems](https://pubnio.com/docs/problems/#publishing)
- [`duplicate_content` issue code](https://pubnio.com/docs/problems/#duplicate_content)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/duplicate-content/index.mdx
