---
title: "Instagram error 4 with subcode 2207051: Publishing action suspected to be spam"
description: "Instagram error 4 with subcode 2207051: Publishing action suspected to be spam. The cause, the fix, whether a retry is safe, and the PubNio delivery issue it settles."
---

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

# Instagram error 4 with subcode 2207051: Publishing action suspected to be spam

Instagram error 4 with subcode 2207051 is "Publishing action suspected to be spam". Instagram restricted the publishing action because it is suspected to be spam. A publish that gets it stays `unresolved` with `submission_uncertain`. Checked 2026-12-05.

## Exact error

`error.code`: `4`, `error.error_subcode`: `2207051`; HTTP 400.

```json
{
  "error": {
    "type": "OAuthException",
    "code": 4,
    "error_subcode": 2207051
  }
}
```

Returned by POST `/{ig-user-id}/media_publish`.

## Cause

Instagram's integrity checks flagged the post: many near-identical captions or links in a short window, a newly connected account posting at volume, or hashtags and mentions that look automated.

## Fix

Pause publishing to the account, vary captions and links, and space posts out. If the flag is wrong, the account owner can dispute it in the Instagram app.

## Retry safety

Not blindly: the post may exist. Reconcile first and send again only if no post turned up.

## PubNio issue

- On a publish: `submission_uncertain`, status `unresolved`.
- With HTTP 401 or 403, the status alone settles it as an auth or permission rejection: `provider_rejected`.
- No adapter maps this code; this is the default.

## Observed

Replayed through the adapter in `packages/core/test/provider-error-catalog.test.ts`.

## Limits

Another Instagram endpoint can return 4 for another reason.

## Sources

- [Instagram Platform error codes](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/error-codes), checked 2026-12-05
- PubNio: `packages/core/src/integration/providers/instagram-publish.ts#writeRejected`, `packages/core/src/post/instagram-delivery.ts#stageInstagramContainer`, `packages/core/src/post/delivery-store.ts#settleSubmission`

## Related

- [Instagram error codes](https://pubnio.com/docs/errors/instagram/)
- [Every provider error code](https://pubnio.com/docs/errors/providers/)

Source: https://pubnio.com/docs/errors/instagram/4-2207051/index.mdx
