Provision a new phone line
Provisions a new US phone number and creates a line with the specified configuration. Costs $2.50/month per number — first number free for 30 days. The phone number is assigned automatically.
Authentication
Send as Authorization: Bearer <your-key>. Obtain keys from the portal — prefix sk_live_ for production, sk_test_ for sandbox.
Request
Human-readable name for the line
audio: you handle audio via WebSocket. webhook: you receive transcript webhooks (canonical name). text: legacy alias for webhook — still accepted, normalized server-side. hosted: Saperly AI handles the conversation.
WebSocket URL for audio streaming (required for audio mode, must be wss://)
HTTPS URL to receive call events (required for webhook mode)
Whether to enforce compliance checks (disclosure, consent)
First message spoken by the AI when a call connects (hosted mode)
ElevenLabs voice ID from GET /v1/voices
