Provision
Buy a US or Canadian phone number for your AI agent.
Buys a real +1 number from the carrier, attaches it to the agent and uses an included subscription number, or charges $3.00 to the wallet. Once attached, the agent can make outbound calls and answers inbound calls on this number. Existing numbers retain their carrier. Each agent can have only one active number.
Prerequisites: an agent from create_agent with no active number (each agent has at most one; a second purchase returns HTTP 409), plus a remaining subscription number allowance or $3.00 in the wallet (HTTP 402 otherwise; see get_account_balance).
Returns the number's id (num_..., used by release_phone_number and as from_number_id), phone_number, country, number_type, status, cost, balance_remaining and a private number card link (card_url, card_image_url, card_url_expires_at). If the account has an owner email, the card link is also emailed there.
Request
- Base URL: https://api.agentline.cloud
- URL: https://api.agentline.cloud/v1/numbers
- Auth: HTTP bearer
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.