技能 编程开发 配置Lindy AI API和Webhooks

配置Lindy AI API和Webhooks

v20260423
lindy-install-auth
本指南详细介绍了Lindy AI平台的完整配置流程。它涵盖了从获取和管理API密钥、使用SDK(Python/Node.js)进行编程集成,到设置和验证Webhook认证的全步骤。确保您的外部应用能够安全、可靠地调用AI代理功能。
获取技能
336 次下载
概览

Lindy Install & Auth

Overview

Lindy AI is a no-code/low-code AI agent platform. Agents ("Lindies") are built in the
web dashboard at https://app.lindy.ai. External integration uses webhook endpoints,
the HTTP Request action, and optional Node.js/Python SDKs for programmatic access.

Prerequisites

  • Lindy account at https://app.lindy.ai (Free tier: 400 credits/month)
  • For SDK access: Node.js 18+ or Python 3.10+
  • For webhook receivers: HTTPS endpoint in your application

Instructions

Step 1: Obtain API Key

  1. Log in at https://app.lindy.ai
  2. Navigate to Settings > API Keys
  3. Click Generate New Key — copy immediately (shown only once)
  4. Store securely:
# Environment variable
export LINDY_API_KEY="lnd_live_xxxxxxxxxxxxxxxxxxxx"

# Or .env file (add .env to .gitignore)
echo 'LINDY_API_KEY=lnd_live_xxxxxxxxxxxxxxxxxxxx' >> .env

Step 2: Install SDK (Optional)

# Node.js SDK
npm install lindy-ai

# Python SDK
pip install lindy-ai

Step 3: Initialize Client

// Node.js
import { Lindy } from 'lindy-ai';

const lindy = new Lindy({
  apiKey: process.env.LINDY_API_KEY,
});

// Verify connection
const agents = await lindy.agents.list();
console.log(`Connected: ${agents.length} agents found`);
# Python
import os
from lindy import Lindy

client = Lindy(api_key=os.environ["LINDY_API_KEY"])

# Verify connection
agents = client.agents.list()
print(f"Connected: {len(agents)} agents found")

Step 4: Configure Webhook Authentication

When creating a webhook trigger in the Lindy dashboard, generate a secret key.
Callers must include this in every request:

Authorization: Bearer <your-webhook-secret>

Your webhook endpoint URL follows the pattern:

https://public.lindy.ai/api/v1/webhooks/<unique-id>

Step 5: Verify Webhook Connectivity

# Test your webhook trigger
curl -X POST "https://public.lindy.ai/api/v1/webhooks/YOUR_WEBHOOK_ID" \
  -H "Authorization: Bearer YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"test": true, "message": "hello from setup"}'

Lindy Plans & Credits

PlanPriceCredits/moTasksExtras
Free$0400~40Basic models
Pro$49.99/mo5,000~1,500+$19.99/seat, phone calls
Business$299.99/mo30,000~3,000100 phone calls, 50M KB chars
EnterpriseCustomCustomCustomSSO, SCIM, RBAC, audit logs

Credit consumption: 1-3 credits on basic models, ~10 on large models per task.

Error Handling

ErrorCauseSolution
401 UnauthorizedInvalid or expired API keyRegenerate key in Settings > API Keys
403 ForbiddenKey lacks required scopeCheck plan tier supports API access
429 Too Many RequestsCredit limit exceededUpgrade plan or wait for monthly reset
Webhook 401Missing/wrong Bearer tokenVerify secret matches dashboard value
ECONNREFUSEDLindy API unreachableCheck https://status.lindy.ai

Security Checklist

  • [ ] API key stored in env var or secret manager — never in source code
  • [ ] .env added to .gitignore
  • [ ] Webhook secret generated and stored securely
  • [ ] HTTPS enforced on all webhook receiver endpoints
  • [ ] API key scoped to minimum required permissions

Resources

Next Steps

After successful auth, proceed to lindy-hello-world for your first AI agent.

信息
分类 编程开发
名称 lindy-install-auth
版本 v20260423
大小 3.35KB
更新时间 2026-04-28
语言