Developer
Extend Line AI
for your custom needs
Build custom integrations and workflows on top of your Line AI platform. Access your agents, voice lines, memory, and integrations programmatically through our REST API.
Base URL: https://api.getline.ai/v1
Quick Start
Up and running in minutes
Get API Key
Generate an API key from your Line AI dashboard settings.
Make API Calls
Use our REST API from any language or platform.
Example: Chat Completion
curl -X POST https://api.getline.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-3-5-sonnet",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'API Reference
Core APIs
Access every capability of your Line AI platform programmatically.
Chat API
Multi-model streaming conversations with context management.
- POST /chat/completions
- POST /chat/stream
Agents API
Deploy, configure, and manage AI agents programmatically.
- GET /agents
- POST /agents
- POST /agents/{id}/invoke
Voice API
Phone agent configuration, call management, and analytics.
- GET /voice/agents
- POST /voice/calls
- GET /voice/analytics
Integrations API
900+ pre-built connectors with OAuth handling.
- GET /integrations
- POST /integrations/connect
- POST /integrations/execute
Memory API
Semantic search and knowledge storage across your organization.
- POST /memory/query
- POST /memory/cards
- GET /memory/search
Collections API
Document management with automatic indexing and retrieval.
- GET /collections
- POST /collections/documents
- POST /collections/query
Scheduler API
Event orchestration, cron jobs, and workflow triggers.
- POST /scheduler/jobs
- GET /scheduler/runs
- POST /scheduler/trigger
Agent Platform API
YAML task definitions, deployments, and execution.
- POST /platform/tasks
- POST /platform/deploy
- GET /platform/runs
Authentication
API Keys & Bearer Tokens
All API requests require authentication via Bearer token in the Authorization header.
- Generate API keys from your dashboard
- Use separate keys for dev/staging/production
- Scope keys to minimum required permissions
- Rotate keys periodically for security
Rate Limits: 1,000 requests/hour standard, 10,000/hour for enterprise
curl -X POST https://api.getline.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-3-5-sonnet",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'Webhooks
Real-time event notifications
Get notified instantly when events happen across your Line AI platform.
Agent Events
- • agent.invoked, agent.completed, agent.failed
Voice Events
- • call.started, call.ended, call.transferred
Memory Events
- • memory.created, memory.updated, collection.indexed
// Webhook payload example
{
"event": "call.ended",
"timestamp": "2025-01-20T14:30:00Z",
"data": {
"call_id": "call_abc123",
"agent_id": "agent_xyz",
"duration_seconds": 245,
"outcome": "appointment_scheduled",
"recording_url": "https://...",
"transcript": "..."
}
}Resources
Everything you need to extend Line AI
API Documentation
Interactive API reference with examples for every endpoint.
Explore docsExample Integrations
Sample code for common customization patterns.
- • Custom agent workflows
- • Webhook handlers
- • Data sync pipelines
Support
Get help when you need it.
- • developers@getline.ai
- • Response within 24 hours
- • Priority support for enterprise
Ready to extend your platform?
Access the API documentation and start building custom integrations on top of your Line AI platform.