Skip to main content
POST
Create a Plugin Version

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta
X-Language
string

Optional BCP 47 language tag (such as en-US or zh-CN) for localized display names and descriptions. When omitted or unsupported, the API defaults to zh-CN and falls back to base text when that locale has no override.

Idempotency-Key
string

Optional idempotency key. Reusing the same key with the same request target, API version, and body replays the first response for 24 hours. Reusing it with a different target, API version, or body, or while the first request is still being processed, returns 409.

Path Parameters

id
string
required

Plugin ID.

Body

multipart/form-data

Plugin archive to publish as a new immutable version.

file
any
required

The Plugin bundle archive.

Response

Updated Plugin, newly published immutable version, and bundle report.

Plugin, published version, and bundle report returned after a publish.

plugin
object
required

Plugin after the publish; latest_version already counts the new version.

Example:
version
object
required

Immutable version created from the submitted bundle.

Example:
report
object
required

Report of the submitted bundle. ok is true here; it may still carry warn findings.

Example: