Quickstart
1. Get an API key
AgentLine uses email one-time codes for sign-up and sign-in (no dashboard required).api_key (shown once — store it). New accounts
get a sign-up credit to start.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create an agent, buy a number, and make your first call.
curl -X POST https://api.agentline.cloud/v1/auth/otp \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
curl -X POST https://api.agentline.cloud/v1/auth/verify \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "otp": "123456"}'
api_key (shown once — store it). New accounts
get a sign-up credit to start.
from agentline_ai import AgentLine
client = AgentLine(api_key="al_live_...")
agent = client.agents.create(
name="Support Bot",
system_prompt="You are a helpful assistant.",
initial_greeting="Hello! How can I help?",
)
client.numbers.buy(agent_id=agent.id, country="US", area_code="415")
call = client.calls.create(agent_id=agent.id, to_number="+12125557890")
print("Call started:", call.id)
import { AgentLineClient } from "agentline";
const client = new AgentLineClient({ apiKey: "al_live_..." });
const agent = await client.agents.create({
name: "Support Bot",
systemPrompt: "You are a helpful assistant.",
initialGreeting: "Hello! How can I help?",
});
await client.numbers.buy({ agentId: agent.id, country: "US", areaCode: "415" });
const call = await client.calls.create({ agentId: agent.id, toNumber: "+12125557890" });
console.log("Call started:", call.id);
curl -fsSL https://api.agentline.cloud/static/agentline_relay.py -o agentline_relay.py
python agentline_relay.py install --agent-id agt_xxx
events = client.events.poll()
const events = await client.events.poll();
+12125557890. Each agent can have
one active number at a time.