v4

latestOpenAPI 3.0.32026-07-312,317012.2 MB
Secret Rotations

Create a LiteLLM API Key Rotation for the specified project.

post/api/v2/secret-rotations/litellm-api-key

Request body

namestring required

The name of the LiteLLM API Key Rotation to create. Must be slug-friendly.

projectIdstring required

The ID of the project to create the rotation in.

descriptionstring nullable

An optional description for the LiteLLM API Key Rotation.

connectionIdstring uuid required

The ID of the LiteLLM Connection to use for rotation.

environmentstring required

The slug of the project environment to create the rotation in.

secretPathstring required

The secret path of the project to create the rotation in.

isAutoRotationEnabledboolean

Whether secrets should be automatically rotated when the specified rotation interval has elapsed.

rotationIntervalnumber required

The interval, in days, to automatically rotate secrets.

Response

Default Response