Personal API Keys
Managing API keys for Lybic services
API keys are used to authenticate requests when using Lybic SDK or MCP Server. Each key is tied to a specific organization and can only access resources within that organization.
Viewing API Keys
Navigate to the API Keys page in your organization Dashboard to view all API keys you have created. The table shows:
- Name: The identifier you assigned to the key
- Created At: When the key was created
- API Key: First characters of the key (full key is only shown once at creation)
- Actions: Delete the key
Creating an API Key
To create a new API key:
- Navigate to your organization's API Keys page in the Dashboard
- Click New API Key
- Enter a descriptive name for the key
- Click Create
- Copy the full API key from the dialog
The complete API key will only be displayed once. Store it securely, as you cannot retrieve it again.
API Information
The API Keys page displays essential information for SDK and MCP integration:
- API Base URL: The endpoint for API requests
- Organization ID: Your organization identifier
Both values can be copied directly from the Dashboard.
Using API Keys
In SDK
When initializing the Lybic SDK, provide your API key:
import { LybicClient } from '@lybic/core'
const lybic = new LybicClient({
baseUrl: 'https://your-base-url.example',
orgId: 'your-org-id',
apiKey: 'lysk-your-api-key-here',
})from lybic import LybicClient, LybicAuth
client = LybicClient(
LybicAuth(
org_id="your-org-id",
api_key="lysk-your-api-key-here",
endpoint="https://your-base-url.example"
)
)import "github.com/lybic/lybic-sdk-go"
config := lybic.NewConfig()
config.OrgId = "your-org-id"
config.ApiKey = "lysk-your-api-key-here"
config.Endpoint = "https://your-base-url.example"
client, err := lybic.NewClient(config)
if err != nil {
panic(err)
}In MCP Server
Configure your MCP client with the API key:
{
"mcpServers": {
"lybic": {
"type": "streamable",
"url": "your-mcp-server-url",
"headers": {
"x-api-key": "lysk-your-api-key-here"
}
}
}
}For detailed MCP configuration, refer to the MCP Setup Guide.
Deleting an API Key
To revoke an API key:
- Locate the key in the API Keys table
- Click the delete icon in the Actions column
- Confirm the deletion
Deletion is immediate and irreversible. Any applications using the deleted key will lose access immediately.