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.
{
"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, statusfailed; error kindinvalid_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, 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