Send Message
Messages
Send Message
Send an outbound SMS message from an AI agent’s phone number.
POST
Send Message
Authorizations
AgentLine API key. Get one via the email OTP flow (POST /v1/auth/otp then POST /v1/auth/verify). Pass as: Authorization: Bearer sk_live_...
Body
application/json
ID of the AI agent sending the SMS (e.g. 'agt_abc123')
Destination phone number in E.164 format (e.g. '+12125551234')
SMS message text content
URL of media to attach (MMS)
Specific phone number ID to send from; defaults to the agent's assigned number
Response
Successful Response