Check out the configuration docs for LiteLLM API Key Rotations to learn how to obtain the required parameters.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A unique name for the rotation (max 100 characters). |
projectId | string (UUID) | Yes | The project ID. |
connectionId | string (UUID) | Yes | ID of the LiteLLM app connection (management-capable API key). |
environment | string | Yes | Environment slug (e.g. dev, prod). |
secretPath | string | Yes | Path where the generated API key secret will be stored. |
isAutoRotationEnabled | boolean | Yes | Whether to rotate automatically on the schedule. |
rotationInterval | number | Yes | Days between rotations (e.g. 30). |
rotateAtUtc | object | Yes | Time of day (UTC) to run rotation: { "hours", "minutes" }. |
parameters.name | string | Yes | Name for the generated key in LiteLLM (max 100 characters). Infisical appends a timestamp to keep each key unique. |
parameters.userId | string | No | LiteLLM user ID to associate the generated key with. |
parameters.teamId | string | No | LiteLLM team ID to associate the generated key with. |
parameters.models | string[] | No | Model names the key is allowed to access. An empty list allows all models. |
parameters.additionalOptions | string (JSON) | No | A JSON object of additional /key/generate options (e.g. max_budget, tpm_limit, rpm_limit, metadata). |
secretsMapping.apiKey | string | Yes | Secret key name to store the generated API key (e.g. LITELLM_API_KEY). |
description | string | No | Optional description. |