Skip to main content

Creating a key

  1. Open Settings > API Keys in the dashboard.
  2. Click Create API key and give it a name.
  3. Copy the key value. You can only see the full key once, at creation time.

Using a key

Pass the key as an environment variable or inline flag:
# Environment variable (recommended)
export LARKCI_API_KEY=your-api-key

# Inline flag
larkci --api-key your-api-key workflows list
The CLI also reads from a .env file in the current directory. For CI pipelines, store the key in your provider’s secrets settings. See CI integration for setup instructions.

Listing keys

The dashboard shows all keys for your account with their name, creation date, and key suffix. Full key values are not shown after creation.

Deleting a key

Click Delete next to any key in the dashboard. The key stops working right away. Any CLI sessions or CI pipelines using that key will fail on their next request.