← Back to home

Documentation

Everything you need to integrate Agentline into your AI agents.

Quick Start

1. Install

pip install agentline

2. 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/search
POST/v1/numbers
GET/v1/numbers
DELETE/v1/numbers/{phone}
GET/v1/messages/{phone}
POST/v1/messages/send
POST/v1/calls
GET/v1/calls/{id}
POST/v1/calls/{id}/hangup

SDKs

PythonAvailable
pip install agentline

Node.js, Go, and Ruby SDKs coming soon.