Skip to main content
A personal API key authenticates as you. It inherits your permissions across every organization you belong to, unless an organization refuses personal API keys.
For CI/CD pipelines and any other automation, use a service account instead. Service account keys are scoped to a single organization, have an explicit role, and produce cleaner audit trails.
An organization admin can refuse personal API keys. Your personal keys then get HTTP 403 in that organization and keep working in your other organizations. Use a service account API key there instead. An admin can also refuse personal API keys issued before a cut-off, such as a date or a number of days ago. Your older keys then get HTTP 403 in that organization, so create a new key from your Profile page.

Create a personal API key

1

Open your profile

From the user menu in the top-right corner of the Kosli app, click Profile:
2

Add an API key

In the API keys section, click Add API key. Choose a Time-To-Live (TTL), add a descriptive label, and click Add.
3

Copy the key immediately

Kosli stores only a cryptographic hash of the token. The original value is shown once and cannot be retrieved later.

Use the key

The same usage applies as for service account keys — see Authenticating to Kosli.

Rotate a key

To replace a personal API key without downtime, regenerate it. Kosli issues a new key and keeps the old one valid for a grace period, as described in API key rotation.
  1. Open Profile, and in the API keys section open the menu of the key you want to replace.
  2. Click Regenerate.
  3. Choose when the new key expires and how many hours the current key stays valid (24 by default), then click Regenerate.
  4. Copy the new key immediately and update everything that uses the old one.

Delete a key

To delete a personal API key, open Profile → API keys, open the key’s menu, and click Delete. The key stops working immediately.

Manage keys from the CLI

The kosli API key commands manage your own personal keys when you pass --personal instead of --service-account. Personal keys belong to you, not to an organization, so --org is not needed. You can’t combine --personal with --service-account.
When --api-token is itself a personal API key, these limits apply:
  • A key you create with it expires no later than that key, and is deleted along with it.
  • You can only rotate or delete that key and the keys created with it.
  • A key you create or rotate with it counts as issued when that key was, so it doesn’t get past an organization’s personal key cut-off.
To get a key that outlives the one you are using, create it from your Profile page. See kosli create api-key, kosli rotate api-key, kosli list api-keys, kosli get api-key, and kosli delete api-key for every flag. Service accounts can’t manage personal API keys. Use the service account key commands for them.
Last modified on December 4, 2026