API Keys
Create an API key
Changed onMint a new lilt_* API key under the caller's current organization. Requires the apiKey.write permission.
The plaintext secret is returned in the key field of the response and is shown exactly once — store it securely, as it cannot be retrieved again. The optional userId lets an admin create a key on behalf of another user who already has a grant in the current organization.
post/v2/api-keys
Request
- Base URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/api-keys
- AuthHTTP basic
Request body
Example request
{
"name": "CI bot",
"expiresAt": "2027-01-01T00:00:00Z",
"userId": 42
}Response
The created API key, including the 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