API Reference

Overview Deployment Architecture API Reference Local Setup Security

Base URL

https://londoolink-ai.onrender.com/api/v1

All endpoints require JWT authentication except for registration and login.

Authentication Endpoints

POST /auth/register

Register a new user account

curl -X POST "https://londoolink-ai.onrender.com/api/v1/auth/register" \\
  -H "Content-Type: application/json" \\
  -d '{
    "email": "user@example.com",
    "password": "securepassword123"
  }'
POST /auth/login

Login and receive JWT access token

curl -X POST "https://londoolink-ai.onrender.com/api/v1/auth/login" \\
  -H "Content-Type: application/json" \\
  -d '{
    "email": "user@example.com",
    "password": "securepassword123"
  }'

Agent Endpoints

POST /agent/chat

Chat with a specific AI agent (Email, Calendar, Priority, Social)

curl -X POST "https://londoolink-ai.onrender.com/api/v1/agent/chat" \\
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
    "agent_type": "email",
    "message": "Summarize my unread emails"
  }'

Supported agent_type: email, calendar, priority, social, general

GET /agent/briefing/daily

Get AI-powered daily briefing with prioritized insights

curl -X GET "https://londoolink-ai.onrender.com/api/v1/agent/briefing/daily" \\
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
POST /agent/analyze/document

Analyze document content using AI agents

curl -X POST "https://londoolink-ai.onrender.com/api/v1/agent/analyze/document" \\
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
    "content": "Document text here...",
    "type": "email"
  }'