Setup Guide
Get started with infaza in minutes. Follow these steps to create an API key, configure your environment, and make your first API call.
BeginnerQuickstart
Prerequisites
- Node.js 18+ or Python 3.10+
- Internet access
- infaza account
1. Create an API Key
API Keys
Generate a key from your dashboard. Keep it secret; treat it like a password.
sk_dev_abc123... (development) · sk_prod_xyz789... (production)2. Configure Environment
Node.js
npm install @infaza/sdk export infaza_API_KEY="sk_dev_abc123"
Python
pip install infaza export infaza_API_KEY="sk_dev_abc123"
3. Make Your First API Call
curl
curl -X POST "https://api.infaza.dev/v1/memories" -H "Authorization: Bearer $infaza_API_KEY" -H "Content-Type: application/json" -d '{
"content": {"text": "Hello from setup guide"},
"agent_id": "agent-123"
}'Node.js
import { infaza } from '@infaza/sdk'
const client = new infaza({ apiKey: process.env.infaza_API_KEY })
const memory = await client.memories.create({
content: { text: 'Hello from setup guide' },
agentId: 'agent-123'
})