Authentication
All KIRHA API requests require an API key for authentication.
Create an account
Sign up at app.kirha.com to get started.
Create a project
Projects isolate your API usage, logs, and billing. Go to the Dashboard and create a new project.
Generate an API key
Inside your project, go to API Keys and create a new key.
Using your API key
Pass the key as an environment variable when initializing the SDK:
import { Kirha } from "kirha";
const kirha = new Kirha({ apiKey: process.env.KIRHA_API_KEY });Or send it in the Authorization header for HTTP requests, with or without the Bearer scheme:
Authorization: Bearer <your_api_key>A missing or invalid key returns 401 with a link to the API keys page.
Keep your key safe
Never hardcode API keys in your source code. Use environment variables or a secrets manager.
Logs
Every API call is logged with request details, tool execution steps, and response data. Go to the Logs Dashboard to inspect your calls.