API Keys
Rotate an API key
Changed onReplace the prefix and secret of an existing API key, invalidating the previous secret and returning a new plaintext secret. The key's name and expiry are preserved.
The new secret is shown exactly once. Revoked keys cannot be rotated. The caller must own the key or hold apiKey.write on the current organization. The request body must be empty.
post/v2/api-keys/{id}/rotate
Request
- Base URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/api-keys/{id}/rotate
- AuthHTTP basic
Path parameters
idstring required
The API key's unique identifier.
Response
The rotated API key with its new plaintext secret (shown once only).
Example response
{
"id": "uuid-1234",
"name": "CI bot",
"prefix": "aaaaaaaa",
"key": "lilt_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"createdAt": "2026-04-29T00:00:00Z",
"expiresAt": "2027-01-01T00:00:00Z",
"ownerEmail": "developer@lilt.com",
"ownerUserId": 42
}Changes
- info
endpoint added
- info