---
title: "Problem types and issue codes"
description: "Every PubNio API problem type and post issue code, with how an agent recovers."
---

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

# Problem types and issue codes

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

- [`invalid-publication`](https://pubnio.com/docs/problems/invalid-publication/): HTTP 422 Invalid publication
- [`attempt-changed`](https://pubnio.com/docs/problems/attempt-changed/): HTTP 409 Delivery attempt changed
- [`idempotency-conflict`](https://pubnio.com/docs/problems/idempotency-conflict/): HTTP 409 Idempotency key already used
- [`destination-already-submitted`](https://pubnio.com/docs/problems/destination-already-submitted/): HTTP 409 Destination already submitted
- [`duplicate-content`](https://pubnio.com/docs/problems/duplicate-content/): HTTP 409 Duplicate content
- [`post-submitted`](https://pubnio.com/docs/problems/post-submitted/): HTTP 409 Post already submitted
- [`delivery-not-retryable`](https://pubnio.com/docs/problems/delivery-not-retryable/): HTTP 409 Delivery cannot be retried
- [`delivery-not-reconcilable`](https://pubnio.com/docs/problems/delivery-not-reconcilable/): HTTP 409 Delivery cannot be reconciled
- [`delivery-schedule-locked`](https://pubnio.com/docs/problems/delivery-schedule-locked/): HTTP 409 Delivery schedule cannot change
- [`post-revision-conflict`](https://pubnio.com/docs/problems/post-revision-conflict/): HTTP 409 Post revision changed
- [`account-ambiguous`](https://pubnio.com/docs/problems/account-ambiguous/): HTTP 422 Account ambiguous
- [`provider-mismatch`](https://pubnio.com/docs/problems/provider-mismatch/): HTTP 422 Provider mismatch
- [`publish-account-not-found`](https://pubnio.com/docs/problems/publish-account-not-found/): HTTP 422 Publishing account not found

## Scheduling and queues

- [`queue-not-found`](https://pubnio.com/docs/problems/queue-not-found/): HTTP 404 Queue not found
- [`queue-already-exists`](https://pubnio.com/docs/problems/queue-already-exists/): HTTP 409 Queue already exists
- [`queue-default-required`](https://pubnio.com/docs/problems/queue-default-required/): HTTP 409 Queue default required
- [`queue-version-conflict`](https://pubnio.com/docs/problems/queue-version-conflict/): HTTP 409 Queue version changed
- [`queue-unavailable`](https://pubnio.com/docs/problems/queue-unavailable/): HTTP 409 Queue unavailable
- [`queue-capacity-reached`](https://pubnio.com/docs/problems/queue-capacity-reached/): HTTP 409 Queue capacity reached
- [`queue-no-slot-available`](https://pubnio.com/docs/problems/queue-no-slot-available/): HTTP 409 No queue slot available
- [`queue-slot-conflict`](https://pubnio.com/docs/problems/queue-slot-conflict/): HTTP 409 Queue slot conflict
- [`invalid-queue`](https://pubnio.com/docs/problems/invalid-queue/): HTTP 422 Invalid queue
- [`schedule-range-too-wide`](https://pubnio.com/docs/problems/schedule-range-too-wide/): HTTP 422 Schedule range too wide

## Provider connections

- [`provider-permission-required`](https://pubnio.com/docs/problems/provider-permission-required/): HTTP 403 Provider permission required
- [`provider-reconnect-required`](https://pubnio.com/docs/problems/provider-reconnect-required/): HTTP 409 Provider reconnect required
- [`provider-rate-limited`](https://pubnio.com/docs/problems/provider-rate-limited/): HTTP 429 Provider rate limited
- [`provider-unavailable`](https://pubnio.com/docs/problems/provider-unavailable/): HTTP 503 Provider unavailable
- [`capability-unsupported`](https://pubnio.com/docs/problems/capability-unsupported/): HTTP 422 Capability unsupported

## Comments

- [`comment-target-invalid`](https://pubnio.com/docs/problems/comment-target-invalid/): HTTP 400 Comment target invalid
- [`comment-rejected`](https://pubnio.com/docs/problems/comment-rejected/): HTTP 422 Comment rejected
- [`comment-unresolved`](https://pubnio.com/docs/problems/comment-unresolved/): HTTP 409 Comment outcome unresolved

## Inbox

- [`inbox-unavailable`](https://pubnio.com/docs/problems/inbox-unavailable/): HTTP 409 Inbox unavailable
- [`inbox-reply-window-closed`](https://pubnio.com/docs/problems/inbox-reply-window-closed/): HTTP 409 Inbox reply window closed
- [`inbox-sync-in-progress`](https://pubnio.com/docs/problems/inbox-sync-in-progress/): HTTP 409 Inbox sync already running
- [`inbox-unsupported-content`](https://pubnio.com/docs/problems/inbox-unsupported-content/): HTTP 422 Inbox content unsupported

## Analytics

- [`analytics-range-invalid`](https://pubnio.com/docs/problems/analytics-range-invalid/): HTTP 400 Analytics range invalid
- [`analytics-metric-unsupported`](https://pubnio.com/docs/problems/analytics-metric-unsupported/): HTTP 400 Analytics metric unsupported
- [`analytics-refresh-conflict`](https://pubnio.com/docs/problems/analytics-refresh-conflict/): HTTP 409 Analytics refresh conflict

## Ads

- [`ad-account-not-ready`](https://pubnio.com/docs/problems/ad-account-not-ready/): HTTP 409 Ad account not ready
- [`ad-account-not-selected`](https://pubnio.com/docs/problems/ad-account-not-selected/): HTTP 409 Ad account not selected
- [`ad-insight-range-invalid`](https://pubnio.com/docs/problems/ad-insight-range-invalid/): HTTP 422 Ad insight range invalid
- [`ad-refresh-rate-limited`](https://pubnio.com/docs/problems/ad-refresh-rate-limited/): HTTP 429 Ad refresh rate limited
- [`ad-revision-conflict`](https://pubnio.com/docs/problems/ad-revision-conflict/): HTTP 409 Ad resource revision conflict
- [`ad-budget-exceeded`](https://pubnio.com/docs/problems/ad-budget-exceeded/): HTTP 422 Ad budget exceeds a spend cap
- [`ad-budget-below-minimum`](https://pubnio.com/docs/problems/ad-budget-below-minimum/): HTTP 422 Ad budget is below the provider minimum
- [`ad-currency-mismatch`](https://pubnio.com/docs/problems/ad-currency-mismatch/): HTTP 422 Ad currency does not match the account
- [`ad-spend-forbidden`](https://pubnio.com/docs/problems/ad-spend-forbidden/): HTTP 403 Ad spend permission required
- [`ad-kill-switch-active`](https://pubnio.com/docs/problems/ad-kill-switch-active/): HTTP 409 Ad kill switch is active
- [`invalid-ad-request`](https://pubnio.com/docs/problems/invalid-ad-request/): HTTP 400 Invalid ad request
- [`plan-required`](https://pubnio.com/docs/problems/plan-required/): HTTP 402 Plan upgrade required

## Billing

- [`insufficient-credit`](https://pubnio.com/docs/problems/insufficient-credit/): HTTP 402 Insufficient prepaid credit
- [`spend-cap-reached`](https://pubnio.com/docs/problems/spend-cap-reached/): HTTP 402 Monthly spend cap reached
- [`billing-inactive`](https://pubnio.com/docs/problems/billing-inactive/): HTTP 402 Workspace billing is inactive
- [`top-up-amount-invalid`](https://pubnio.com/docs/problems/top-up-amount-invalid/): HTTP 400 Top-up amount is out of range
- [`invalid-billing-date-range`](https://pubnio.com/docs/problems/invalid-billing-date-range/): HTTP 400 Invalid billing date range
- [`billing-revision-conflict`](https://pubnio.com/docs/problems/billing-revision-conflict/): HTTP 409 Billing settings changed concurrently
- [`subscription-already-active`](https://pubnio.com/docs/problems/subscription-already-active/): HTTP 409 Subscription is already active
- [`billing-customer-missing`](https://pubnio.com/docs/problems/billing-customer-missing/): HTTP 409 No billing customer exists yet
- [`billing-provider-mismatch`](https://pubnio.com/docs/problems/billing-provider-mismatch/): HTTP 409 Workspace billing gateway mismatch
- [`billing-not-configured`](https://pubnio.com/docs/problems/billing-not-configured/): HTTP 503 Billing gateway is not configured
- [`billing-unavailable`](https://pubnio.com/docs/problems/billing-unavailable/): HTTP 503 Billing gateway is temporarily unavailable

## Workspace members

- [`seat-limit-reached`](https://pubnio.com/docs/problems/seat-limit-reached/): HTTP 402 Seat limit reached
- [`already-member`](https://pubnio.com/docs/problems/already-member/): HTTP 409 Already a workspace member
- [`invite-already-pending`](https://pubnio.com/docs/problems/invite-already-pending/): HTTP 409 Invite already pending
- [`last-owner-required`](https://pubnio.com/docs/problems/last-owner-required/): HTTP 409 Last owner required
- [`invite-expired`](https://pubnio.com/docs/problems/invite-expired/): HTTP 410 Invite expired
- [`invite-email-mismatch`](https://pubnio.com/docs/problems/invite-email-mismatch/): HTTP 403 Invite email mismatch

## Workspaces

- [`invalid-timezone`](https://pubnio.com/docs/problems/invalid-timezone/): HTTP 422 Invalid time zone

## MCP Code Mode sandbox

- [`request-aborted`](https://pubnio.com/docs/problems/request-aborted/): HTTP 499 Request aborted
- [`too-many-requests`](https://pubnio.com/docs/problems/too-many-requests/): HTTP 429 Too many sub-requests
- [`invalid-request`](https://pubnio.com/docs/problems/invalid-request/): HTTP 400 Invalid request options
- [`invalid-method`](https://pubnio.com/docs/problems/invalid-method/): HTTP 400 Invalid HTTP method
- [`invalid-path`](https://pubnio.com/docs/problems/invalid-path/): HTTP 400 Invalid API path
- [`invalid-query`](https://pubnio.com/docs/problems/invalid-query/): HTTP 400 Invalid query object
- [`operation-not-available`](https://pubnio.com/docs/problems/operation-not-available/): HTTP 403 Operation not available in MCP
- [`read-only-mode`](https://pubnio.com/docs/problems/read-only-mode/): HTTP 403 Read-only mode
- [`workspace-mismatch`](https://pubnio.com/docs/problems/workspace-mismatch/): HTTP 403 Workspace mismatch
- [`payload-too-large`](https://pubnio.com/docs/problems/payload-too-large/): HTTP 413 Request body too large

## General

- [`authentication-required`](https://pubnio.com/docs/problems/authentication-required/): HTTP 401 Unauthorized
- [`forbidden`](https://pubnio.com/docs/problems/forbidden/): HTTP 403 Forbidden
- [`human-actor-required`](https://pubnio.com/docs/problems/human-actor-required/): HTTP 403 Human actor required
- [`owner-required`](https://pubnio.com/docs/problems/owner-required/): HTTP 403 Owner permission required
- [`not-found`](https://pubnio.com/docs/problems/not-found/): HTTP 404 Not Found
- [`conflict`](https://pubnio.com/docs/problems/conflict/): HTTP 409 Conflict
- [`unavailable`](https://pubnio.com/docs/problems/unavailable/): HTTP 503 Service Unavailable
- [`unsupported-api-version`](https://pubnio.com/docs/problems/unsupported-api-version/): HTTP 400 Unsupported API version
- [`bad-request`](https://pubnio.com/docs/problems/bad-request/): HTTP 400 Bad Request
- [`upload-too-large`](https://pubnio.com/docs/problems/upload-too-large/): HTTP 413 Content Too Large
- [`unsupported-media-type`](https://pubnio.com/docs/problems/unsupported-media-type/): HTTP 415 Unsupported Media Type
- [`invalid-cursor`](https://pubnio.com/docs/problems/invalid-cursor/): HTTP 400 Invalid cursor
- [`internal-error`](https://pubnio.com/docs/problems/internal-error/): HTTP 500 Internal Server Error
- [`webhook-test-rate-limited`](https://pubnio.com/docs/problems/webhook-test-rate-limited/): HTTP 429 Webhook test rate limited
- [`webhook-delivery-not-replayable`](https://pubnio.com/docs/problems/webhook-delivery-not-replayable/): HTTP 409 Webhook delivery not replayable
- [`media-upload-conflict`](https://pubnio.com/docs/problems/media-upload-conflict/): HTTP 409 Media upload conflict
- [`schedule-required`](https://pubnio.com/docs/problems/schedule-required/): HTTP 422 Schedule required

## Post issue codes

[`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) reject a post with one
`invalid-publication` problem whose `issues` lists every entry below that blocks
it; [`POST /api/v1/posts/{postId}/validate`](https://pubnio.com/api/v1/docs#tag/posts/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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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](https://pubnio.com/docs/problems/queue-not-found/) instead.
- Fix: Select a queue from this workspace. The example's `path` is `targets[0].queueId`.
- Retryable: No.

```json
{
  "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](https://pubnio.com/docs/problems/queue-unavailable/) 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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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`](https://pubnio.com/api/v1/docs#tag/capabilities/GET/api/v1/integrations/capabilities) and choose a supported placement. The example's `path` is `targets[0].settings.quotePostId`.
- Retryable: No.

```json
{
  "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.

```json
{
  "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`](https://pubnio.com/api/v1/docs#tag/integrations/GET/api/v1/integrations) to select a valid account ID. The example's `path` is `accounts[0]`.
- Retryable: No.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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}`](https://pubnio.com/api/v1/docs#tag/integrations/GET/api/v1/integrations/accounts/{accountId}). The example's `path` is `targets[0].accountId`.
- Retryable: After check.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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](https://pubnio.com/docs/problems/duplicate-content/) 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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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`](https://pubnio.com/api/v1/docs#tag/media/GET/api/v1/media/{mediaId}/status) until it reports `ready`, then re-validate. The example's `path` is `media[0].mediaId`.
- Retryable: Yes.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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`](https://pubnio.com/api/v1/docs#tag/media/POST/api/v1/media/import) first and reference the returned workspace `mediaId`. The example's `path` is `targets[0].media`.
- Retryable: No.

```json
{
  "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`](https://pubnio.com/api/v1/docs#tag/media/GET/api/v1/media/{mediaId}/status) to report ready metadata before publishing. The example's `path` is `media`.
- Retryable: Yes.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "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.

```json
{
  "code": "tiktok_too_many_mentions",
  "path": ["targets", 0, "text"],
  "message": "A TikTok caption can contain at most 30 mentions."
}
```

Source: https://pubnio.com/docs/problems/index.mdx
