Authentication
Learn how to authenticate with the LaikaTest API
Getting Your API Token
Generating API Tokens
- Go to Dashboard, then Settings, then API Keys
- Click Create New API Key
- Give your key a descriptive name
- Select the project to associate with the key
- Copy the generated token (displayed only once)
Important: API tokens are shown only once. Store them securely immediately.
Environment Variables
Store your API key in environment variables for security:
Bash
# .envLAIKATEST_API_KEY=your_api_token_hereBase URL
Bash
https://api.laikatest.comAuthentication Methods
LaikaTest supports two authentication methods:
- API Tokens: For external integrations and programmatic access (used by SDK)
- JWT Tokens: For dashboard and session-based authentication
Access Control
Dashboard-Only (JWT Required)
- Project creation and modifications
- Prompt creation and deletion
- Organization and team management
- Billing and account settings
Programmatic Access (API Token via SDK)
- Fetch prompts
- Evaluate experiments
- Submit experiment scores
Security Warning: Never expose your API keys in client-side code or commit them to public repositories. Always store sensitive credentials in environment variables.
Next Steps
- SDK Overview - Get started with the SDK
- Core Methods - Learn about SDK methods