Skip to main content
Learn how to integrate Lindo.ai with your applications using the REST API.

Overview

The Lindo.ai API allows you to:
  • Create and manage websites programmatically
  • Access client data
  • Automate workflows
  • Build custom integrations
1

Generate API Key

  1. Open Settings in sidebar
  2. Go to API tab
  3. Click Generate API Key
  4. Copy the key immediately (shown only once)
Store your API key securely. Never expose it in client-side code.
2

Understand Authentication

All API requests require Bearer token authentication:
curl -X GET "https://api.lindo.ai/v1/websites" \
  -H "Authorization: Bearer YOUR_API_KEY"
3

Make Your First Request

Test your connection by listing websites:
curl -X GET "https://api.lindo.ai/v1/websites" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
4

Common Operations

5

Handle Responses

Successful responses return JSON:
{
  "success": true,
  "data": {
    "id": "web_123",
    "name": "My Website",
    "status": "published"
  }
}
Error responses include error details:
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API key"
  }
}
6

Implement Error Handling

Handle common errors:
  • 401 Unauthorized: Invalid or expired API key
  • 403 Forbidden: Insufficient permissions
  • 404 Not Found: Resource doesn’t exist
  • 429 Too Many Requests: Rate limit exceeded

Best Practices

  • Store API keys in environment variables
  • Implement retry logic for transient errors
  • Cache responses when appropriate
  • Log API calls for debugging
  • Monitor rate limits

API Documentation

For complete API reference, click API Docs in the Settings → API tab to access the full documentation on GitBook.