Skip to main content
Learn how to authenticate API requests.

Authentication Method

Lindo.ai API uses Bearer token authentication.

How It Works

Include your API key in the Authorization header:
Authorization: Bearer your-api-key-here

Example Request

curl -X GET "https://api.lindo.ai/v1/websites" \
  -H "Authorization: Bearer your-api-key-here" \
  -H "Content-Type: application/json"

In Code

JavaScript

fetch('https://api.lindo.ai/v1/websites', {
  headers: {
    'Authorization': 'Bearer your-api-key-here',
    'Content-Type': 'application/json'
  }
});

Python

import requests

headers = {
    'Authorization': 'Bearer your-api-key-here',
    'Content-Type': 'application/json'
}

response = requests.get('https://api.lindo.ai/v1/websites', headers=headers)

Security Best Practices

  • Never expose keys in client-side code
  • Use environment variables
  • Rotate keys regularly
  • Use separate keys for different environments

Error Responses

CodeMeaning
401Invalid or missing API key
403Key doesn’t have permission
429Rate limit exceeded

Tips

  • Store keys securely
  • Use server-side requests
  • Handle errors gracefully
  • Monitor API usage