Get up and running with the Kairos API in under 5 minutes.
Generate an API key from your team settings in the Kairos dashboard.
Choose your preferred language and install the official SDK.
Initialize the client and start interacting with the API.
First, you'll need to create an API key to authenticate your requests:
Install the official SDK for your programming language:
npm install @kairos-connect/sdkpip install kairos-sdkgo get github.com/kairos-connect/kairos-gobun add @kairos-connect/sdkInitialize the client and start making API requests:
1import { Kairos } from '@kairos-connect/sdk';23const kairos = new Kairos({4 apiKey: process.env.KAIROS_API_KEY,5});67// List in-progress tasks8const { data: tasks, pagination } = await kairos.tasks.list({9 status: 'in_progress',10 limit: 10,11});1213console.log(`Found ${pagination.total} tasks`);1415// Create a new task16const task = await kairos.tasks.create({17 title: 'Review quarterly report',18 priority: 'high',19 goal_id: 'goal_abc123',20});21console.log(`Created: ${task.id}`);KAIROS_API_KEY rather than hardcoding it in your application.