← Back to home
Documentation
Everything you need to integrate Agentline into your AI agents.
Quick Start
1. Install
pip install agentline2. Get your API key
Sign up at agentline.dev and generate an API key from your dashboard.
3. Capture a 2FA code
from agentline import Agentline
agent = Agentline(api_key="ag_live_...")
# Provision a number and capture a verification code
phone, code = agent.capture_code(area_code="415", timeout=60)
print(f"Got code: {code}")4. Make a voice call
result = agent.make_call(
from_="+18005551234",
to="+15551234567",
prompt="You are a scheduling assistant.",
first_message="Hi, I'm calling to confirm your appointment.",
)
print(result.transcript)API Reference
GET
/v1/numbers/searchPOST
/v1/numbersGET
/v1/numbersDELETE
/v1/numbers/{phone}GET
/v1/messages/{phone}POST
/v1/messages/sendPOST
/v1/callsGET
/v1/calls/{id}POST
/v1/calls/{id}/hangupSDKs
PythonAvailable
pip install agentlineNode.js, Go, and Ruby SDKs coming soon.