Authentication

Learn how to authenticate with the KI-AVA Amharic API using API keys.

All API endpoints (except /health) require authentication via an API key in the request header.

Getting Your API Key

Obtain an API key from your administrator. Admin users can create keys via the admin endpoints (see Internal API Reference).

Using Your API Key

Pass your API key in the X-API-Key header on every request:

text
X-API-Key: YOUR_API_KEY

Example Request

curl -X POST "https://kiava-api.lesan.ai/transcribe" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio_urls": ["https://example.com/audio.mp3"],
    "language": "am"
  }'

Security Best Practices

  • Never commit API keys to version control
  • Use environment variables to store keys
  • Rotate keys regularly
  • Use different keys for different environments (test vs production)

For more details, see the API Reference.