Skip to content

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

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.

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.

{
  "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, 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

Type to search…

↑↓ navigate↵ selectEsc close