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 and POST /api/v1/posts/{postId}/publish.
Response body
{
"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
existingPostIdbefore posting again. To repeat the content on purpose, resend the same body andIdempotency-KeywithallowDuplicate: true; the refused request left the key unused. - Do what
nextActionsays. POST /api/v1/posts/{postId}/validatereports the same cause as theduplicate_contentissue instead.
Retryable
An unchanged resend is refused again until the earlier delivery is a day old, fails, or is cancelled.
Limits
- Match on
typeorcode, not ondetail.