Authentication

Learn how to authenticate with the LaikaTest API

Getting Your API Token

Generating API Tokens

  1. Go to Dashboard, then Settings, then API Keys
  2. Click Create New API Key
  3. Give your key a descriptive name
  4. Select the project to associate with the key
  5. 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_here

Base URL

Bash
https://api.laikatest.com

Authentication 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