Skip to Content
Getting StartedQuickstart

Quickstart

Get your first agent event into Kaplaix in under 5 minutes.

Prerequisites

  • An Kaplaix account with an API key (al_live_...)
  • Node.js >= 18 or Python >= 3.10

1. Install the SDK

npm install @kaplaix/sdk-ts

2. Send your first event

import { KaplaixClient } from "@kaplaix/sdk-ts"; const client = new KaplaixClient({ apiKey: "al_live_..." }); const session = client.session({ agentId: "my-agent" }); await session.logToolCall({ toolName: "web_search", argumentsHash: "sha256-of-args", responseStatus: 200, }); await session.end(); await client.shutdown();

You should receive a 202 Accepted response:

{ "eventId": "550e8400-e29b-41d4-a716-446655440000", "receivedAt": "2025-01-15T10:30:01.234Z", "warnings": [] }

3. View the session

Retrieve the session and its events:

curl https://api.kaplaix.com/v1/sessions/session-001 \ -H "Authorization: Bearer al_live_..."

4. Check the risk score

curl https://api.kaplaix.com/v1/sessions/session-001/risk \ -H "Authorization: Bearer al_live_..."

The Risk Engine scores every session across 10 OWASP-aligned dimensions and returns explainable factors with recommendations.

What’s next?

Last updated on