API Documentation
Integrate AI-powered tools into your applications with our comprehensive RESTful APIs. Build, automate, and scale with our developer-friendly endpoints.
AI Chat Platform
Integrate our advanced AI chat capabilities into your applications with support for multiple AI models and real-time conversations.
- Multi-model AI support (GPT-4, Claude, Gemini)
- Real-time streaming responses
- Conversation memory management
- Custom model fine-tuning
- Rate limiting and usage analytics
Link Analytics
Track, analyze, and optimize your links with AI-powered insights and comprehensive analytics through our Link.AI-it API.
- Link creation and management
- Real-time click tracking
- AI-powered insights
- Custom variable tracking
- Webhook notifications
Workflow Automation
Automate complex workflows and integrate with popular tools using our n8n-powered automation API.
- Workflow creation and execution
- Trigger management
- Data transformation
- Third-party integrations
- Error handling and logging
Quick Start Integration
Get started with our APIs in minutes. Here’s how to integrate our Link Analytics API:
Python Example
import requests
# Configuration
API_KEY = "your_api_key_here"
BASE_URL = "https://link.ai-it.io/api/v1"
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}
# Create a new tracked link
def create_link(original_url, name, variables=None):
data = {
"original_url": original_url,
"name": name
}
if variables:
data["custom_variables"] = variables
response = requests.post(
f"{BASE_URL}/links",
json=data,
headers=headers
)
return response.json()
# Example usage
link = create_link(
"https://example.com",
"My Campaign",
{"campaign": "summer", "source": "email"}
)
print(f"Created link: {link['data']['short_url']}")
JavaScript Example
// Configuration
const API_KEY = 'your_api_key_here';
const BASE_URL = 'https://link.ai-it.io/api/v1';
const headers = {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
};
// Create a new link
async function createLink(originalUrl, name, variables = {}) {
const response = await fetch(`${BASE_URL}/links`, {
method: 'POST',
headers: headers,
body: JSON.stringify({
original_url: originalUrl,
name: name,
custom_variables: variables
})
});
return await response.json();
}
// Example usage
const link = await createLink(
'https://example.com',
'My Campaign',
{ campaign: 'summer', source: 'email' }
);
console.log(`Created link: ${link.data.short_url}`);
🔐 Authentication
Secure API key-based authentication with enterprise-grade security
📊 Analytics
Real-time analytics and AI-powered insights for your data
🔔 Webhooks
Real-time event notifications for instant updates
📈 Rate Limits
Generous rate limits with burst capacity for high-volume usage
