Skip to main content
POST
Batch create Vault credentials

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

Vault ID.

Body

application/json

Credentials to create in request order. The batch is atomic.

Credentials to create together in a single atomic request.

items
object[]
required

One to 20 credentials, returned in the same order.

Required array length: 1 - 20 elements
Example:

Response

The created credentials in request order, with secret values omitted.

Credentials created by an atomic batch request, in request order.

items
object[]
required

Created credentials in request order. Secret fields are omitted.

Example: