Skip to content

Problem types and issue codes

Every PubNio API problem type and post issue code, with how an agent recovers.

A problem is the RFC 9457 body of a failed API call; its type is the URL of its page here. A post issue is one entry in a problem’s issues or in a validation result.

Publishing

Scheduling and queues

Provider connections

Comments

Inbox

Analytics

Ads

Billing

Workspace members

Workspaces

MCP Code Mode sandbox

General

Post issue codes

POST /api/v1/posts and POST /api/v1/posts/{postId}/publish reject a post with one invalid-publication problem whose issues lists every entry below that blocks it; POST /api/v1/posts/{postId}/validate returns the same entries in errors and warnings. Match on code, not on message. path points at the value to change; an empty path means the whole request.

Post and target structure

no_targets

The post has zero destination targets.

  • Only validation reports it, in errors.
  • Fix: Add at least one targets[] entry referencing an enabled account ID. The example’s path is targets.
  • Retryable: No.
{
  "code": "no_targets",
  "path": ["targets"],
  "message": "Select at least one publishing destination."
}

schedule_out_of_range

scheduledAt is in the past or outside the allowed future window.

  • Blocks create and publish (invalid-publication).
  • Fix: Provide a future ISO 8601 timestamp with explicit UTC offset. The example’s path is scheduledAt.
  • Retryable: No.
{
  "code": "schedule_out_of_range",
  "path": ["scheduledAt"],
  "message": "Schedule within the next 365 days."
}

duplicate_target

Two targets reference the same accountId and placement.

  • Blocks create and publish (invalid-publication).
  • Fix: Remove the duplicate target or choose a different placement. The example’s path is targets[1].accountId.
  • Retryable: No.
{
  "code": "duplicate_target",
  "path": ["targets", 1, "accountId"],
  "message": "Each account and placement may appear only once. Use targets to choose separate placements."
}

settings_conflict

Provider-specific target settings contain mutually exclusive options.

  • Blocks create and publish (invalid-publication).
  • Fix: Inspect issue.path and remove the conflicting setting key. The example’s path is targets[0].settings.link.
  • Retryable: No.
{
  "code": "settings_conflict",
  "path": ["targets", 0, "settings", "link"],
  "message": "Choose a Reddit link post or uploaded media."
}

queue_and_time_conflict

Both scheduledAt and weekly queue assignment were supplied on the same target.

  • Blocks create and publish (invalid-publication).
  • Fix: Choose either an explicit scheduledAt timestamp or a queueId. The example’s path is targets[0].queueId.
  • Retryable: No.
{
  "code": "queue_and_time_conflict",
  "path": ["targets", 0, "queueId"],
  "message": "Choose a schedule queue or an explicit time for this destination."
}

queue_not_found

The queue ID does not match a queue in this workspace.

  • Only validation reports it, in errors. Create returns the queue-not-found problem instead.
  • Fix: Select a queue from this workspace. The example’s path is targets[0].queueId.
  • Retryable: No.
{
  "code": "queue_not_found",
  "path": ["targets", 0, "queueId"],
  "message": "Select or create a queue in this workspace."
}

queue_unavailable

The queue is inactive, full, or belongs to a different destination.

  • Only validation reports it, in errors. Create returns the queue-unavailable problem instead.
  • Fix: Follow the action in issue.message or choose another queue. The example’s path is targets[0].queueId.
  • Retryable: After a queue change.
{
  "code": "queue_unavailable",
  "path": ["targets", 0, "queueId"],
  "message": "Resume the queue before assigning a destination."
}

invalid_field

A request field has the wrong type, shape, or value.

  • Blocks create and publish (invalid-publication).
  • Fix: Read issue.path and send a value that matches the API contract. The example’s path is targets[0].settings.title.
  • Retryable: No.
{
  "code": "invalid_field",
  "path": ["targets", 0, "settings", "title"],
  "message": "Add a title for the event or offer."
}

schedule_required

publishNow: false was sent without a scheduledAt time.

  • Blocks create and publish (invalid-publication).
  • Fix: Add scheduledAt with an explicit offset, or set publishNow to true. The example’s path is scheduledAt.
  • Retryable: No.
{
  "code": "schedule_required",
  "path": ["scheduledAt"],
  "message": "publishNow: false requires a scheduledAt time. Add a time with an explicit offset or remove publishNow: false."
}

selector_required

The create request sent none of platforms, accounts, or targets.

  • Blocks create and publish (invalid-publication).
  • Fix: Send exactly one selector. The example’s path is platforms.
  • Retryable: No.
{
  "code": "selector_required",
  "path": ["platforms"],
  "message": "Send exactly one of platforms, accounts, or targets."
}

selector_conflict

The create request sent more than one selector.

  • Blocks create and publish (invalid-publication).
  • Fix: Send exactly one of platforms, accounts, or targets. The example’s path is accounts.
  • Retryable: No.
{
  "code": "selector_conflict",
  "path": ["accounts"],
  "message": "Send exactly one selector: platforms, accounts, or targets."
}

Account and authorization

publishing_not_supported

The chosen provider or placement does not support publishing yet.

  • Blocks create and publish (invalid-publication).
  • Raised for X feed posts with quotePostId.
  • Fix: Inspect GET /api/v1/integrations/capabilities and choose a supported placement. The example’s path is targets[0].settings.quotePostId.
  • Retryable: No.
{
  "code": "publishing_not_supported",
  "path": ["targets", 0, "settings", "quotePostId"],
  "message": "Native quote posts need an X Enterprise app. Remove quotePostId and put the X post URL in the text."
}

publish_permission_required

The OAuth grant is missing a required publishing scope.

  • Validation lists it in warnings; on its own it does not block publishing.
  • Fix: Re-authorize the account in the workspace with publish permissions enabled.
  • Retryable: After reconnect.
{
  "code": "publish_permission_required",
  "path": [],
  "message": "Publishing requires a workspace owner or an API key with publish access."
}

account_not_found

The accountId does not exist in the workspace.

  • Blocks create and publish (invalid-publication).
  • Fix: Call GET /api/v1/integrations to select a valid account ID. The example’s path is accounts[0].
  • Retryable: No.
{
  "code": "account_not_found",
  "path": ["accounts", 0],
  "message": "No publishing account matches this selection. Use a publishing account ID from this workspace."
}

provider_mismatch

The target’s declared provider does not match the connected account’s provider.

  • Blocks create and publish (invalid-publication).
  • Fix: Omit redundant overrides or match the account’s actual provider. The example’s path is targets[0].provider.
  • Retryable: No.
{
  "code": "provider_mismatch",
  "path": ["targets", 0, "provider"],
  "message": "This account belongs to instagram, not facebook. Omit provider or use instagram."
}

account_not_ready

The connected account’s OAuth token is expired, revoked, or disconnected.

  • Blocks create and publish (invalid-publication).
  • Fix: Reconnect the account in the PubNio workspace, then re-validate. The example’s path is targets[0].accountId.
  • Retryable: After reconnect.
{
  "code": "account_not_ready",
  "path": ["targets", 0, "accountId"],
  "message": "Reconnect this account before publishing."
}

account_unverified

Account readiness could not be confirmed with the provider yet.

  • Validation lists it in warnings; on its own it does not block publishing. When publish is rejected for another issue, the rejection lists it too.
  • Fix: Refresh account readiness via GET /api/v1/integrations/accounts/{accountId}. The example’s path is targets[0].accountId.
  • Retryable: After check.
{
  "code": "account_unverified",
  "path": ["targets", 0, "accountId"],
  "message": "Account permissions need verification (scopes_unknown)."
}

account_ambiguous

A platforms selector matched more than one ready account.

  • Blocks create and publish (invalid-publication).
  • Raised for the platforms selector.
  • Fix: Choose an account from the issue’s candidates and resend with accounts: [accountId]. The example’s path is platforms[0].
  • Replace the selector with one accountId from candidates.
  • Retryable: No.
{
  "code": "account_ambiguous",
  "path": ["platforms", 0],
  "message": "2 ready instagram accounts match. Choose one and replace the platform selector with exact accounts.",
  "candidates": [
    {
      "accountId": "3e7a9c1b-5d2f-4a6e-8b0c-9d1e2f3a4b5c",
      "name": "Northwind Bakery"
    },
    {
      "accountId": "7c1d3e5f-9a2b-4c4d-a6e8-0f1a2b3c4d5e",
      "name": "Northwind Cafe"
    }
  ]
}

unsupported_placement

The provider does not support the selected placement.

  • Blocks create and publish (invalid-publication).
  • Fix: Read message and choose one of the listed placements. The example’s path is targets[0].placement.
  • Retryable: No.
{
  "code": "unsupported_placement",
  "path": ["targets", 0, "placement"],
  "message": "facebook does not support the carousel placement. Use one of: feed, reel, story."
}

Content and media

duplicate_content

A warning: the same account and placement received the same text and media within the last day. Publishing returns 409 duplicate_content.

  • Validation lists it in warnings. Create and publish return the duplicate-content problem unless the request sets allowDuplicate: true.
  • Fix: Change the content, or set allowDuplicate: true when the repeat is intended. The example’s path is targets[0].
  • Retryable: No.
{
  "code": "duplicate_content",
  "path": ["targets", 0],
  "message": "Post 3c1d2e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f sent the same text and media to this account and placement in the last 24 hours. Publishing returns 409 duplicate_content unless allowDuplicate is true."
}

caption_too_long

Text exceeds the destination placement’s character limit (caption.limit).

  • Blocks create and publish (invalid-publication).
  • Raised for every provider, each with its own limit.
  • Fix: Shorten the caption or add a shorter target-specific text override. The example’s path is targets[0].text.
  • Retryable: No.
{
  "code": "caption_too_long",
  "path": ["targets", 0, "text"],
  "message": "This caption contains 2301 characters. The limit is 2200."
}

empty_content

Neither text nor media was provided for a target that requires content.

  • Blocks create and publish (invalid-publication).
  • Raised for LinkedIn, X, Bluesky, Google Business Profile, Pinterest, Facebook feed, and Threads.
  • Fix: Add caption text or attach a ready media ID. The example’s path is text.
  • Retryable: No.
{
  "code": "empty_content",
  "path": ["text"],
  "message": "Add text for this LinkedIn post."
}

media_required

Placement (such as Instagram Feed/Reel, Pinterest Pin, TikTok, or YouTube) requires media.

  • Blocks create and publish (invalid-publication).
  • Raised for every placement except LinkedIn, Reddit, X, Google Business Profile, Bluesky, Threads, and Facebook feed.
  • Fix: Import or upload media and attach its mediaId to the target. The example’s path is targets[0].media.
  • Retryable: No.
{
  "code": "media_required",
  "path": ["targets", 0, "media"],
  "message": "Attach media for this destination."
}

media_unresolved

A referenced mediaId was not found in the workspace.

  • Blocks create and publish (invalid-publication).
  • Fix: Upload or import the asset first and pass the returned mediaId. The example’s path is media[0].mediaId.
  • Retryable: No.
{
  "code": "media_unresolved",
  "path": ["media", 0, "mediaId"],
  "message": "Select a ready media item from this workspace."
}

media_not_ready

Media import or verification is still in progress.

  • Blocks create and publish (invalid-publication).
  • Fix: Poll GET /api/v1/media/{mediaId}/status until it reports ready, then re-validate. The example’s path is media[0].mediaId.
  • Retryable: Yes.
{
  "code": "media_not_ready",
  "path": ["media", 0, "mediaId"],
  "message": "Check the workspace media status before publishing."
}

media_count

Attached media count is below minimum or above the placement’s maximum.

  • Blocks create and publish (invalid-publication).
  • Fix: Adjust the media array (for example, 1 video for Reels/YouTube, 2–20 for carousels). The example’s path is targets[0].media.
  • Retryable: No.
{
  "code": "media_count",
  "path": ["targets", 0, "media"],
  "message": "A Reddit post accepts one image or one video."
}

media_type

Media kind (image, video, document) does not match the placement.

  • Blocks create and publish (invalid-publication).
  • Fix: Supply a matching media type for the selected placement. The example’s path is media[0].type.
  • Retryable: No.
{
  "code": "media_type",
  "path": ["media", 0, "type"],
  "message": "This media type is unsupported for the placement."
}

media_mime_type

File MIME type is rejected by the provider (for example, unsupported codec or container).

  • Blocks create and publish (invalid-publication).
  • Fix: Convert to a supported MIME type (such as image/jpeg, image/png, video/mp4, or application/pdf). The example’s path is targets[0].media[0].mimeType.
  • Retryable: No.
{
  "code": "media_mime_type",
  "path": ["targets", 0, "media", 0, "mimeType"],
  "message": "Google Business Profile images must be JPEG or PNG."
}

media_too_large

Asset exceeds the provider’s byte-size ceiling (such as 100 MB for LinkedIn PDFs).

  • Blocks create and publish (invalid-publication).
  • Fix: Compress or trim the asset below the platform ceiling and re-import. The example’s path is targets[0].media[0].sizeBytes.
  • Retryable: No.
{
  "code": "media_too_large",
  "path": ["targets", 0, "media", 0, "sizeBytes"],
  "message": "Instagram audio removal supports videos up to 200 MB."
}

media_duration

The stored video runs longer or shorter than the network allows. PubNio reads the length from the video when it is uploaded or imported.

  • Blocks create and publish (invalid-publication).
  • Fix: Trim the video to the network’s length range, upload it again, and use the new media ID. The example’s path is targets[0].media[0].mediaId.
  • Retryable: No.
{
  "code": "media_duration",
  "path": ["targets", 0, "media", 0, "mediaId"],
  "message": "X videos must run at most 140 seconds."
}

media_upload_required

Provider requires PubNio-staged upload bytes rather than a raw external URL.

  • Blocks create and publish (invalid-publication).
  • Raised for Bluesky, LinkedIn, Pinterest, Reddit, Threads, X, and YouTube, for external media URLs.
  • Fix: Call POST /api/v1/media/import first and reference the returned workspace mediaId. The example’s path is targets[0].media.
  • Retryable: No.
{
  "code": "media_upload_required",
  "path": ["targets", 0, "media"],
  "message": "Upload the media into this workspace before publishing to Bluesky."
}

media_unverified

Media dimensions or metadata have not finished inspection.

  • Validation lists it in warnings; on its own it does not block publishing.
  • Fix: Wait for GET /api/v1/media/{mediaId}/status to report ready metadata before publishing. The example’s path is media.
  • Retryable: Yes.
{
  "code": "media_unverified",
  "path": ["media"],
  "message": "External media URLs and their declared metadata have not been verified."
}

TikTok rules

tiktok_privacy_unsupported

Requested privacy level is not permitted for the creator account.

  • Blocks create and publish (invalid-publication).
  • Raised for TikTok.
  • Fix: Inspect allowed privacy levels on the account (unaudited apps require SELF_ONLY). The example’s path is targets[0].settings.privacy.
  • Retryable: No.
{
  "code": "tiktok_privacy_unsupported",
  "path": ["targets", 0, "settings", "privacy"],
  "message": "Choose PUBLIC_TO_EVERYONE for TikTok Business publishing."
}

tiktok_disclosure_required

Commercial/branded content disclosure flag is required for the selected settings.

  • Blocks create and publish (invalid-publication).
  • Raised for TikTok.
  • Fix: Set explicit commercial disclosure fields in target settings. The example’s path is targets[0].settings.commercialDisclosure.
  • Retryable: No.
{
  "code": "tiktok_disclosure_required",
  "path": ["targets", 0, "settings", "commercialDisclosure"],
  "message": "Choose a commercial disclosure for TikTok."
}

tiktok_upload_required

TikTok target requires staged video or photo upload media.

  • Blocks create and publish (invalid-publication).
  • Raised for TikTok, when any attached media is an external URL rather than a workspace mediaId.
  • Fix: Import media into PubNio first and attach { mediaId } entries. The example’s path is targets[0].media.
  • Retryable: No.
{
  "code": "tiktok_upload_required",
  "path": ["targets", 0, "media"],
  "message": "Upload the media into this workspace before publishing to TikTok."
}

tiktok_too_many_mentions

Caption exceeds TikTok’s allowed @mention count.

  • Blocks create and publish (invalid-publication).
  • Raised for TikTok.
  • Fix: Reduce the number of @mentions in the TikTok target caption. The example’s path is targets[0].text.
  • Retryable: No.
{
  "code": "tiktok_too_many_mentions",
  "path": ["targets", 0, "text"],
  "message": "A TikTok caption can contain at most 30 mentions."
}

Type to search…

↑↓ navigate↵ selectEsc close