---
title: "TikTok error 40002: Parameter error"
description: "TikTok error 40002: Parameter error. 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.

# TikTok error 40002: Parameter error

TikTok error 40002 is "Parameter error". A parameter error: missing required fields, wrong formats, unsupported values, or incompatible fields. A publish that gets it fails with `provider_rejected`. Checked 2026-12-05.

## Exact error

`code`: `40002`; HTTP 200.

```json
{
  "code": 40002,
  "message": "Parameter error",
  "data": {}
}
```

Returned by POST `/open_api/v1.3/business/video/publish/`, POST `/open_api/v1.3/business/photo/publish/`, GET `/open_api/v1.3/business/video/settings/`, GET `/open_api/v1.3/business/publish/status/`, other /open_api/v1.3/ operations (analytics, inbox, ads).

## Cause

TikTok refused a field of the publish body: a privacy_level the creator does not allow, a caption over the limit, a photo_cover_index past the last image, or a video_url TikTok could not pull.

## Fix

Read message for the field TikTok names, correct it, and validate again. Check the creator's allowed privacy levels from the settings read before choosing one.

## Retry safety

Yes, once the cause is fixed: the provider created nothing, and an unchanged resend fails again.

## PubNio issue

- On a publish: `provider_rejected`, status `failed`; error kind `invalid_request`.
- On non-publish calls through the generated TikTok operations: error kind `invalid_request`.

## Observed

Replayed through the adapter in `packages/core/test/provider-error-catalog.test.ts` and `apps/web/test/tiktok-publish.test.ts`.

## Limits

Another TikTok endpoint can return 40002 for another reason.

## Sources

- [TikTok API for Business: Return codes](https://business-api.tiktok.com/portal/docs?id=1737172488964097), checked 2026-12-05
- PubNio: `packages/core/src/integration/providers/tiktok-transport.ts#responseFailure`, `packages/core/src/integration/providers/tiktok-client.ts#publishRejected`, `packages/core/src/post/delivery-store.ts#settleSubmission`

## Related

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

Source: https://pubnio.com/docs/errors/tiktok/40002/index.mdx
