Messages
AgentLine numbers send and receive SMS. Plan allowances cover sent and received texts; beyond the allowance each message is $0.02 in either direction, deducted from the wallet. Send withPOST /v1/messages, the Python SDK, or the send_sms MCP tool. Read
received texts from message history or from sms.received
events.
Send a message
The response is the stored message with its
status. An accepted message is not
yet a delivered one: check the message in history when delivery matters.
JavaScript examples call https://api.agentline.cloud with fetch and a
Bearer al_live_... key. The Node package is not on npm.
List messages and conversations
GET /v1/messages returns sent and received texts. Each entry includes
direction, phone numbers, body, and delivery status.
Inbound messages also arrive through your agent’s
webhook or the events mailbox as
sms.received.