Create an OpenRouter API Key Rotation for the specified project.
| 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 OpenRouter app connection (Provisioning 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 API key in OpenRouter (max 100 characters). |
parameters.limit | number | Yes | Usage limit for the key. |
parameters.limitReset | string | Yes | "monthly" or "never". |
parameters.includeByokInLimit | boolean | No | Whether BYOK usage counts toward the limit. Default false. |
secretsMapping.apiKey | string | Yes | Secret key name to store the generated API key (e.g. OPEN_ROUTER_API_KEY). |
description | string | No | Optional description. |
The name of the OpenRouter API Key Rotation to create. Must be slug-friendly.
1 - 64The ID of the project to create the rotation in.
1The ID of the OpenRouter Connection to use for rotation.
The slug of the project environment to create the rotation in.
1 - 64The secret path of the project to create the rotation in.
1The interval, in days, to automatically rotate secrets.
x >= 1An optional description for the OpenRouter API Key Rotation.
256Whether secrets should be automatically rotated when the specified rotation interval has elapsed.
The hours and minutes rotation should occur at in UTC. Defaults to Midnight (00:00) UTC.
Default Response